]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: st: enable ethernet1 controller on stm32mp235f-dk
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Thu, 4 Sep 2025 07:40:59 +0000 (09:40 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Mon, 15 Sep 2025 15:51:31 +0000 (17:51 +0200)
ethernet1 controller is connected to the RTL8211F-CG Realtek PHY in
RGMII mode. Enable this peripheral on the stm32mp235f-dk board.

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Link: https://lore.kernel.org/r/20250904-mp2_ethernet-v2-4-05a060157fb7@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm64/boot/dts/st/stm32mp235f-dk.dts

index 04d1b434c433e5f76d120f4bd254c15a2de3fb94..29ccf8dab35e85fac15ae64f46c65c296b0fb22a 100644 (file)
@@ -19,6 +19,7 @@
        compatible = "st,stm32mp235f-dk", "st,stm32mp235";
 
        aliases {
+               ethernet0 = &ethernet1;
                serial0 = &usart2;
        };
 
        status = "okay";
 };
 
+&ethernet1 {
+       pinctrl-0 = <&eth1_rgmii_pins_b>;
+       pinctrl-1 = <&eth1_rgmii_sleep_pins_b>;
+       pinctrl-names = "default", "sleep";
+       phy-handle = <&phy1_eth1>;
+       phy-mode = "rgmii-id";
+       status = "okay";
+
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               compatible = "snps,dwmac-mdio";
+               phy1_eth1: ethernet-phy@1 {
+                       compatible = "ethernet-phy-id001c.c916";
+                       reg = <1>;
+                       reset-gpios =  <&gpioa 2 GPIO_ACTIVE_LOW>;
+                       reset-assert-us = <10000>;
+                       reset-deassert-us = <80000>;
+               };
+       };
+};
+
 &scmi_regu {
        scmi_vddio1: regulator@0 {
                regulator-min-microvolt = <1800000>;