Skip to content

Commit 8f8fb14

Browse files
facchinmkartben
authored andcommitted
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 8c9af42 commit 8f8fb14

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

boards/arduino/portenta_h7/Kconfig.defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ if BOARD_ARDUINO_PORTENTA_H7
55

66
if NETWORKING
77

8+
config REGULATOR
9+
default y
10+
811
config NET_L2_ETHERNET
912
default y
1013

boards/arduino/portenta_h7/arduino_portenta_h7-common.dtsi

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,32 @@
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

225240
zephyr_udc0: &usbotg_hs {

boards/arduino/portenta_h7/arduino_portenta_h7_stm32h747xx_m7.yaml

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

0 commit comments

Comments
 (0)