Skip to content

Commit 0254e4e

Browse files
committed
portenta_h7: enable ethernet driver
On older Portenta H7, 1V2 power rail must be enabled to get a functional ethernet phy. Signed-off-by: Martino Facchin <[email protected]>
1 parent b457a0b commit 0254e4e

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

boards/arduino/portenta_h7/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
if BOARD_ARDUINO_PORTENTA_H7
55

6+
config REGULATOR
7+
default y if NETWORKING
8+
69
if NETWORKING
710

811
config NET_L2_ETHERNET

boards/arduino/portenta_h7/arduino_portenta_h7-common.dtsi

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,19 +209,35 @@
209209
};
210210
};
211211

212+
&rng {
213+
status = "okay";
214+
};
215+
212216
&mac {
213217
pinctrl-0 = < &eth_ref_clk_pa1
214-
&eth_mdio_pa2
215218
&eth_crs_dv_pa7
216-
&eth_mdc_pc1
217219
&eth_rxd0_pc4
218220
&eth_rxd1_pc5
219221
&eth_tx_en_pg11
220222
&eth_txd1_pg12
221223
&eth_txd0_pg13 >;
222224
pinctrl-names = "default";
225+
status = "okay";
226+
};
227+
228+
&mdio {
229+
status = "okay";
230+
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
231+
pinctrl-names = "default";
232+
233+
ethernet-phy@0 {
234+
compatible = "ethernet-phy";
235+
reg = <0x00>;
236+
status = "okay";
237+
};
223238
};
224239

240+
225241
zephyr_udc0: &usbotg_hs {
226242
pinctrl-0 = < &usb_otg_hs_ulpi_d0_pa3
227243
&usb_otg_hs_ulpi_ck_pa5

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ ram: 512
1010
flash: 1024
1111
supported:
1212
- gpio
13+
- netif:eth
14+
- i2c
15+
- spi
16+
- qspi
17+
- memc
18+
- usb_cdc
19+
- usb_device
1320
vendor: arduino

0 commit comments

Comments
 (0)