/arch/powerpc/platforms/85xx/ |
D | common.c | 65 struct device_node *np; in mpc85xx_cpm2_pic_init() local 69 np = of_find_compatible_node(NULL, NULL, "fsl,cpm2-pic"); in mpc85xx_cpm2_pic_init() 70 if (np == NULL) { in mpc85xx_cpm2_pic_init() 74 irq = irq_of_parse_and_map(np, 0); in mpc85xx_cpm2_pic_init() 76 of_node_put(np); in mpc85xx_cpm2_pic_init() 81 cpm2_pic_init(np); in mpc85xx_cpm2_pic_init() 82 of_node_put(np); in mpc85xx_cpm2_pic_init() 90 struct device_node *np; in mpc85xx_qe_init() local 92 np = of_find_compatible_node(NULL, NULL, "fsl,qe"); in mpc85xx_qe_init() 93 if (!np) { in mpc85xx_qe_init() [all …]
|
D | twr_p102x.c | 39 struct device_node *np; in twr_p1025_pic_init() local 50 np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); in twr_p1025_pic_init() 51 if (np) { in twr_p1025_pic_init() 52 qe_ic_init(np, 0, qe_ic_cascade_low_mpic, in twr_p1025_pic_init() 54 of_node_put(np); in twr_p1025_pic_init() 68 struct device_node *np; in twr_p1025_setup_arch() local 86 np = of_find_compatible_node(NULL, NULL, "fsl,p1021-guts"); in twr_p1025_setup_arch() 87 if (np) { in twr_p1025_setup_arch() 88 guts = of_iomap(np, 0); in twr_p1025_setup_arch() 118 of_node_put(np); in twr_p1025_setup_arch()
|
D | mpc85xx_mds.c | 163 struct device_node *np; in mpc85xx_mds_reset_ucc_phys() local 167 np = of_find_node_by_name(NULL, "bcsr"); in mpc85xx_mds_reset_ucc_phys() 168 if (!np) in mpc85xx_mds_reset_ucc_phys() 171 bcsr_regs = of_iomap(np, 0); in mpc85xx_mds_reset_ucc_phys() 172 of_node_put(np); in mpc85xx_mds_reset_ucc_phys() 209 for_each_compatible_node(np, "network", "ucc_geth") { in mpc85xx_mds_reset_ucc_phys() 213 prop = of_get_property(np, "cell-index", NULL); in mpc85xx_mds_reset_ucc_phys() 219 prop = of_get_property(np, "phy-connection-type", NULL); in mpc85xx_mds_reset_ucc_phys() 239 struct device_node *np; in mpc85xx_mds_qe_init() local 249 np = of_find_node_by_name(NULL, "global-utilities"); in mpc85xx_mds_qe_init() [all …]
|
/arch/powerpc/platforms/83xx/ |
D | misc.c | 76 struct device_node *np; in mpc83xx_ipic_init_IRQ() local 79 np = of_find_compatible_node(NULL, NULL, "fsl,ipic"); in mpc83xx_ipic_init_IRQ() 80 if (!np) in mpc83xx_ipic_init_IRQ() 81 np = of_find_node_by_type(NULL, "ipic"); in mpc83xx_ipic_init_IRQ() 82 if (!np) in mpc83xx_ipic_init_IRQ() 85 ipic_init(np, 0); in mpc83xx_ipic_init_IRQ() 87 of_node_put(np); in mpc83xx_ipic_init_IRQ() 98 struct device_node *np; in mpc83xx_qe_init_IRQ() local 100 np = of_find_compatible_node(NULL, NULL, "fsl,qe-ic"); in mpc83xx_qe_init_IRQ() 101 if (!np) { in mpc83xx_qe_init_IRQ() [all …]
|
D | mpc836x_mds.c | 66 struct device_node *np; in mpc836x_mds_setup_arch() local 73 np = of_find_node_by_name(NULL, "bcsr"); in mpc836x_mds_setup_arch() 74 if (np) { in mpc836x_mds_setup_arch() 77 of_address_to_resource(np, 0, &res); in mpc836x_mds_setup_arch() 79 of_node_put(np); in mpc836x_mds_setup_arch() 87 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc836x_mds_setup_arch() 88 par_io_init(np); in mpc836x_mds_setup_arch() 89 of_node_put(np); in mpc836x_mds_setup_arch() 91 for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;) in mpc836x_mds_setup_arch() 92 par_io_of_config(np); in mpc836x_mds_setup_arch() [all …]
|
D | mpc832x_mds.c | 58 struct device_node *np; in mpc832x_sys_setup_arch() local 65 np = of_find_node_by_name(NULL, "bcsr"); in mpc832x_sys_setup_arch() 66 if (np) { in mpc832x_sys_setup_arch() 69 of_address_to_resource(np, 0, &res); in mpc832x_sys_setup_arch() 71 of_node_put(np); in mpc832x_sys_setup_arch() 79 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc832x_sys_setup_arch() 80 par_io_init(np); in mpc832x_sys_setup_arch() 81 of_node_put(np); in mpc832x_sys_setup_arch() 83 for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;) in mpc832x_sys_setup_arch() 84 par_io_of_config(np); in mpc832x_sys_setup_arch() [all …]
|
D | usb.c | 31 struct device_node *np = NULL; in mpc834x_usb_cfg() local 45 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg() 46 if (np) { in mpc834x_usb_cfg() 49 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg() 57 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg() 69 of_node_put(np); in mpc834x_usb_cfg() 71 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg() 72 if (np) { in mpc834x_usb_cfg() 75 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg() 82 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg() [all …]
|
D | km83xx.c | 130 struct device_node *np; in mpc83xx_km_setup_arch() local 141 np = of_find_node_by_name(NULL, "par_io"); in mpc83xx_km_setup_arch() 142 if (np != NULL) { in mpc83xx_km_setup_arch() 143 par_io_init(np); in mpc83xx_km_setup_arch() 144 of_node_put(np); in mpc83xx_km_setup_arch() 146 for_each_node_by_name(np, "spi") in mpc83xx_km_setup_arch() 147 par_io_of_config(np); in mpc83xx_km_setup_arch() 149 for_each_node_by_name(np, "ucc") in mpc83xx_km_setup_arch() 150 par_io_of_config(np); in mpc83xx_km_setup_arch() 153 np = of_find_compatible_node(NULL, "network", "ucc_geth"); in mpc83xx_km_setup_arch() [all …]
|
D | mpc837x_mds.c | 32 struct device_node *np; in mpc837xmds_usb_cfg() local 42 np = of_find_compatible_node(NULL, NULL, "fsl,mpc837xmds-bcsr"); in mpc837xmds_usb_cfg() 43 if (np) { in mpc837xmds_usb_cfg() 44 bcsr_regs = of_iomap(np, 0); in mpc837xmds_usb_cfg() 45 of_node_put(np); in mpc837xmds_usb_cfg() 50 np = of_find_node_by_name(NULL, "usb"); in mpc837xmds_usb_cfg() 51 if (!np) { in mpc837xmds_usb_cfg() 55 phy_type = of_get_property(np, "phy_type", NULL); in mpc837xmds_usb_cfg() 59 mode = of_get_property(np, "dr_mode", NULL); in mpc837xmds_usb_cfg() 69 of_node_put(np); in mpc837xmds_usb_cfg()
|
D | mpc832x_rdb.c | 49 struct device_node *np; in of_fsl_spi_probe() local 52 for_each_compatible_node(np, type, compatible) { in of_fsl_spi_probe() 66 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe() 71 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe() 75 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe() 87 ret = of_address_to_resource(np, 0, &res[0]); in of_fsl_spi_probe() 91 ret = of_irq_to_resource(np, 0, &res[1]); in of_fsl_spi_probe() 116 pr_err("%s: registration failed\n", np->full_name); in of_fsl_spi_probe() 197 struct device_node *np; in mpc832x_rdb_setup_arch() local 208 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc832x_rdb_setup_arch() [all …]
|
/arch/powerpc/sysdev/ |
D | mv64x60_dev.c | 34 static int __init mv64x60_mpsc_register_shared_pdev(struct device_node *np) in mv64x60_mpsc_register_shared_pdev() argument 43 ph = of_get_property(np, "mpscrouting", NULL); in mv64x60_mpsc_register_shared_pdev() 53 ph = of_get_property(np, "mpscintr", NULL); in mv64x60_mpsc_register_shared_pdev() 89 static int __init mv64x60_mpsc_device_setup(struct device_node *np, int id) in mv64x60_mpsc_device_setup() argument 101 if (id == 0 && (err = mv64x60_mpsc_register_shared_pdev(np))) in mv64x60_mpsc_device_setup() 106 err = of_address_to_resource(np, 0, &r[0]); in mv64x60_mpsc_device_setup() 110 of_irq_to_resource(np, 0, &r[4]); in mv64x60_mpsc_device_setup() 112 ph = of_get_property(np, "sdma", NULL); in mv64x60_mpsc_device_setup() 123 ph = of_get_property(np, "brg", NULL); in mv64x60_mpsc_device_setup() 133 prop = of_get_property(np, "cell-index", NULL); in mv64x60_mpsc_device_setup() [all …]
|
D | rtc_cmos_setup.c | 22 struct device_node *np; in add_rtc() local 30 np = of_find_compatible_node(NULL, NULL, "pnpPNP,b00"); in add_rtc() 31 if (!np) in add_rtc() 34 ret = of_address_to_resource(np, 0, &res[0]); in add_rtc() 35 of_node_put(np); in add_rtc() 46 np = of_find_compatible_node(NULL, NULL, "chrp,iic"); in add_rtc() 47 if (!np) in add_rtc() 48 np = of_find_compatible_node(NULL, NULL, "pnpPNP,000"); in add_rtc() 49 if (np) { in add_rtc() 50 of_node_put(np); in add_rtc()
|
D | ppc4xx_soc.c | 76 struct device_node *np; in ppc4xx_l2c_probe() local 86 np = of_find_compatible_node(NULL, NULL, "ibm,l2-cache"); in ppc4xx_l2c_probe() 87 if (!np) in ppc4xx_l2c_probe() 91 prop = of_get_property(np, "cache-size", NULL); in ppc4xx_l2c_probe() 93 printk(KERN_ERR "%s: Can't get cache-size!\n", np->full_name); in ppc4xx_l2c_probe() 94 of_node_put(np); in ppc4xx_l2c_probe() 100 dcrreg = of_get_property(np, "dcr-reg", &len); in ppc4xx_l2c_probe() 103 np->full_name); in ppc4xx_l2c_probe() 104 of_node_put(np); in ppc4xx_l2c_probe() 111 irq = irq_of_parse_and_map(np, 0); in ppc4xx_l2c_probe() [all …]
|
/arch/powerpc/kernel/ |
D | legacy_serial.c | 31 struct device_node *np; member 72 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument 83 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port() 88 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port() 91 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port() 111 if (legacy_serial_infos[index].np != NULL) { in add_legacy_port() 140 legacy_serial_infos[index].np = of_node_get(np); in add_legacy_port() 151 index, np->full_name); in add_legacy_port() 161 static int __init add_legacy_soc_port(struct device_node *np, in add_legacy_soc_port() argument 166 struct device_node *tsi = of_get_parent(np); in add_legacy_soc_port() [all …]
|
/arch/powerpc/platforms/cell/ |
D | cbe_regs.c | 51 static struct cbe_regs_map *cbe_find_map(struct device_node *np) in cbe_find_map() argument 56 if (strcasecmp(np->type, "spe")) { in cbe_find_map() 58 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map() 59 cbe_regs_maps[i].be_node == np) in cbe_find_map() 64 if (np->data) in cbe_find_map() 65 return np->data; in cbe_find_map() 68 tmp_np = np; in cbe_find_map() 76 np->data = cbe_find_map(tmp_np); in cbe_find_map() 78 return np->data; in cbe_find_map() 81 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) in cbe_get_pmd_regs() argument [all …]
|
/arch/powerpc/platforms/powermac/ |
D | setup.c | 107 struct device_node *np; in pmac_show_cpuinfo() local 124 np = of_find_node_by_path("/"); in pmac_show_cpuinfo() 125 if (np != NULL) { in pmac_show_cpuinfo() 126 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo() 131 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo() 142 of_node_put(np); in pmac_show_cpuinfo() 151 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo() 152 if (np == NULL) in pmac_show_cpuinfo() 153 np = of_find_node_by_type(NULL, "cache"); in pmac_show_cpuinfo() 154 if (np != NULL) { in pmac_show_cpuinfo() [all …]
|
/arch/arm/mach-vt8500/ |
D | vt8500.c | 77 struct device_node *np; in vt8500_init() local 86 np = of_find_compatible_node(NULL, NULL, "via,vt8500-gpio"); in vt8500_init() 87 if (np) { in vt8500_init() 88 gpio_base = of_iomap(np, 0); in vt8500_init() 94 of_node_put(np); in vt8500_init() 115 np = of_find_compatible_node(NULL, NULL, "wm,wm8505-gpio"); in vt8500_init() 116 if (!np) in vt8500_init() 117 np = of_find_compatible_node(NULL, NULL, in vt8500_init() 119 if (np) { in vt8500_init() 120 gpio_base = of_iomap(np, 0); in vt8500_init() [all …]
|
/arch/arm/mach-mvebu/ |
D | cpu-reset.c | 43 static int mvebu_cpu_reset_map(struct device_node *np, int res_idx) in mvebu_cpu_reset_map() argument 47 if (of_address_to_resource(np, res_idx, &res)) { in mvebu_cpu_reset_map() 53 np->full_name)) { in mvebu_cpu_reset_map() 72 struct device_node *np; in mvebu_cpu_reset_init() local 76 np = of_find_compatible_node(NULL, NULL, in mvebu_cpu_reset_init() 78 if (np) { in mvebu_cpu_reset_init() 85 np = of_find_compatible_node(NULL, NULL, in mvebu_cpu_reset_init() 87 if (np) { in mvebu_cpu_reset_init() 94 if (!np) in mvebu_cpu_reset_init() 97 ret = mvebu_cpu_reset_map(np, res_idx); in mvebu_cpu_reset_init() [all …]
|
/arch/powerpc/platforms/512x/ |
D | mpc512x_shared.c | 38 struct device_node *np; in mpc512x_restart_init() local 42 np = of_find_compatible_node(NULL, NULL, reset_compat); in mpc512x_restart_init() 43 if (!np) in mpc512x_restart_init() 46 reset_module_base = of_iomap(np, 0); in mpc512x_restart_init() 47 of_node_put(np); in mpc512x_restart_init() 75 struct device_node *np; in mpc512x_set_pixel_clock() local 81 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock() 82 if (!np) { in mpc512x_set_pixel_clock() 86 clk_diu = of_clk_get(np, 0); in mpc512x_set_pixel_clock() 89 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock() [all …]
|
/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 59 struct device_node *np; in pSeries_reconfig_add_node() local 62 np = kzalloc(sizeof(*np), GFP_KERNEL); in pSeries_reconfig_add_node() 63 if (!np) in pSeries_reconfig_add_node() 66 np->full_name = kstrdup(path, GFP_KERNEL); in pSeries_reconfig_add_node() 67 if (!np->full_name) in pSeries_reconfig_add_node() 70 np->properties = proplist; in pSeries_reconfig_add_node() 71 of_node_set_flag(np, OF_DYNAMIC); in pSeries_reconfig_add_node() 72 of_node_init(np); in pSeries_reconfig_add_node() 74 np->parent = derive_parent(path); in pSeries_reconfig_add_node() 75 if (IS_ERR(np->parent)) { in pSeries_reconfig_add_node() [all …]
|
D | hotplug-memory.c | 27 struct device_node *np; in pseries_memory_block_size() local 31 np = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in pseries_memory_block_size() 32 if (np) { in pseries_memory_block_size() 35 size = of_get_property(np, "ibm,lmb-size", NULL); in pseries_memory_block_size() 38 of_node_put(np); in pseries_memory_block_size() 43 np = of_find_node_by_path("/memory@0"); in pseries_memory_block_size() 44 if (np) { in pseries_memory_block_size() 45 if (!of_address_to_resource(np, 0, &r)) in pseries_memory_block_size() 47 of_node_put(np); in pseries_memory_block_size() 57 np = of_find_node_by_path(buf); in pseries_memory_block_size() [all …]
|
/arch/powerpc/platforms/44x/ |
D | warp.c | 71 struct device_node *np; in warp_post_info() local 76 np = of_find_compatible_node(NULL, NULL, "pika,fpga-sd"); in warp_post_info() 77 if (np == NULL) in warp_post_info() 80 fpga = of_iomap(np, 0); in warp_post_info() 81 of_node_put(np); in warp_post_info() 175 struct device_node *np, *child; in pika_setup_leds() local 177 np = of_find_compatible_node(NULL, NULL, "gpio-leds"); in pika_setup_leds() 178 if (!np) { in pika_setup_leds() 183 for_each_child_of_node(np, child) in pika_setup_leds() 189 of_node_put(np); in pika_setup_leds() [all …]
|
/arch/arm/mach-imx/ |
D | system.c | 94 struct device_node *np; in mxc_arch_reset_init_dt() local 96 np = of_find_compatible_node(NULL, NULL, "fsl,imx21-wdt"); in mxc_arch_reset_init_dt() 97 wdog_base = of_iomap(np, 0); in mxc_arch_reset_init_dt() 100 wdog_clk = of_clk_get(np, 0); in mxc_arch_reset_init_dt() 111 struct device_node *np; in imx_init_l2cache() local 114 np = of_find_compatible_node(NULL, NULL, "arm,pl310-cache"); in imx_init_l2cache() 115 if (!np) in imx_init_l2cache() 118 l2x0_base = of_iomap(np, 0); in imx_init_l2cache() 120 of_node_put(np); in imx_init_l2cache() 141 of_node_put(np); in imx_init_l2cache()
|
/arch/powerpc/platforms/52xx/ |
D | mpc52xx_common.c | 59 struct device_node *np; in mpc5200_setup_xlb_arbiter() local 62 np = of_find_matching_node(NULL, mpc52xx_xlb_ids); in mpc5200_setup_xlb_arbiter() 63 xlb = of_iomap(np, 0); in mpc5200_setup_xlb_arbiter() 64 of_node_put(np); in mpc5200_setup_xlb_arbiter() 137 struct device_node *np; in mpc52xx_map_common_devices() local 143 for_each_matching_node(np, mpc52xx_gpt_ids) { in mpc52xx_map_common_devices() 144 if (of_get_property(np, "fsl,has-wdt", NULL) || in mpc52xx_map_common_devices() 145 of_get_property(np, "has-wdt", NULL)) { in mpc52xx_map_common_devices() 146 mpc52xx_wdt = of_iomap(np, 0); in mpc52xx_map_common_devices() 147 of_node_put(np); in mpc52xx_map_common_devices() [all …]
|
/arch/powerpc/platforms/82xx/ |
D | pq2.c | 47 static void __init pq2_pci_add_bridge(struct device_node *np) in pq2_pci_add_bridge() argument 52 if (of_address_to_resource(np, 0, &r) || r.end - r.start < 0x10b) in pq2_pci_add_bridge() 57 hose = pcibios_alloc_controller(np); in pq2_pci_add_bridge() 61 hose->dn = np; in pq2_pci_add_bridge() 64 pci_process_bridge_OF_ranges(hose, np, 1); in pq2_pci_add_bridge() 74 struct device_node *np; in pq2_init_pci() local 78 for_each_compatible_node(np, NULL, "fsl,pq2-pci") in pq2_init_pci() 79 pq2_pci_add_bridge(np); in pq2_init_pci()
|