Skip to content

Commit e0fc47d

Browse files
Christophe RoullierAlexandre Torgue
authored andcommitted
arm64: dts: st: enable Ethernet2 on stm32mp257f-ev1 board
ETHERNET2 instance is connected to Realtek PHY in RGMII mode Ethernet is SNSP IP with GMAC5 version. Signed-off-by: Christophe Roullier <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent b4c354b commit e0fc47d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

arch/arm64/boot/dts/st/stm32mp257f-ev1.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
compatible = "st,stm32mp257f-ev1", "st,stm32mp257";
1818

1919
aliases {
20+
ethernet0 = &ethernet2;
2021
serial0 = &usart2;
2122
serial1 = &usart6;
2223
};
@@ -56,6 +57,29 @@
5657
status = "okay";
5758
};
5859

60+
&ethernet2 {
61+
pinctrl-names = "default", "sleep";
62+
pinctrl-0 = <&eth2_rgmii_pins_a>;
63+
pinctrl-1 = <&eth2_rgmii_sleep_pins_a>;
64+
max-speed = <1000>;
65+
phy-handle = <&phy0_eth2>;
66+
phy-mode = "rgmii-id";
67+
status = "okay";
68+
69+
mdio {
70+
#address-cells = <1>;
71+
#size-cells = <0>;
72+
compatible = "snps,dwmac-mdio";
73+
phy0_eth2: ethernet-phy@1 {
74+
compatible = "ethernet-phy-id001c.c916";
75+
reg = <1>;
76+
reset-assert-us = <10000>;
77+
reset-deassert-us = <300>;
78+
reset-gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
79+
};
80+
};
81+
};
82+
5983
&i2c2 {
6084
pinctrl-names = "default", "sleep";
6185
pinctrl-0 = <&i2c2_pins_a>;

0 commit comments

Comments
 (0)