Skip to content

Commit 0911003

Browse files
jurenatmmahadevan108
authored andcommitted
boards: st: stm32h745i_disco: m7: Fix PHY address
According to the datasheet, the PHY address is 0x1. When changed to this value the PHY id is correctly read. Before: ``` [00:00:00.602,000] <err> phy_mii: No PHY found at address 0 ``` After: ``` [00:00:00.051,000] <inf> phy_mii: PHY (1) ID 7C111 ``` Signed-off-by: Tomáš Juřena <[email protected]>
1 parent 145d041 commit 0911003

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

boards/st/stm32h745i_disco/Kconfig.defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ config NET_L2_ETHERNET
1414
config ETH_STM32_HAL_MII
1515
default y
1616

17+
# STM32H745I-DISCO have PHY connected to address 1
18+
config ETH_STM32_HAL_PHY_ADDRESS
19+
default 1
20+
1721
endif # NETWORKING
1822

1923
config MEMC

boards/st/stm32h745i_disco/stm32h745i_disco_stm32h745xx_m7.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@
151151
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
152152
pinctrl-names = "default";
153153

154-
ethernet-phy@0 {
154+
ethernet-phy@1 {
155155
compatible = "ethernet-phy";
156-
reg = <0x00>;
156+
reg = <0x01>;
157157
status = "okay";
158158
};
159159
};

0 commit comments

Comments
 (0)