]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: st: enable Ethernet2 on stm32mp257f-ev1 board
authorChristophe Roullier <christophe.roullier@foss.st.com>
Wed, 19 Jun 2024 12:58:15 +0000 (14:58 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 5 Jul 2024 12:45:25 +0000 (14:45 +0200)
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>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

index 18c6266532b29e1511b6ee5c00fffc546f31d93c..68c8cb25d5a1a70406eb0d0478751b8e34b0d869 100644 (file)
@@ -17,6 +17,7 @@
        compatible = "st,stm32mp257f-ev1", "st,stm32mp257";
 
        aliases {
+               ethernet0 = &ethernet2;
                serial0 = &usart2;
                serial1 = &usart6;
        };
        status = "okay";
 };
 
+&ethernet2 {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&eth2_rgmii_pins_a>;
+       pinctrl-1 = <&eth2_rgmii_sleep_pins_a>;
+       max-speed = <1000>;
+       phy-handle = <&phy0_eth2>;
+       phy-mode = "rgmii-id";
+       status = "okay";
+
+       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>;