Home
last modified time | relevance | path

Searched refs:phy_node (Results 1 – 15 of 15) sorted by relevance

/u-boot/test/dm/
A Dof_extra.c42 ofnode eth_node, phy_node, node; in dm_test_ofnode_phy_is_fixed_link() local
45 ut_assert(ofnode_phy_is_fixed_link(eth_node, &phy_node)); in dm_test_ofnode_phy_is_fixed_link()
47 ut_asserteq_mem(&phy_node, &node, sizeof(ofnode)); in dm_test_ofnode_phy_is_fixed_link()
50 ut_assert(ofnode_phy_is_fixed_link(eth_node, &phy_node)); in dm_test_ofnode_phy_is_fixed_link()
52 ut_asserteq_mem(&phy_node, &node, sizeof(ofnode)); in dm_test_ofnode_phy_is_fixed_link()
A Dofnode.c702 ofnode eth_node, phy_node; in dm_test_ofnode_get_phy() local
712 phy_node = ofnode_get_phy_node(eth_node); in dm_test_ofnode_get_phy()
713 ut_assert(ofnode_valid(phy_node)); in dm_test_ofnode_get_phy()
715 reg = ofnode_read_u32_default(phy_node, "reg", -1U); in dm_test_ofnode_get_phy()
/u-boot/arch/arm/cpu/armv7/ls102xa/
A Dfdt.c33 int phy_node; in ft_fixup_enet_phy_connect_type() local
60 phy_node = fdt_path_offset(fdt, phy_path); in ft_fixup_enet_phy_connect_type()
61 if (phy_node < 0) in ft_fixup_enet_phy_connect_type()
64 ph = fdt_create_phandle(fdt, phy_node); in ft_fixup_enet_phy_connect_type()
/u-boot/drivers/net/
A Deth-phy-uclass.c28 ofnode mdio_node, phy_node; in eth_phy_binds_nodes() local
45 ofnode_for_each_subnode(phy_node, mdio_node) { in eth_phy_binds_nodes()
46 node_name = ofnode_get_name(phy_node); in eth_phy_binds_nodes()
52 node_name, phy_node, NULL); in eth_phy_binds_nodes()
A Dhigmacv300.c564 ofnode phy_node; in higmac_of_to_plat() local
573 phy_node = dev_read_subnode(dev, "phy"); in higmac_of_to_plat()
574 if (!ofnode_valid(phy_node)) { in higmac_of_to_plat()
578 priv->phyaddr = ofnode_read_u32_default(phy_node, "reg", 0); in higmac_of_to_plat()
A Dbcmgenet.c690 struct ofnode_phandle_args phy_node; in bcmgenet_eth_of_to_plat() local
701 &phy_node); in bcmgenet_eth_of_to_plat()
703 ofnode_read_s32(phy_node.node, "reg", &priv->phyaddr); in bcmgenet_eth_of_to_plat()
704 ofnode_read_s32(phy_node.node, "max-speed", &pdata->max_speed); in bcmgenet_eth_of_to_plat()
A Dmvpp2.c4739 int phy_node; in phy_info_parse() local
4745 phy_node = fdtdec_lookup_phandle(gd->fdt_blob, port_node, "phy"); in phy_info_parse()
4748 if (phy_node > 0) { in phy_info_parse()
4755 phyaddr = fdtdec_get_int(gd->fdt_blob, phy_node, in phy_info_parse()
4762 parent = fdt_parent_offset(gd->fdt_blob, phy_node); in phy_info_parse()
/u-boot/drivers/usb/host/
A Dehci-mxs.c139 ofnode phy_node, clk_node; in ehci_usb_ofdata_to_platdata() local
163 phy_node = ofnode_get_by_phandle(phandle); in ehci_usb_ofdata_to_platdata()
164 if (!ofnode_valid(phy_node)) in ehci_usb_ofdata_to_platdata()
167 ret = ofnode_read_u32(phy_node, "reg", &phy_reg); in ehci_usb_ofdata_to_platdata()
174 ret = ofnode_read_u32_index(phy_node, "clocks", 0, &phandle); in ehci_usb_ofdata_to_platdata()
178 ret = ofnode_read_u32_index(phy_node, "clocks", 1, &clk_id); in ehci_usb_ofdata_to_platdata()
/u-boot/drivers/core/
A Dof_extra.c136 bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node) in ofnode_phy_is_fixed_link() argument
153 if (phy_node) in ofnode_phy_is_fixed_link()
154 *phy_node = node; in ofnode_phy_is_fixed_link()
/u-boot/board/dhelectronics/dh_imx8mp/
A Dimx8mp_dhcom_pdk2.c233 int mac_node, mdio_node, iomuxc_node, lan_node, phy_node, subnode; in dh_dt_patch_som_fec() local
255 phy_node = fdtdec_lookup_phandle(blob, mac_node, "phy-handle"); in dh_dt_patch_som_fec()
256 if (phy_node > 0) { in dh_dt_patch_som_fec()
257 fdt_setprop_string(blob, phy_node, "status", "disabled"); in dh_dt_patch_som_fec()
/u-boot/arch/arm/mach-rockchip/
A Dboard.c256 ofnode phy_node; in board_usb_init() local
268 phy_node = ofnode_get_parent(node); in board_usb_init()
274 otg_data.phy_of_node = phy_node; in board_usb_init()
/u-boot/include/dm/
A Dof_extra.h115 bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node);
/u-boot/board/CZ.NIC/turris_mox/
A Dturris_mox.c426 ofnode phy_node; in mox_phy_leds_start_blinking() local
428 phy_node = ofnode_get_phy_node(ofnode_path("ethernet0")); in mox_phy_leds_start_blinking()
429 if (!ofnode_valid(phy_node)) in mox_phy_leds_start_blinking()
432 phydev = dm_phy_find_by_ofnode(phy_node); in mox_phy_leds_start_blinking()
/u-boot/drivers/mmc/
A Drockchip_sdhci.c222 ofnode phy_node; in rk3399_emmc_get_phy() local
227 phy_node = ofnode_get_by_phandle(phandle); in rk3399_emmc_get_phy()
228 if (!ofnode_valid(phy_node)) { in rk3399_emmc_get_phy()
238 grf_phy_offset = ofnode_read_u32_default(phy_node, "reg", 0); in rk3399_emmc_get_phy()
/u-boot/drivers/net/ti/
A Dam65-cpsw-nuss.c129 ofnode phy_node; member
607 if (ofnode_valid(priv->phy_node)) in am65_cpsw_phy_init()
608 phydev->node = priv->phy_node; in am65_cpsw_phy_init()
648 priv->phy_node = out_args.node; in am65_cpsw_ofdata_parse_phy()
650 ret = ofnode_read_u32(priv->phy_node, "reg", &priv->phy_addr); in am65_cpsw_ofdata_parse_phy()

Completed in 53 milliseconds