Home
last modified time | relevance | path

Searched refs:subnode (Results 1 – 25 of 51) sorted by relevance

123

/openbmc/u-boot/tools/binman/etype/
H A Dfiles.py49 subnode = self._node.FindNode(name)
50 if not subnode:
51 subnode = state.AddSubnode(self._node, name)
52 state.AddString(subnode, 'type', 'blob')
53 state.AddString(subnode, 'filename', fname)
54 state.AddString(subnode, 'compress', self._compress)
/openbmc/u-boot/drivers/phy/marvell/
H A Dcomphy_core.c80 int subnode; in comphy_probe() local
129 fdt_for_each_subnode(subnode, blob, node) { in comphy_probe()
131 if (!fdtdec_get_is_enabled(blob, subnode)) in comphy_probe()
135 blob, subnode, "phy-speed", PHY_TYPE_INVALID); in comphy_probe()
137 blob, subnode, "phy-type", PHY_SPEED_INVALID); in comphy_probe()
139 blob, subnode, "phy-invert", PHY_POLARITY_NO_INVERT); in comphy_probe()
140 comphy_map_data[lane].clk_src = fdtdec_get_bool(blob, subnode, in comphy_probe()
142 comphy_map_data[lane].end_point = fdtdec_get_bool(blob, subnode, in comphy_probe()
/openbmc/u-boot/drivers/spi/
H A Dcadence_qspi.c285 int subnode; in cadence_spi_ofdata_to_platdata() local
296 subnode = fdt_first_subnode(blob, node); in cadence_spi_ofdata_to_platdata()
297 if (subnode < 0) { in cadence_spi_ofdata_to_platdata()
303 plat->max_hz = fdtdec_get_uint(blob, subnode, "spi-max-frequency", in cadence_spi_ofdata_to_platdata()
307 plat->page_size = fdtdec_get_uint(blob, subnode, "page-size", 256); in cadence_spi_ofdata_to_platdata()
308 plat->block_size = fdtdec_get_uint(blob, subnode, "block-size", 16); in cadence_spi_ofdata_to_platdata()
309 plat->tshsl_ns = fdtdec_get_uint(blob, subnode, "cdns,tshsl-ns", 200); in cadence_spi_ofdata_to_platdata()
310 plat->tsd2d_ns = fdtdec_get_uint(blob, subnode, "cdns,tsd2d-ns", 255); in cadence_spi_ofdata_to_platdata()
311 plat->tchsh_ns = fdtdec_get_uint(blob, subnode, "cdns,tchsh-ns", 20); in cadence_spi_ofdata_to_platdata()
312 plat->tslch_ns = fdtdec_get_uint(blob, subnode, "cdns,tslch-ns", 20); in cadence_spi_ofdata_to_platdata()
/openbmc/u-boot/drivers/power/pmic/
H A Dpalmas.c47 ofnode subnode; in palmas_bind() local
50 dev_for_each_subnode(subnode, dev) { in palmas_bind()
54 name = ofnode_get_name(subnode); in palmas_bind()
57 pmic_node = subnode; in palmas_bind()
/openbmc/u-boot/arch/arm/mach-tegra/
H A Dxusb-padctl-common.c222 ofnode subnode; in tegra_xusb_padctl_config_parse_dt() local
226 ofnode_for_each_subnode(subnode, node) { in tegra_xusb_padctl_config_parse_dt()
232 err = tegra_xusb_padctl_group_parse_dt(padctl, group, subnode); in tegra_xusb_padctl_config_parse_dt()
247 ofnode subnode; in tegra_xusb_padctl_parse_dt() local
256 ofnode_for_each_subnode(subnode, node) { in tegra_xusb_padctl_parse_dt()
259 debug("%s: subnode=%s\n", __func__, ofnode_get_name(subnode)); in tegra_xusb_padctl_parse_dt()
261 subnode); in tegra_xusb_padctl_parse_dt()
/openbmc/u-boot/doc/device-tree-bindings/pmic/
H A Dmax77686.txt17 To bind each regulator, the optional regulators subnode should exists.
19 Optional subnode:
20 - voltage-regulators: subnode list of each device's regulator
H A Dsandbox.txt16 Required PMIC's "emul" subnode, with property:
/openbmc/u-boot/tools/dtoc/
H A Dfdt.py250 for subnode in self.subnodes:
251 if subnode.name == name:
252 return subnode
297 for subnode in self.subnodes:
298 if subnode.name != fdt_obj.get_name(offset):
300 (subnode.name, fdt_obj.get_name(offset)))
301 subnode.Refresh(offset)
412 subnode = Node(self._fdt, self, None, name, path)
413 self.subnodes.append(subnode)
414 return subnode
/openbmc/u-boot/drivers/i2c/muxes/
H A Di2c-mux-gpio.c76 int i = 0, subnode, ret; in i2c_mux_gpio_probe() local
86 fdt_for_each_subnode(subnode, fdt, node) { in i2c_mux_gpio_probe()
87 *(values + i) = fdtdec_get_uint(fdt, subnode, "reg", -1); in i2c_mux_gpio_probe()
/openbmc/u-boot/common/
H A Dimage-fdt.c101 int nodeoffset, subnode; in boot_fdt_add_mem_rsv_regions() local
118 subnode = fdt_first_subnode(fdt_blob, nodeoffset); in boot_fdt_add_mem_rsv_regions()
119 while (subnode >= 0) { in boot_fdt_add_mem_rsv_regions()
121 ret = fdt_get_resource(fdt_blob, subnode, "reg", 0, in boot_fdt_add_mem_rsv_regions()
129 subnode = fdt_next_subnode(fdt_blob, subnode); in boot_fdt_add_mem_rsv_regions()
/openbmc/u-boot/scripts/dtc/
H A Ddtc-parser.y88 %type <node> subnode
506 | subnode subnodes
510 | subnode propdef
517 subnode:
526 | DT_LABEL subnode
/openbmc/u-boot/include/dm/
H A Dread.h770 #define dev_for_each_subnode(subnode, dev) \ argument
771 for (subnode = dev_read_first_subnode(dev); \
772 ofnode_valid(subnode); \
773 subnode = ofnode_next_subnode(subnode))
/openbmc/u-boot/doc/device-tree-bindings/memory/
H A Dmemory.txt16 Each subnode must define
18 reg - board ID or mask for this subnode
21 Each subnode may optionally define:
/openbmc/u-boot/doc/device-tree-bindings/regulator/
H A Dmax77686.txt12 Required subnode:
25 (subnode of max77686 pmic node)
/openbmc/openbmc/poky/documentation/styles/config/vocabularies/OpenSource/
H A Daccept.txt13 subnode
/openbmc/u-boot/drivers/ram/
H A Dmpc83xx_sdram.c315 ofnode subnode; in mpc83xx_sdram_probe() local
441 dev_for_each_subnode(subnode, dev) { in mpc83xx_sdram_probe()
446 ofnode_read_u32_array(subnode, "reg", val, 3); in mpc83xx_sdram_probe()
460 if (ofnode_read_bool(subnode, "read-spd")) in mpc83xx_sdram_probe()
461 ret = mpc83xx_sdram_spd_init(subnode, cs, addr, size); in mpc83xx_sdram_probe()
463 ret = mpc83xx_sdram_static_init(subnode, cs, addr, in mpc83xx_sdram_probe()
1055 dev_for_each_subnode(subnode, dev) { in mpc83xx_sdram_probe()
1060 ofnode_read_u32_array(subnode, "reg", val, 3); in mpc83xx_sdram_probe()
/openbmc/u-boot/tools/binman/
H A Dstate.py205 subnode = n.AddSubnode(name)
207 first = subnode
/openbmc/u-boot/drivers/pinctrl/mvebu/
H A Dpinctrl-armada-37xx.c542 int subnode; in armada_37xx_gpiochip_register() local
552 fdt_for_each_subnode(subnode, blob, node) { in armada_37xx_gpiochip_register()
553 if (fdtdec_get_bool(blob, subnode, "gpio-controller")) { in armada_37xx_gpiochip_register()
565 device_bind(parent, &armada_37xx_gpio_driver, name, NULL, subnode, in armada_37xx_gpiochip_register()
567 dev_set_of_offset(dev, subnode); in armada_37xx_gpiochip_register()
/openbmc/u-boot/doc/device-tree-bindings/power/
H A Dtps65090.txt10 This node is a subnode of the tps65090 PMIC.
/openbmc/u-boot/doc/device-tree-bindings/pinctrl/
H A Dst,stm32-pinctrl.txt63 Contents of function subnode node:
66 A pinctrl node should contain at least one subnode representing the
67 pinctrl group available on the machine. Each subnode will list the
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dfdt_overlay.c605 int subnode; in overlay_apply_node() local
625 fdt_for_each_subnode(subnode, fdto, node) { in overlay_apply_node()
626 const char *name = fdt_get_name(fdto, subnode, NULL); in overlay_apply_node()
640 ret = overlay_apply_node(fdt, nnode, fdto, subnode); in overlay_apply_node()
/openbmc/u-boot/drivers/pci/
H A Dpci_mvebu.c483 ofnode subnode; in mvebu_pcie_bind() local
492 ofnode_for_each_subnode(subnode, dev_ofnode(parent)) { in mvebu_pcie_bind()
493 if (!ofnode_is_available(subnode)) in mvebu_pcie_bind()
502 subnode, &dev); in mvebu_pcie_bind()
/openbmc/u-boot/drivers/core/
H A Dofnode.c139 ofnode subnode; in ofnode_find_subnode() local
151 subnode = np_to_ofnode(np); in ofnode_find_subnode()
155 subnode = offset_to_ofnode(ooffset); in ofnode_find_subnode()
157 debug("%s\n", ofnode_valid(subnode) ? in ofnode_find_subnode()
158 ofnode_get_name(subnode) : "<none>"); in ofnode_find_subnode()
160 return subnode; in ofnode_find_subnode()
/openbmc/u-boot/drivers/net/ti/
H A Dcpsw.c1200 int subnode; in cpsw_eth_ofdata_to_platdata() local
1261 fdt_for_each_subnode(subnode, fdt, node) { in cpsw_eth_ofdata_to_platdata()
1265 name = fdt_get_name(fdt, subnode, &len); in cpsw_eth_ofdata_to_platdata()
1269 mdio_base = cpsw_get_addr_by_node(fdt, subnode); in cpsw_eth_ofdata_to_platdata()
1282 phy_mode = fdt_getprop(fdt, subnode, "phy-mode", NULL); in cpsw_eth_ofdata_to_platdata()
1288 fdtdec_lookup_phandle(fdt, subnode, in cpsw_eth_ofdata_to_platdata()
1297 fdtdec_get_int_array(fdt, subnode, "phy_id", in cpsw_eth_ofdata_to_platdata()
1307 subnode); in cpsw_eth_ofdata_to_platdata()
1314 if (fdt_get_property(fdt, subnode, "rmii-clock-ext", in cpsw_eth_ofdata_to_platdata()
1318 phy_sel_compat = fdt_getprop(fdt, subnode, "compatible", in cpsw_eth_ofdata_to_platdata()
/openbmc/u-boot/drivers/net/
H A Dmtk_eth.c1050 ofnode subnode; in mtk_eth_ofdata_to_platdata() local
1093 subnode = ofnode_find_subnode(dev_ofnode(dev), "fixed-link"); in mtk_eth_ofdata_to_platdata()
1094 if (ofnode_valid(subnode)) { in mtk_eth_ofdata_to_platdata()
1096 priv->speed = ofnode_read_u32_default(subnode, "speed", 0); in mtk_eth_ofdata_to_platdata()
1097 priv->duplex = ofnode_read_bool(subnode, "full-duplex"); in mtk_eth_ofdata_to_platdata()
1133 subnode = ofnode_find_subnode(dev_ofnode(dev), "phy-handle"); in mtk_eth_ofdata_to_platdata()
1134 if (!ofnode_valid(subnode)) { in mtk_eth_ofdata_to_platdata()
1139 priv->phy_addr = ofnode_read_s32_default(subnode, "reg", -1); in mtk_eth_ofdata_to_platdata()

123