]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ARM: dts: stm32: add ethernet1 for STM32MP135F-DK board
authorChristophe Roullier <christophe.roullier@foss.st.com>
Mon, 10 Jun 2024 08:03:09 +0000 (10:03 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 5 Jul 2024 12:45:24 +0000 (14:45 +0200)
Ethernet1: RMII with crystal
Ethernet2: RMII with no cristal, need "phy-supply" property to work,
today this property was managed by Ethernet glue, but should be present
and managed in PHY node. So I will push second Ethernet in next step.

PHYs used are SMSC (LAN8742A)

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/arm/boot/dts/st/stm32mp135f-dk.dts

index faccdda588e5b629b5320ad095cfcbd9d1c87cb4..1af335a39993b176e570e6fdd01ee8d4886a4e7f 100644 (file)
@@ -19,6 +19,7 @@
        compatible = "st,stm32mp135f-dk", "st,stm32mp135";
 
        aliases {
+               ethernet0 = &ethernet1;
                serial0 = &uart4;
                serial1 = &usart1;
                serial2 = &uart8;
        };
 };
 
+&ethernet1 {
+       status = "okay";
+       pinctrl-0 = <&eth1_rmii_pins_a>;
+       pinctrl-1 = <&eth1_rmii_sleep_pins_a>;
+       pinctrl-names = "default", "sleep";
+       phy-mode = "rmii";
+       phy-handle = <&phy0_eth1>;
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "snps,dwmac-mdio";
+
+               phy0_eth1: ethernet-phy@0 {
+                       compatible = "ethernet-phy-id0007.c131";
+                       reg = <0>;
+                       reset-gpios = <&mcp23017 9 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
+               };
+       };
+};
+
 &i2c1 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c1_pins_a>;