Message ID | 20240618093527.318239-4-christophe.roullier@foss.st.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Series DTs to deliver Ethernet for STM32MP25 | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
On 6/18/24 11:35 AM, Christophe Roullier wrote: > ETHERNET2 instance is connected to Realtek PHY in RGMII mode > Ethernet is SNSP IP with GMAC5 version. > > Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com> > --- > arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts > index 27b7360e5dba..6d8bf1342e23 100644 > --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts > +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts > @@ -17,6 +17,7 @@ / { > compatible = "st,stm32mp257f-ev1", "st,stm32mp257"; > > aliases { > + ethernet0 = ðernet2; > serial0 = &usart2; > }; > > @@ -55,6 +56,29 @@ &arm_wdt { > status = "okay"; > }; > > +ðernet2 { > + status = "okay"; > + pinctrl-0 = <ð2_rgmii_pins_a>; > + pinctrl-1 = <ð2_rgmii_sleep_pins_a>; > + pinctrl-names = "default", "sleep"; > + phy-mode = "rgmii-id"; > + max-speed = <1000>; Keep the list sorted.
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts index 27b7360e5dba..6d8bf1342e23 100644 --- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts +++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts @@ -17,6 +17,7 @@ / { compatible = "st,stm32mp257f-ev1", "st,stm32mp257"; aliases { + ethernet0 = ðernet2; serial0 = &usart2; }; @@ -55,6 +56,29 @@ &arm_wdt { status = "okay"; }; +ðernet2 { + status = "okay"; + pinctrl-0 = <ð2_rgmii_pins_a>; + pinctrl-1 = <ð2_rgmii_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + phy-mode = "rgmii-id"; + max-speed = <1000>; + phy-handle = <&phy0_eth2>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy0_eth2: ethernet-phy@1 { + compatible = "ethernet-phy-id001c.c916"; + reg = <1>; + reset-assert-us = <10000>; + reset-deassert-us = <300>; + reset-gpios = <&gpiog 6 GPIO_ACTIVE_LOW>; + }; + }; +}; + &i2c2 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c2_pins_a>;
ETHERNET2 instance is connected to Realtek PHY in RGMII mode Ethernet is SNSP IP with GMAC5 version. Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com> --- arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+)