Skip to content

Commit 7196a7f

Browse files
Minh Hoangthenguyenyf
authored andcommitted
boards: renesas: add support for Renesas RA USB host
Enable USB host support on Renesas RA boards Signed-off-by: Minh Hoang <[email protected]> Signed-off-by: The Nguyen <[email protected]>
1 parent 9ba0058 commit 7196a7f

File tree

9 files changed

+44
-20
lines changed

9 files changed

+44
-20
lines changed

boards/renesas/ek_ra6m3/ek_ra6m3-pinctrl.dtsi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333

3434
usbhs_default: usbhs_default {
3535
group1 {
36-
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* VBUS */
36+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>, /* VBUS */
37+
<RA_PSEL(RA_PSEL_USBHS, 11, 0)>; /* VBUSEN */
3738
drive-strength = "high";
3839
};
3940
};
@@ -64,8 +65,8 @@
6465

6566
usbfs_default: usbfs_default {
6667
group1 {
67-
/* USB_VBUS */
68-
psels = <RA_PSEL(RA_PSEL_USBFS, 11, 1)>;
68+
psels = <RA_PSEL(RA_PSEL_USBFS, 4, 7)>, /* VBUS */
69+
<RA_PSEL(RA_PSEL_USBFS, 5, 0)>; /* VBUSEN */
6970
drive-strength = "high";
7071
};
7172
};

boards/renesas/ek_ra6m3/ek_ra6m3.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@
199199
pinctrl-0 = <&usbfs_default>;
200200
pinctrl-names = "default";
201201
maximum-speed = "full-speed";
202+
status = "okay";
203+
204+
zephyr_uhc0: uhc {
205+
status = "okay";
206+
};
202207
};
203208

204209
&wdt {

boards/renesas/ek_ra6m5/ek_ra6m5-pinctrl.dtsi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
usbhs_default: usbhs_default {
4343
group1 {
44-
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* USBHS-VBUS */
44+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>, /* VBUS */
45+
<RA_PSEL(RA_PSEL_USBHS, 11, 0)>; /* VBUSEN */
4546
drive-strength = "high";
4647
};
4748
};
@@ -72,8 +73,8 @@
7273

7374
usbfs_default: usbfs_default {
7475
group1 {
75-
/* USB_VBUS */
76-
psels = <RA_PSEL(RA_PSEL_USBFS, 11, 1)>;
76+
psels = <RA_PSEL(RA_PSEL_USBFS, 4, 7)>, /* VBUS */
77+
<RA_PSEL(RA_PSEL_USBFS, 5, 0)>; /* VBUSEN */
7778
drive-strength = "high";
7879
};
7980
};

boards/renesas/ek_ra6m5/ek_ra6m5.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@
286286
pinctrl-0 = <&usbfs_default>;
287287
pinctrl-names = "default";
288288
maximum-speed = "full-speed";
289+
status = "okay";
290+
291+
zephyr_uhc0: uhc {
292+
status = "okay";
293+
};
289294
};
290295

291296
mikrobus_serial: &uart7 {};

boards/renesas/ek_ra8d1/ek_ra8d1-pinctrl.dtsi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@
118118

119119
usbhs_default: usbhs_default {
120120
group1 {
121-
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* USBHS-VBUS */
121+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>, /* VBUS */
122+
<RA_PSEL(RA_PSEL_USBHS, 11, 0)>; /* VBUSEN */
122123
drive-strength = "high";
123124
};
124125
};
@@ -209,10 +210,10 @@
209210

210211
usbfs_default: usbfs_default {
211212
group1 {
212-
/* USBP USBN */
213-
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>,
214-
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>,
215-
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>;
213+
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>, /* USBN */
214+
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>, /* USBP */
215+
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>, /* VBUS */
216+
<RA_PSEL(RA_PSEL_USBFS, 5, 0)>; /* VBUSEN */
216217
drive-strength = "high";
217218
};
218219
};

boards/renesas/ek_ra8d1/ek_ra8d1.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,11 @@ dvp_20pin_interface: &ceu {};
471471
pinctrl-0 = <&usbfs_default>;
472472
pinctrl-names = "default";
473473
maximum-speed = "full-speed";
474+
status = "okay";
475+
476+
zephyr_uhc0: uhc {
477+
status = "okay";
478+
};
474479
};
475480

476481
&wdt {

boards/renesas/ek_ra8m1/ek_ra8m1-pinctrl.dtsi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147

148148
usbhs_default: usbhs_default {
149149
group1 {
150-
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>; /* VBUS */
150+
psels = <RA_PSEL(RA_PSEL_USBHS, 11, 1)>, /* VBUS */
151+
<RA_PSEL(RA_PSEL_USBHS, 4, 8)>; /* VBUSEN */
151152
drive-strength = "high";
152153
};
153154
};
@@ -172,10 +173,10 @@
172173

173174
usbfs_default: usbfs_default {
174175
group1 {
175-
/* USBP USBN */
176-
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>,
177-
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>,
178-
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>;
176+
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>, /* USBN */
177+
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>, /* USBP */
178+
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>, /* VBUS */
179+
<RA_PSEL(RA_PSEL_USBFS, 5, 0)>; /* VBUSEN */
179180
drive-strength = "high";
180181
};
181182
};

boards/renesas/ek_ra8m1/ek_ra8m1.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,11 @@ pmod_sd_shield: &sdhc0 {};
445445
pinctrl-0 = <&usbfs_default>;
446446
pinctrl-names = "default";
447447
maximum-speed = "full-speed";
448+
status = "okay";
449+
450+
zephyr_uhc0: uhc {
451+
status = "okay";
452+
};
448453
};
449454

450455
&wdt {

boards/renesas/mck_ra8t1/mck_ra8t1-pinctrl.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@
126126

127127
usbfs_default: usbfs_default {
128128
group1 {
129-
/* USBP USBN */
130-
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>,
131-
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>,
132-
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>;
129+
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>, /* USBN */
130+
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>, /* USBP */
131+
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>, /* VBUS */
132+
<RA_PSEL(RA_PSEL_USBFS, 4, 8)>; /* VBUSEN */
133133
drive-strength = "high";
134134
};
135135
};

0 commit comments

Comments
 (0)