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 <jurenatomas@gmail.com>
This commit is contained in:
Tomáš Juřena 2024-10-23 15:22:43 +02:00 committed by Mahesh Mahadevan
parent 145d04101d
commit 0911003c11
2 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,10 @@ config NET_L2_ETHERNET
config ETH_STM32_HAL_MII
default y
# STM32H745I-DISCO have PHY connected to address 1
config ETH_STM32_HAL_PHY_ADDRESS
default 1
endif # NETWORKING
config MEMC

View File

@ -151,9 +151,9 @@
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";
ethernet-phy@0 {
ethernet-phy@1 {
compatible = "ethernet-phy";
reg = <0x00>;
reg = <0x01>;
status = "okay";
};
};