Lines Matching refs:fdt
22 static int fdt_get_mdio_bus(const void *fdt, int phy_offset) in fdt_get_mdio_bus() argument
31 node = fdt_parent_offset(fdt, phy_offset); in fdt_get_mdio_bus()
35 reg = fdt_getprop(fdt, node, "reg", NULL); in fdt_get_mdio_bus()
41 static int fdt_get_phy_addr(const void *fdt, int phy_offset) in fdt_get_phy_addr() argument
48 reg = fdt_getprop(fdt, phy_offset, "reg", NULL); in fdt_get_phy_addr()
55 const void *fdt = gd->fdt_blob; in fdt_parse_phy_info() local
64 bdknode = fdt_path_offset(fdt, "/cavium,bdk"); in fdt_parse_phy_info()
70 offset = fdt_node_offset_by_compatible(fdt, -1, "pci-bridge"); in fdt_parse_phy_info()
82 node = fdt_subnode_offset(fdt, offset, bgxname); in fdt_parse_phy_info()
86 node = fdt_subnode_offset(fdt, offset, bgxname); in fdt_parse_phy_info()
98 fdt_for_each_subnode(subnode, fdt, node) { in fdt_parse_phy_info()
100 val = fdt_getprop(fdt, subnode, "reg", &len); in fdt_parse_phy_info()
106 val = fdt_getprop(fdt, subnode, "phy-handle", &len); in fdt_parse_phy_info()
113 (fdt, phandle); in fdt_parse_phy_info()
115 (fdt, phy_offset); in fdt_parse_phy_info()
117 (fdt, phy_offset); in fdt_parse_phy_info()
124 val = fdt_getprop(fdt, subnode, in fdt_parse_phy_info()
140 str = fdt_getprop(fdt, bdknode, in fdt_parse_phy_info()
158 const void *fdt = gd->fdt_blob; in fdt_get_bdk_node() local
160 if (!fdt) { in fdt_get_bdk_node()
165 ret = fdt_check_header(fdt); in fdt_get_bdk_node()
171 node = fdt_path_offset(fdt, "/cavium,bdk"); in fdt_get_bdk_node()
182 const void *fdt = gd->fdt_blob; in fdt_get_board_serial() local
190 str = fdt_getprop(fdt, node, "BOARD-SERIAL", &len); in fdt_get_board_serial()
198 const void *fdt = gd->fdt_blob; in fdt_get_board_revision() local
206 str = fdt_getprop(fdt, node, "BOARD-REVISION", &len); in fdt_get_board_revision()
214 const void *fdt = gd->fdt_blob; in fdt_get_board_model() local
222 str = fdt_getprop(fdt, node, "BOARD-MODEL", &len); in fdt_get_board_model()
230 const void *fdt = gd->fdt_blob; in fdt_board_get_ethaddr() local
236 offset = fdt_node_offset_by_compatible(fdt, -1, "pci-bridge"); in fdt_board_get_ethaddr()
249 node = fdt_subnode_offset(fdt, offset, bgxname); in fdt_board_get_ethaddr()
251 fdt_for_each_subnode(subnode, fdt, node) { in fdt_board_get_ethaddr()
255 mac = fdt_getprop(fdt, subnode, "local-mac-address", &len); in fdt_board_get_ethaddr()