Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 33) sorted by relevance

12

/sound/aoa/soundbus/i2sbus/
Dcore.c119 static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index, in i2sbus_get_and_fixup_rsrc() argument
136 return of_address_to_resource(np, index, res); in i2sbus_get_and_fixup_rsrc()
138 parent = of_get_parent(np); in i2sbus_get_and_fixup_rsrc()
143 reg = of_get_property(np, "reg", NULL); in i2sbus_get_and_fixup_rsrc()
158 struct device_node *np) in i2sbus_add_dev() argument
173 if (strlen(np->name) != 5) in i2sbus_add_dev()
175 if (strncmp(np->name, "i2s-", 4)) in i2sbus_add_dev()
183 while ((child = of_get_next_child(np, child))) { in i2sbus_add_dev()
226 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev()
235 dev->bus_number = np->name[4] - 'a'; in i2sbus_add_dev()
[all …]
Dcontrol.c43 struct device_node *np; in i2sbus_control_add_dev() local
45 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
46 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
47 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
48 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
49 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
50 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
/sound/aoa/core/
Dgpio-feature.c59 struct device_node *np, *gpio; in get_gpio() local
66 np = of_find_node_by_name(NULL, name); in get_gpio()
67 if (!np) { in get_gpio()
75 while ((np = of_get_next_child(gpio, np))) { in get_gpio()
76 audio_gpio = of_get_property(np, "audio-gpio", NULL); in get_gpio()
85 if (!np) in get_gpio()
89 reg = of_get_property(np, "reg", NULL); in get_gpio()
101 reg = of_get_property(np, "audio-gpio-active-state", NULL); in get_gpio()
112 return np; in get_gpio()
115 static void get_irq(struct device_node * np, int *irqptr) in get_irq() argument
[all …]
/sound/soc/ux500/
Dmop500.c75 struct device_node *np) in mop500_of_probe() argument
80 msp_np[0] = of_parse_phandle(np, "stericsson,cpu-dai", 0); in mop500_of_probe()
81 msp_np[1] = of_parse_phandle(np, "stericsson,cpu-dai", 1); in mop500_of_probe()
82 codec_np = of_parse_phandle(np, "stericsson,audio-codec", 0); in mop500_of_probe()
104 struct device_node *np = pdev->dev.of_node; in mop500_probe() local
111 if (np) { in mop500_probe()
112 ret = mop500_of_probe(pdev, np); in mop500_probe()
/sound/soc/mxs/
Dmxs-sgtl5000.c117 struct device_node *np = pdev->dev.of_node; in mxs_sgtl5000_probe_dt() local
121 if (!np) in mxs_sgtl5000_probe_dt()
124 saif_np[0] = of_parse_phandle(np, "saif-controllers", 0); in mxs_sgtl5000_probe_dt()
125 saif_np[1] = of_parse_phandle(np, "saif-controllers", 1); in mxs_sgtl5000_probe_dt()
126 codec_np = of_parse_phandle(np, "audio-codec", 0); in mxs_sgtl5000_probe_dt()
Dmxs-saif.c667 struct device_node *np = pdev->dev.of_node; in mxs_saif_probe() local
674 if (!np) in mxs_saif_probe()
681 ret = of_alias_get_id(np, "saif"); in mxs_saif_probe()
692 master = of_parse_phandle(np, "fsl,saif-master", 0); in mxs_saif_probe()
736 ret = of_property_read_u32(np, "fsl,saif-dma-channel", in mxs_saif_probe()
/sound/soc/tegra/
Dtegra_wm8903.c243 struct device_node *np = pdev->dev.of_node; in tegra_wm8903_driver_probe() local
259 machine->gpio_spkr_en = of_get_named_gpio(np, "nvidia,spkr-en-gpios", in tegra_wm8903_driver_probe()
272 machine->gpio_hp_mute = of_get_named_gpio(np, "nvidia,hp-mute-gpios", in tegra_wm8903_driver_probe()
285 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_wm8903_driver_probe()
289 machine->gpio_int_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
304 machine->gpio_ext_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
327 tegra_wm8903_dai.codec_of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
336 tegra_wm8903_dai.cpu_of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
Dtrimslice.c122 struct device_node *np = pdev->dev.of_node; in tegra_snd_trimslice_probe() local
138 trimslice_tlv320aic23_dai.codec_of_node = of_parse_phandle(np, in tegra_snd_trimslice_probe()
147 trimslice_tlv320aic23_dai.cpu_of_node = of_parse_phandle(np, in tegra_snd_trimslice_probe()
Dtegra_wm8753.c127 struct device_node *np = pdev->dev.of_node; in tegra_wm8753_driver_probe() local
151 tegra_wm8753_dai.codec_of_node = of_parse_phandle(np, in tegra_wm8753_driver_probe()
160 tegra_wm8753_dai.cpu_of_node = of_parse_phandle(np, in tegra_wm8753_driver_probe()
Dtegra_alc5632.c155 struct device_node *np = pdev->dev.of_node; in tegra_alc5632_probe() local
171 alc5632->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_alc5632_probe()
193 tegra_alc5632_dai.cpu_of_node = of_parse_phandle(np, in tegra_alc5632_probe()
Dtegra_wm9712.c77 struct device_node *np = pdev->dev.of_node; in tegra_wm9712_driver_probe() local
111 tegra_wm9712_dai.cpu_of_node = of_parse_phandle(np, in tegra_wm9712_driver_probe()
/sound/soc/fsl/
Dfsl_dma.c868 struct device_node *ssi_np, *np; in find_ssi_node() local
874 np = of_parse_phandle(ssi_np, "fsl,playback-dma", 0); in find_ssi_node()
875 of_node_put(np); in find_ssi_node()
876 if (np == dma_channel_np) in find_ssi_node()
879 np = of_parse_phandle(ssi_np, "fsl,capture-dma", 0); in find_ssi_node()
880 of_node_put(np); in find_ssi_node()
881 if (np == dma_channel_np) in find_ssi_node()
900 struct device_node *np = pdev->dev.of_node; in fsl_soc_dma_probe() local
907 ssi_np = find_ssi_node(np); in fsl_soc_dma_probe()
921 dma = kzalloc(sizeof(*dma) + strlen(np->full_name), GFP_KERNEL); in fsl_soc_dma_probe()
[all …]
Dfsl_ssi.c661 struct device_node *np = pdev->dev.of_node; in fsl_ssi_probe() local
672 if (!of_device_is_available(np)) in fsl_ssi_probe()
676 sprop = of_get_property(np, "fsl,mode", NULL); in fsl_ssi_probe()
683 p = strrchr(np->full_name, '/') + 1; in fsl_ssi_probe()
699 ret = of_address_to_resource(np, 0, &res); in fsl_ssi_probe()
704 ssi_private->ssi = of_iomap(np, 0); in fsl_ssi_probe()
712 ssi_private->irq = irq_of_parse_and_map(np, 0); in fsl_ssi_probe()
714 dev_err(&pdev->dev, "no irq for node %s\n", np->full_name); in fsl_ssi_probe()
728 if (!of_find_property(np, "fsl,ssi-asynchronous", NULL)) in fsl_ssi_probe()
732 iprop = of_get_property(np, "fsl,fifo-depth", NULL); in fsl_ssi_probe()
[all …]
Dp1022_ds.c203 struct device_node *np = ssi_pdev->dev.of_node; in p1022_ds_probe() local
211 codec_np = of_parse_phandle(np, "codec-handle", 0); in p1022_ds_probe()
240 iprop = of_get_property(np, "cell-index", NULL); in p1022_ds_probe()
249 sprop = of_get_property(np, "fsl,mode", NULL); in p1022_ds_probe()
324 ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0], in p1022_ds_probe()
334 ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", &mdata->dai[1], in p1022_ds_probe()
Dmpc8610_hpcd.c193 struct device_node *np = ssi_pdev->dev.of_node; in mpc8610_hpcd_probe() local
201 codec_np = of_parse_phandle(np, "codec-handle", 0); in mpc8610_hpcd_probe()
230 iprop = of_get_property(np, "cell-index", NULL); in mpc8610_hpcd_probe()
239 sprop = of_get_property(np, "fsl,mode", NULL); in mpc8610_hpcd_probe()
314 ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", in mpc8610_hpcd_probe()
325 ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", in mpc8610_hpcd_probe()
Dp1022_rdk.c207 struct device_node *np = ssi_pdev->dev.of_node; in p1022_rdk_probe() local
214 codec_np = of_parse_phandle(np, "codec-handle", 0); in p1022_rdk_probe()
274 ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0], in p1022_rdk_probe()
285 ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", &mdata->dai[1], in p1022_rdk_probe()
Dimx-sgtl5000.c61 struct device_node *np = pdev->dev.of_node; in imx_sgtl5000_probe() local
69 ret = of_property_read_u32(np, "mux-int-port", &int_port); in imx_sgtl5000_probe()
74 ret = of_property_read_u32(np, "mux-ext-port", &ext_port); in imx_sgtl5000_probe()
Dpcm030-audio-fabric.c56 struct device_node *np = op->dev.of_node; in pcm030_fabric_probe() local
76 platform_np = of_parse_phandle(np, "asoc-platform", 0); in pcm030_fabric_probe()
/sound/soc/atmel/
Dsam9g20_wm8731.c202 struct device_node *np = pdev->dev.of_node; in at91sam9g20ek_audio_probe() local
215 if (!np) { in at91sam9g20ek_audio_probe()
255 if (np) { in at91sam9g20ek_audio_probe()
267 codec_np = of_parse_phandle(np, "atmel,audio-codec", 0); in at91sam9g20ek_audio_probe()
277 cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); in at91sam9g20ek_audio_probe()
/sound/ppc/
Dtumbler.c1065 struct device_node *np; in find_audio_device() local
1071 for (np = of_get_next_child(gpiop, NULL); np; in find_audio_device()
1072 np = of_get_next_child(gpiop, np)) { in find_audio_device()
1073 const char *property = of_get_property(np, "audio-gpio", NULL); in find_audio_device()
1078 return np; in find_audio_device()
1085 struct device_node *np; in find_compatible_audio_device() local
1091 for (np = of_get_next_child(gpiop, NULL); np; in find_compatible_audio_device()
1092 np = of_get_next_child(gpiop, np)) { in find_compatible_audio_device()
1093 if (of_device_is_compatible(np, name)) in find_compatible_audio_device()
1097 return np; in find_compatible_audio_device()
[all …]
Dpmac.c1071 struct device_node *np = pci_device_to_OF_node(pdev); in snd_pmac_detect() local
1072 if (np && np == macio->of_node) { in snd_pmac_detect()
1184 struct device_node *np; in snd_pmac_new() local
1216 np = chip->node; in snd_pmac_new()
1222 if (of_address_to_resource(np->parent, i, in snd_pmac_new()
1247 if (of_address_to_resource(np, i, in snd_pmac_new()
1274 irq = irq_of_parse_and_map(np, 0); in snd_pmac_new()
1284 irq = irq_of_parse_and_map(np, 1); in snd_pmac_new()
1291 irq = irq_of_parse_and_map(np, 2); in snd_pmac_new()
/sound/soc/samsung/
Dsmdk_wm8994.c157 struct device_node *np = pdev->dev.of_node; in smdk_audio_probe() local
162 if (np) { in smdk_audio_probe()
164 smdk_dai[0].cpu_of_node = of_parse_phandle(np, in smdk_audio_probe()
Di2s.c1108 struct device_node *np = pdev->dev.of_node; in samsung_i2s_probe() local
1134 if (!np) { in samsung_i2s_probe()
1164 if (of_find_property(np, "samsung,supports-6ch", NULL)) in samsung_i2s_probe()
1167 if (of_find_property(np, "samsung,supports-secdai", NULL)) in samsung_i2s_probe()
1170 if (of_find_property(np, "samsung,supports-rstclr", NULL)) in samsung_i2s_probe()
1173 if (of_property_read_u32(np, "samsung,idma-addr", in samsung_i2s_probe()
1224 if (!np) { in samsung_i2s_probe()
1238 if (np) { in samsung_i2s_probe()
/sound/soc/codecs/
Dak4104.c232 struct device_node *np = spi->dev.of_node; in ak4104_spi_probe() local
254 if (np) { in ak4104_spi_probe()
256 int gpio = of_get_named_gpio_flags(np, "reset-gpio", 0, &flags); in ak4104_spi_probe()
/sound/soc/davinci/
Ddavinci-mcasp.c1024 struct device_node *np = pdev->dev.of_node; in davinci_mcasp_set_pdata_from_of() local
1052 ret = of_property_read_u32(np, "op-mode", &val); in davinci_mcasp_set_pdata_from_of()
1056 ret = of_property_read_u32(np, "tdm-slots", &val); in davinci_mcasp_set_pdata_from_of()
1068 ret = of_property_read_u32(np, "num-serializer", &val); in davinci_mcasp_set_pdata_from_of()
1072 of_serial_dir32 = of_get_property(np, "serial-dir", &val); in davinci_mcasp_set_pdata_from_of()
1097 ret = of_property_read_u32(np, "tx-num-evt", &val); in davinci_mcasp_set_pdata_from_of()
1101 ret = of_property_read_u32(np, "rx-num-evt", &val); in davinci_mcasp_set_pdata_from_of()
1105 ret = of_property_read_u32(np, "sram-size-playback", &val); in davinci_mcasp_set_pdata_from_of()
1109 ret = of_property_read_u32(np, "sram-size-capture", &val); in davinci_mcasp_set_pdata_from_of()

12