Skip to content

Commit 5e6b13a

Browse files
thenguyenyfkartben
authored andcommitted
boards: renesas: add support for USB device on Renesas RA boards
Add support for UDC on highspeed port on these boards: - ek_ra8m1 - ek_ra8d1 - ek_ra6m5 - ek_ra6m3 Signed-off-by: The Nguyen <[email protected]>
1 parent be28d39 commit 5e6b13a

File tree

12 files changed

+92
-0
lines changed

12 files changed

+92
-0
lines changed

boards/renesas/ek_ra6m3/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
102102
+-----------+------------+----------------------+
103103
| COUNTER | on-chip | counter |
104104
+-----------+------------+----------------------+
105+
| USBHS | on-chip | udc |
106+
+-----------+------------+----------------------+
105107

106108
Other hardware features are currently not supported by the port.
107109

boards/renesas/ek_ra6m3/ek_ra6m3-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,11 @@
3030
<RA_PSEL(RA_PSEL_SPI, 4, 14)>;
3131
};
3232
};
33+
34+
usbhs_default: usbhs_default {
35+
group1 {
36+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* VBUS */
37+
drive-strength = "high";
38+
};
39+
};
3340
};

boards/renesas/ek_ra6m3/ek_ra6m3.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,17 @@
9999
&trng {
100100
status ="okay";
101101
};
102+
103+
&usbhs {
104+
pinctrl-0 = <&usbhs_default>;
105+
pinctrl-names = "default";
106+
maximum-speed = "high-speed";
107+
status = "okay";
108+
zephyr_udc0: udc {
109+
status = "okay";
110+
};
111+
};
112+
113+
&usbhs_phy {
114+
phys-clock-src = "xtal";
115+
};

boards/renesas/ek_ra6m5/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M5 board:
105105
+-----------+------------+----------------------+
106106
| COUNTER | on-chip | counter |
107107
+-----------+------------+----------------------+
108+
| USBHS | on-chip | udc |
109+
+-----------+------------+----------------------+
108110

109111
Other hardware features are currently not supported by the port.
110112

boards/renesas/ek_ra6m5/ek_ra6m5-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,11 @@
3030
<RA_PSEL(RA_PSEL_SPI, 2, 5)>;
3131
};
3232
};
33+
34+
usbhs_default: usbhs_default {
35+
group1 {
36+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* USBHS-VBUS */
37+
drive-strength = "high";
38+
};
39+
};
3340
};

boards/renesas/ek_ra6m5/ek_ra6m5.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,17 @@
9090
mul = <25 0>;
9191
status = "okay";
9292
};
93+
94+
&usbhs {
95+
pinctrl-0 = <&usbhs_default>;
96+
pinctrl-names = "default";
97+
maximum-speed = "high-speed";
98+
status = "okay";
99+
zephyr_udc0: udc {
100+
status = "okay";
101+
};
102+
};
103+
104+
&usbhs_phy {
105+
phys-clock-src = "xtal";
106+
};

boards/renesas/ek_ra8d1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board:
112112
+--------------+------------+------------------+
113113
| I2C | on-chip | i2c |
114114
+--------------+------------+------------------+
115+
| USBHS | on-chip | udc |
116+
+--------------+------------+------------------+
115117
| ETHERNET | on-chip | ethernet |
116118
+--------------+------------+------------------+
117119

boards/renesas/ek_ra8d1/ek_ra8d1-pinctrl.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,11 @@
7070
drive-strength = "high";
7171
};
7272
};
73+
74+
usbhs_default: usbhs_default {
75+
group1 {
76+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* USBHS-VBUS */
77+
drive-strength = "high";
78+
};
79+
};
7380
};

boards/renesas/ek_ra8d1/ek_ra8d1.dts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,17 @@
178178
status = "okay";
179179
};
180180
};
181+
182+
&usbhs {
183+
pinctrl-0 = <&usbhs_default>;
184+
pinctrl-names = "default";
185+
maximum-speed = "high-speed";
186+
status = "okay";
187+
zephyr_udc0: udc {
188+
status = "okay";
189+
};
190+
};
191+
192+
&usbhs_phy {
193+
phys-clock-src = "xtal";
194+
};

boards/renesas/ek_ra8m1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ The below features are currently supported on Zephyr OS for EK-RA8M1 board:
112112
+-----------+------------+----------------------+
113113
| CAN | on-chip | canfd |
114114
+-----------+------------+----------------------+
115+
| USBHS | on-chip | udc |
116+
+-----------+------------+----------------------+
115117
| ETHERNET | on-chip | ethernet |
116118
+-----------+------------+----------------------+
117119

0 commit comments

Comments
 (0)