Skip to content

Commit e9442f1

Browse files
Christophe RoullierAlexandre Torgue
authored andcommitted
ARM: dts: stm32: add ethernet1 for STM32MP135F-DK board
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 <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent fbbfbdf commit e9442f1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/arm/boot/dts/st/stm32mp135f-dk.dts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
compatible = "st,stm32mp135f-dk", "st,stm32mp135";
2020

2121
aliases {
22+
ethernet0 = &ethernet1;
2223
serial0 = &uart4;
2324
serial1 = &usart1;
2425
serial2 = &uart8;
@@ -172,6 +173,28 @@
172173
};
173174
};
174175

176+
&ethernet1 {
177+
status = "okay";
178+
pinctrl-0 = <&eth1_rmii_pins_a>;
179+
pinctrl-1 = <&eth1_rmii_sleep_pins_a>;
180+
pinctrl-names = "default", "sleep";
181+
phy-mode = "rmii";
182+
phy-handle = <&phy0_eth1>;
183+
184+
mdio {
185+
#address-cells = <1>;
186+
#size-cells = <0>;
187+
compatible = "snps,dwmac-mdio";
188+
189+
phy0_eth1: ethernet-phy@0 {
190+
compatible = "ethernet-phy-id0007.c131";
191+
reg = <0>;
192+
reset-gpios = <&mcp23017 9 GPIO_ACTIVE_LOW>;
193+
wakeup-source;
194+
};
195+
};
196+
};
197+
175198
&i2c1 {
176199
pinctrl-names = "default", "sleep";
177200
pinctrl-0 = <&i2c1_pins_a>;

0 commit comments

Comments
 (0)