Skip to content

Commit ab29ee5

Browse files
committed
boards: st: add mdio and phy nodes
Add mdio and phy nodes for h5/h7 families. Signed-off-by: Angelo Dureghello <[email protected]>
1 parent a4983fe commit ab29ee5

File tree

7 files changed

+89
-19
lines changed

7 files changed

+89
-19
lines changed

boards/st/nucleo_h563zi/nucleo_h563zi.dts

+13-3
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,24 @@
4040

4141
&mac {
4242
status = "okay";
43-
pinctrl-0 = <&eth_mdc_pc1
44-
&eth_rxd0_pc4
43+
pinctrl-0 = <&eth_rxd0_pc4
4544
&eth_rxd1_pc5
4645
&eth_ref_clk_pa1
47-
&eth_mdio_pa2
4846
&eth_crs_dv_pa7
4947
&eth_tx_en_pg11
5048
&eth_txd0_pg13
5149
&eth_txd1_pb15>;
5250
pinctrl-names = "default";
5351
};
52+
53+
&mdio {
54+
status = "okay";
55+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
56+
pinctrl-names = "default";
57+
58+
ethernet-phy@0 {
59+
compatible = "ethernet-phy";
60+
reg = <0x00>;
61+
status = "okay";
62+
};
63+
};

boards/st/nucleo_h723zg/nucleo_h723zg.dts

+12-2
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@
160160
&mac {
161161
status = "okay";
162162
pinctrl-0 = <&eth_ref_clk_pa1
163-
&eth_mdio_pa2
164163
&eth_crs_dv_pa7
165-
&eth_mdc_pc1
166164
&eth_rxd0_pc4
167165
&eth_rxd1_pc5
168166
&eth_tx_en_pg11
@@ -171,6 +169,18 @@
171169
pinctrl-names = "default";
172170
};
173171

172+
&mdio {
173+
status = "okay";
174+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
175+
pinctrl-names = "default";
176+
177+
phy: ethernet-phy@0 {
178+
compatible = "ethernet-phy";
179+
reg = <0>;
180+
status = "okay";
181+
};
182+
};
183+
174184
zephyr_udc0: &usbotg_hs {
175185
pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
176186
pinctrl-names = "default";

boards/st/nucleo_h743zi/nucleo_h743zi.dts

+13-3
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,28 @@ zephyr_udc0: &usbotg_fs {
187187
*/
188188
&mac {
189189
status = "okay";
190-
pinctrl-0 = <&eth_mdc_pc1
191-
&eth_rxd0_pc4
190+
pinctrl-0 = <&eth_rxd0_pc4
192191
&eth_rxd1_pc5
193192
&eth_ref_clk_pa1
194-
&eth_mdio_pa2
195193
&eth_crs_dv_pa7
196194
&eth_tx_en_pg11
197195
&eth_txd0_pg13
198196
&eth_txd1_pb13>;
199197
pinctrl-names = "default";
200198
};
201199

200+
&mdio {
201+
status = "okay";
202+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
203+
pinctrl-names = "default";
204+
205+
ethernet-phy@0 {
206+
compatible = "ethernet-phy";
207+
reg = <0x00>;
208+
status = "okay";
209+
};
210+
};
211+
202212
&spi1 {
203213
status = "okay";
204214
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;

boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts

+12-2
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,7 @@
107107
&mac {
108108
status = "okay";
109109
pinctrl-0 = <&eth_ref_clk_pa1
110-
&eth_mdio_pa2
111110
&eth_crs_dv_pa7
112-
&eth_mdc_pc1
113111
&eth_rxd0_pc4
114112
&eth_rxd1_pc5
115113
&eth_tx_en_pg11
@@ -118,6 +116,18 @@
118116
pinctrl-names = "default";
119117
};
120118

119+
&mdio {
120+
status = "okay";
121+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
122+
pinctrl-names = "default";
123+
124+
ethernet-phy@0 {
125+
compatible = "ethernet-phy";
126+
reg = <0x00>;
127+
status = "okay";
128+
};
129+
};
130+
121131
&rng {
122132
status = "okay";
123133
};

boards/st/nucleo_h753zi/nucleo_h753zi.dts

+13-3
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,28 @@ zephyr_udc0: &usbotg_fs {
164164
*/
165165
&mac {
166166
status = "okay";
167-
pinctrl-0 = <&eth_mdc_pc1
168-
&eth_rxd0_pc4
167+
pinctrl-0 = <&eth_rxd0_pc4
169168
&eth_rxd1_pc5
170169
&eth_ref_clk_pa1
171-
&eth_mdio_pa2
172170
&eth_crs_dv_pa7
173171
&eth_tx_en_pg11
174172
&eth_txd0_pg13
175173
&eth_txd1_pb13>;
176174
pinctrl-names = "default";
177175
};
178176

177+
&mdio {
178+
status = "okay";
179+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
180+
pinctrl-names = "default";
181+
182+
ethernet-phy@0 {
183+
compatible = "ethernet-phy";
184+
reg = <0x00>;
185+
status = "okay";
186+
};
187+
};
188+
179189
&spi1 {
180190
status = "okay";
181191
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;

boards/st/stm32h573i_dk/stm32h573i_dk.dts

+13-3
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,28 @@
149149

150150
&mac {
151151
status = "okay";
152-
pinctrl-0 = <&eth_mdc_pc1
153-
&eth_rxd0_pc4
152+
pinctrl-0 = <&eth_rxd0_pc4
154153
&eth_rxd1_pc5
155154
&eth_ref_clk_pa1
156-
&eth_mdio_pa2
157155
&eth_crs_dv_pa7
158156
&eth_tx_en_pg11
159157
&eth_txd0_pg13
160158
&eth_txd1_pg12>;
161159
pinctrl-names = "default";
162160
};
163161

162+
&mdio {
163+
status = "okay";
164+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
165+
pinctrl-names = "default";
166+
167+
ethernet-phy@0 {
168+
compatible = "ethernet-phy";
169+
reg = <0x00>;
170+
status = "okay";
171+
};
172+
};
173+
164174
&flash0 {
165175
partitions {
166176
compatible = "fixed-partitions";

boards/st/stm32h735g_disco/stm32h735g_disco.dts

+13-3
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,9 @@
130130
};
131131

132132
&mac {
133-
pinctrl-0 = <&eth_mdc_pc1
134-
&eth_rxd0_pc4
133+
pinctrl-0 = <&eth_rxd0_pc4
135134
&eth_rxd1_pc5
136135
&eth_ref_clk_pa1
137-
&eth_mdio_pa2
138136
&eth_crs_dv_pa7
139137
&eth_tx_en_pb11
140138
&eth_txd0_pb12
@@ -143,6 +141,18 @@
143141
status = "okay";
144142
};
145143

144+
&mdio {
145+
status = "okay";
146+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
147+
pinctrl-names = "default";
148+
149+
ethernet-phy@0 {
150+
compatible = "ethernet-phy";
151+
reg = <0x00>;
152+
status = "okay";
153+
};
154+
};
155+
146156
&sdmmc1 {
147157
pinctrl-0 = <&sdmmc1_d0_pc8
148158
&sdmmc1_d1_pc9

0 commit comments

Comments
 (0)