Skip to content

Commit 50b32ee

Browse files
Ta Minh Nhatkartben
authored andcommitted
boards: renesas: Add ethernet support for ek_ra6m3
Add ethernet support for ek_ra6m3. Signed-off-by: Ta Minh Nhat <nhat-minh.ta.yn@bp.renesas.com>
1 parent 1adce57 commit 50b32ee

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025 Renesas Electronics Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if BOARD_EK_RA6M3
5+
6+
if NETWORKING
7+
8+
config NET_L2_ETHERNET
9+
default y
10+
11+
endif # NETWORKING
12+
13+
endif # BOARD_EK_RA6M3

boards/renesas/ek_ra6m3/ek_ra6m3-pinctrl.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,20 @@
6969
drive-strength = "high";
7070
};
7171
};
72+
73+
ether_default: ether_default {
74+
group1 {
75+
psels = <RA_PSEL(RA_PSEL_ETH_RMII, 4, 1)>, /* ET0_MDC */
76+
<RA_PSEL(RA_PSEL_ETH_RMII, 4, 2)>, /* ET0_MDIO */
77+
<RA_PSEL(RA_PSEL_ETH_RMII, 4, 5)>, /* RMII0_TXD_EN_B */
78+
<RA_PSEL(RA_PSEL_ETH_RMII, 4, 6)>, /* RMII0_TXD1_BR */
79+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 0)>, /* RMII0_TXD0_B */
80+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 1)>, /* REF50CK0_B */
81+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 2)>, /* RMII0_RXD0_B */
82+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 3)>, /* RMII0_RXD1_B */
83+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 4)>, /* RMII0_RX_ER_B */
84+
<RA_PSEL(RA_PSEL_ETH_RMII, 7, 5)>; /* RMII0_CRS_DV_B */
85+
drive-strength = "high";
86+
};
87+
};
7288
};

boards/renesas/ek_ra6m3/ek_ra6m3.dts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,21 @@
196196
&wdt {
197197
status = "okay";
198198
};
199+
200+
&eth {
201+
local-mac-address = [00 11 22 33 44 57];
202+
status = "okay";
203+
phy-handle = <&phy>;
204+
};
205+
206+
&mdio {
207+
pinctrl-0 = <&ether_default>;
208+
pinctrl-names = "default";
209+
status = "okay";
210+
211+
phy: ethernet-phy@5 {
212+
compatible = "ethernet-phy";
213+
reg = <0>;
214+
status = "okay";
215+
};
216+
};

0 commit comments

Comments
 (0)