| /drivers/core/ |
| A D | of_extra.c | 17 ofnode subnode; in ofnode_read_fmap_entry() local 43 subnode = ofnode_find_subnode(node, "hash"); in ofnode_read_fmap_entry() 44 if (ofnode_valid(subnode)) { in ofnode_read_fmap_entry() 45 prop = ofnode_read_prop(subnode, "value", &entry->hash_size); in ofnode_read_fmap_entry() 138 ofnode node, subnode; in ofnode_phy_is_fixed_link() local 141 subnode = ofnode_find_subnode(eth_node, "fixed-link"); in ofnode_phy_is_fixed_link() 142 if (ofnode_valid(subnode)) { in ofnode_phy_is_fixed_link() 144 node = subnode; in ofnode_phy_is_fixed_link()
|
| A D | ofnode.c | 596 ofnode subnode; in ofnode_find_subnode() local 607 subnode = noffset_to_ofnode(node, ooffset); in ofnode_find_subnode() 609 log_debug("%s\n", ofnode_valid(subnode) ? in ofnode_find_subnode() 610 ofnode_get_name(subnode) : "<none>"); in ofnode_find_subnode() 612 return subnode; in ofnode_find_subnode() 617 ofnode subnode, found = ofnode_null(); in ofnode_find_subnode_unit() local 622 ofnode_for_each_subnode(subnode, node) { in ofnode_find_subnode_unit() 624 found = subnode; in ofnode_find_subnode_unit() 2037 ofnode subnode; in ofnode_add_subnode() local 2049 subnode = np_to_ofnode(child); in ofnode_add_subnode() [all …]
|
| /drivers/spi/ |
| A D | cadence_qspi.c | 401 ofnode subnode; in cadence_spi_of_to_plat() local 418 subnode = cadence_qspi_get_subnode(bus); in cadence_spi_of_to_plat() 419 if (!ofnode_valid(subnode)) { in cadence_spi_of_to_plat() 425 plat->max_hz = ofnode_read_u32_default(subnode, "spi-max-frequency", in cadence_spi_of_to_plat() 429 plat->page_size = ofnode_read_u32_default(subnode, "page-size", 256); in cadence_spi_of_to_plat() 430 plat->block_size = ofnode_read_u32_default(subnode, "block-size", 16); in cadence_spi_of_to_plat() 431 plat->tshsl_ns = ofnode_read_u32_default(subnode, "cdns,tshsl-ns", in cadence_spi_of_to_plat() 433 plat->tsd2d_ns = ofnode_read_u32_default(subnode, "cdns,tsd2d-ns", in cadence_spi_of_to_plat() 435 plat->tchsh_ns = ofnode_read_u32_default(subnode, "cdns,tchsh-ns", 20); in cadence_spi_of_to_plat() 436 plat->tslch_ns = ofnode_read_u32_default(subnode, "cdns,tslch-ns", 20); in cadence_spi_of_to_plat() [all …]
|
| /drivers/video/ |
| A D | nexell_display.c | 178 ofnode subnode; in nx_display_parse_dp_planes() local 180 ofnode_for_each_subnode(subnode, node) { in nx_display_parse_dp_planes() 181 name = ofnode_get_name(subnode); in nx_display_parse_dp_planes() 184 nx_display_parse_dp_top_layer(subnode, &dp->top); in nx_display_parse_dp_planes() 195 nx_display_parse_dp_layer(subnode, &dp->planes[0]); in nx_display_parse_dp_planes() 338 ofnode subnode; in nx_display_parse_dt() local 349 ofnode_for_each_subnode(subnode, dev_ofnode(dev)) { in nx_display_parse_dt() 350 name = ofnode_get_name(subnode); in nx_display_parse_dt() 354 nx_display_parse_dp_sync(subnode, &dp->sync); in nx_display_parse_dt() 359 nx_display_parse_dp_ctrl(subnode, &dp->ctrl); in nx_display_parse_dt() [all …]
|
| /drivers/power/pmic/ |
| A D | palmas.c | 48 ofnode subnode, gpio_node; in palmas_bind() local 69 dev_for_each_subnode(subnode, dev) { in palmas_bind() 73 name = ofnode_get_name(subnode); in palmas_bind() 76 pmic_node = subnode; in palmas_bind()
|
| /drivers/usb/dwc3/ |
| A D | dwc3-uniphier.c | 82 ofnode subnode; in dwc3_uniphier_glue_get_ctrl_dev() local 89 ofnode_for_each_subnode(subnode, dev_ofnode(dev)) { in dwc3_uniphier_glue_get_ctrl_dev() 90 name = ofnode_get_name(subnode); in dwc3_uniphier_glue_get_ctrl_dev() 93 name, subnode, &child); in dwc3_uniphier_glue_get_ctrl_dev()
|
| /drivers/i2c/muxes/ |
| A D | i2c-mux-gpio.c | 78 int i = 0, subnode, ret; in i2c_mux_gpio_probe() local 88 fdt_for_each_subnode(subnode, fdt, node) { in i2c_mux_gpio_probe() 89 *(values + i) = fdtdec_get_uint(fdt, subnode, "reg", -1); in i2c_mux_gpio_probe()
|
| /drivers/power/domain/ |
| A D | imx8m-power-domain.c | 478 ofnode subnode; in imx8m_power_domain_bind() local 482 ofnode_for_each_subnode(subnode, dev_ofnode(dev)) { in imx8m_power_domain_bind() 484 name = ofnode_get_name(subnode); in imx8m_power_domain_bind() 488 subnode = ofnode_first_subnode(subnode); in imx8m_power_domain_bind() 489 name = ofnode_get_name(subnode); in imx8m_power_domain_bind() 493 subnode, in imx8m_power_domain_bind()
|
| /drivers/ram/renesas/rzn1/ |
| A D | ddr_async.c | 280 ofnode subnode; in cadence_ddr_probe() local 324 dev_for_each_subnode(subnode, dev) { in cadence_ddr_probe() 325 ret = ofnode_read_u32(subnode, "size", &priv->ddr_size); in cadence_ddr_probe() 331 ret = ofnode_read_u32_array(subnode, "cadence,ctl-000", priv->reg0, 88); in cadence_ddr_probe() 337 ret = ofnode_read_u32_array(subnode, "cadence,ctl-350", priv->reg350, 25); in cadence_ddr_probe()
|
| /drivers/phy/marvell/ |
| A D | comphy_cp110.c | 560 int lane, subnode; in comphy_cp110_init_serdes_map() local 581 fdt_for_each_subnode(subnode, gd->fdt_blob, node) { in comphy_cp110_init_serdes_map() 583 if (!fdtdec_get_is_enabled(gd->fdt_blob, subnode)) in comphy_cp110_init_serdes_map() 587 fdtdec_get_int(gd->fdt_blob, subnode, "phy-type", in comphy_cp110_init_serdes_map() 597 fdtdec_get_int(gd->fdt_blob, subnode, "phy-speed", in comphy_cp110_init_serdes_map() 601 fdtdec_get_int(gd->fdt_blob, subnode, "phy-invert", in comphy_cp110_init_serdes_map() 605 fdtdec_get_bool(gd->fdt_blob, subnode, "clk-src"); in comphy_cp110_init_serdes_map() 608 fdtdec_get_bool(gd->fdt_blob, subnode, "end_point"); in comphy_cp110_init_serdes_map()
|
| /drivers/tpm/ |
| A D | tpm2_tis_sandbox.c | 111 int subnode; in sandbox_tpm2_read_state() local 114 subnode = fdt_subnode_offset(blob, node, prop_name); in sandbox_tpm2_read_state() 115 if (subnode < 0) in sandbox_tpm2_read_state() 117 prop = fdt_getprop(blob, subnode, "value", &len); in sandbox_tpm2_read_state() 121 state->pcr_extensions[i] = fdtdec_get_uint(blob, subnode, in sandbox_tpm2_read_state() 184 int subnode; in sandbox_tpm2_write_state() local 187 subnode = fdt_add_subnode(blob, node, prop_name); in sandbox_tpm2_write_state() 188 fdt_setprop(blob, subnode, "value", state->pcr[i], in sandbox_tpm2_write_state() 190 fdt_setprop_u32(blob, subnode, "extensions", in sandbox_tpm2_write_state()
|
| /drivers/net/ |
| A D | mt7620-eth.c | 1050 ofnode subnode; in mt7620_eth_parse_gsw_port() local 1067 subnode = ofnode_find_subnode(node, "fixed-link"); in mt7620_eth_parse_gsw_port() 1068 if (ofnode_valid(subnode)) { in mt7620_eth_parse_gsw_port() 1070 priv->port_cfg[idx].duplex = ofnode_read_bool(subnode, in mt7620_eth_parse_gsw_port() 1072 speed = ofnode_read_u32_default(subnode, "speed", 0); in mt7620_eth_parse_gsw_port() 1092 ret = gpio_request_by_name_nodev(subnode, in mt7620_eth_parse_gsw_port() 1122 ofnode subnode; in mt7620_eth_parse_gsw_cfg() local 1126 if (ofnode_valid(subnode)) { in mt7620_eth_parse_gsw_cfg() 1127 ret = mt7620_eth_parse_gsw_port(priv, 0, subnode); in mt7620_eth_parse_gsw_cfg() 1135 if (ofnode_valid(subnode)) in mt7620_eth_parse_gsw_cfg() [all …]
|
| /drivers/pci/ |
| A D | pci_mvebu.c | 711 ofnode subnode; in mvebu_pcie_bind() local 743 ofnode_for_each_subnode(subnode, dev_ofnode(parent)) { in mvebu_pcie_bind() 744 if (!ofnode_is_enabled(subnode)) in mvebu_pcie_bind() 751 if (mvebu_pcie_port_parse_dt(subnode, dev_ofnode(parent), pcie) < 0) { in mvebu_pcie_bind() 783 ports_nodes[ports_count] = subnode; in mvebu_pcie_bind() 794 subnode = ports_nodes[i]; in mvebu_pcie_bind() 802 if (mvebu_pcie_enable_link(pcie, subnode) < 0) { in mvebu_pcie_bind() 808 device_bind(parent, &pcie_mvebu_drv, pcie->name, pcie, subnode, in mvebu_pcie_bind()
|
| A D | pcie_mediatek.c | 661 ofnode subnode; in mtk_pcie_probe() local 697 dev_for_each_subnode(subnode, dev) { in mtk_pcie_probe() 702 if (!ofnode_is_enabled(subnode)) in mtk_pcie_probe() 705 err = ofnode_read_pci_addr(subnode, 0, "reg", &addr, NULL); in mtk_pcie_probe() 733 ofnode subnode; in mtk_pcie_probe_v2() local 762 dev_for_each_subnode(subnode, dev) { in mtk_pcie_probe_v2() 767 if (!ofnode_is_enabled(subnode)) in mtk_pcie_probe_v2() 770 err = ofnode_read_pci_addr(subnode, 0, "reg", &addr, NULL); in mtk_pcie_probe_v2()
|
| A D | pci_tegra.c | 483 ofnode subnode; in tegra_pcie_parse_dt() local 522 dev_for_each_subnode(subnode, dev) { in tegra_pcie_parse_dt() 526 err = tegra_pcie_parse_port_info(subnode, &index, &num_lanes); in tegra_pcie_parse_dt() 534 if (!ofnode_is_enabled(subnode)) in tegra_pcie_parse_dt() 545 err = tegra_pcie_port_parse_dt(subnode, port); in tegra_pcie_parse_dt()
|
| /drivers/net/ti/ |
| A D | cpsw.c | 1095 int slave_index, ofnode subnode) in cpsw_eth_of_parse_slave() argument 1104 slave_data->phy_if = ofnode_read_phy_mode(subnode); in cpsw_eth_of_parse_slave() 1121 slave_data->max_speed = ofnode_read_s32_default(subnode, in cpsw_eth_of_parse_slave() 1132 ofnode subnode; in cpsw_eth_of_to_plat() local 1195 ofnode_for_each_subnode(subnode, dev_ofnode(dev)) { in cpsw_eth_of_to_plat() 1198 name = ofnode_get_name(subnode); in cpsw_eth_of_to_plat() 1200 data->mdio_base = ofnode_get_addr(subnode); in cpsw_eth_of_to_plat() 1211 cpsw_eth_of_parse_slave(data, slave_index, subnode); in cpsw_eth_of_to_plat() 1216 data->gmii_sel = ofnode_get_addr(subnode); in cpsw_eth_of_to_plat() 1223 if (ofnode_read_bool(subnode, "rmii-clock-ext")) in cpsw_eth_of_to_plat() [all …]
|
| /drivers/pinctrl/ |
| A D | pinctrl-at91-pio4.c | 200 int subnode, subnode_count = 0, ret; in atmel_pinctrl_set_state() local 219 fdt_for_each_subnode(subnode, gd->fdt_blob, node) { in atmel_pinctrl_set_state() 221 ret = uclass_find_device_by_of_offset(UCLASS_PINCONFIG, subnode, in atmel_pinctrl_set_state()
|
| A D | pinctrl_stm32.c | 370 ofnode subnode; in stm32_pinctrl_config() local 376 ofnode_for_each_subnode(subnode, node) { in stm32_pinctrl_config() 381 rv = ofnode_read_size(subnode, "pinmux"); in stm32_pinctrl_config() 388 rv = ofnode_read_u32_array(subnode, "pinmux", pin_mux, len); in stm32_pinctrl_config() 396 prep_gpio_ctl(&gpio_ctl, *(pin_mux + i), subnode); in stm32_pinctrl_config()
|
| /drivers/net/octeontx/ |
| A D | smi.c | 321 ofnode subnode; in octeontx_smi_probe() local 330 dev_for_each_subnode(subnode, dev) { in octeontx_smi_probe() 331 if (!ofnode_device_is_compatible(subnode, in octeontx_smi_probe() 334 if (ofnode_read_u64(subnode, "reg", &baseaddr)) in octeontx_smi_probe()
|
| /drivers/ram/ |
| A D | mpc83xx_sdram.c | 313 ofnode subnode; in mpc83xx_sdram_probe() local 439 dev_for_each_subnode(subnode, dev) { in mpc83xx_sdram_probe() 444 ofnode_read_u32_array(subnode, "reg", val, 3); in mpc83xx_sdram_probe() 458 if (ofnode_read_bool(subnode, "read-spd")) in mpc83xx_sdram_probe() 459 ret = mpc83xx_sdram_spd_init(subnode, cs, addr, size); in mpc83xx_sdram_probe() 461 ret = mpc83xx_sdram_static_init(subnode, cs, addr, in mpc83xx_sdram_probe() 1053 dev_for_each_subnode(subnode, dev) { in mpc83xx_sdram_probe() 1058 ofnode_read_u32_array(subnode, "reg", val, 3); in mpc83xx_sdram_probe()
|
| /drivers/net/phy/ |
| A D | phy.c | 895 ofnode subnode; in fixed_phy_create() local 897 subnode = ofnode_find_subnode(node, "fixed-link"); in fixed_phy_create() 898 if (!ofnode_valid(subnode)) { in fixed_phy_create() 904 phydev->node = subnode; in fixed_phy_create() 914 ofnode node = dev_ofnode(dev), subnode; in phy_connect_fixed() local 917 if (ofnode_phy_is_fixed_link(node, &subnode)) { in phy_connect_fixed() 920 phydev->node = subnode; in phy_connect_fixed()
|
| /drivers/phy/ |
| A D | phy-mtk-tphy.c | 840 ofnode subnode; in mtk_tphy_probe() local 858 dev_for_each_subnode(subnode, dev) { in mtk_tphy_probe() 867 addr = ofnode_get_addr(subnode); in mtk_tphy_probe() 873 instance->np = ofnode_to_np(subnode); in mtk_tphy_probe() 877 err = clk_get_by_name_nodev_optional(subnode, "ref", in mtk_tphy_probe() 882 err = clk_get_by_name_nodev_optional(subnode, "da_ref", in mtk_tphy_probe() 887 err = phy_type_syscon_get(dev, instance, subnode); in mtk_tphy_probe()
|
| /drivers/pinctrl/mvebu/ |
| A D | pinctrl-armada-37xx.c | 664 int subnode; in armada_37xx_gpiochip_register() local 675 fdt_for_each_subnode(subnode, blob, node) { in armada_37xx_gpiochip_register() 676 if (fdtdec_get_bool(blob, subnode, "gpio-controller")) { in armada_37xx_gpiochip_register() 689 offset_to_ofnode(subnode), &dev); in armada_37xx_gpiochip_register()
|
| /drivers/pinctrl/intel/ |
| A D | Kconfig | 33 subnode of the host bridge.
|
| /drivers/net/mtk_eth/ |
| A D | mtk_eth.c | 1295 ofnode subnode; in mtk_eth_of_to_plat() local 1339 subnode = ofnode_find_subnode(dev_ofnode(dev), "mdio"); in mtk_eth_of_to_plat() 1340 if (ofnode_valid(subnode)) { in mtk_eth_of_to_plat() 1341 priv->mdc = ofnode_read_u32_default(subnode, "clock-frequency", 2500000); in mtk_eth_of_to_plat() 1358 subnode = ofnode_find_subnode(dev_ofnode(dev), "fixed-link"); in mtk_eth_of_to_plat() 1359 if (ofnode_valid(subnode)) { in mtk_eth_of_to_plat() 1361 priv->speed = ofnode_read_u32_default(subnode, "speed", 0); in mtk_eth_of_to_plat() 1362 priv->duplex = ofnode_read_bool(subnode, "full-duplex"); in mtk_eth_of_to_plat()
|