Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions boards/renesas/ek_ra8p1/ek_ra8p1-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,22 @@
};
};

usbhs_default: usbhs_default {
group1 {
psels = <RA_PSEL(RA_PSEL_USBHS, 4, 8)>; /* VBUS */
drive-strength = "high";
};
};

usbfs_default: usbfs_default {
group1 {
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>, /* USB_DM */
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>, /* USB_DP */
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>; /* VBUS */
drive-strength = "high";
};
};

sdram_default: sdram_default {
group1 {
psels = <RA_PSEL(RA_PSEL_BUS, 10, 3)>, /* SDRAM_A2 */
Expand Down
16 changes: 16 additions & 0 deletions boards/renesas/ek_ra8p1/ek_ra8p1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,22 @@
status = "okay";
};

&usbfs {
pinctrl-0 = <&usbfs_default>;
pinctrl-names = "default";
maximum-speed = "full-speed";
};

&usbhs {
pinctrl-0 = <&usbhs_default>;
pinctrl-names = "default";
maximum-speed = "high-speed";
};

&usbhs_phy {
phys-clock-src = "xtal";
};

&sdram {
pinctrl-0 = <&sdram_default>;
pinctrl-names = "default";
Expand Down
11 changes: 11 additions & 0 deletions boards/renesas/ek_ra8p1/ek_ra8p1_r7ka8p1kflcac_cm85.dts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@
burst-transfer = <256>;
};

&usbhs {
pinctrl-0 = <&usbhs_default>;
interrupts = <23 12>;
interrupt-names = "usbhs-ir";
status = "okay";

zephyr_udc0: udc {
status = "okay";
};
};

zephyr_lcdif: &lcdif {};

pmod_sd_shield: &sdhc0 {};
Expand Down
9 changes: 9 additions & 0 deletions boards/renesas/mck_ra8t2/mck_ra8t2-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
};
};

usbfs_default: usbfs_default {
group1 {
psels = <RA_PSEL(RA_PSEL_USBFS, 8, 15)>, /* USB_DM */
<RA_PSEL(RA_PSEL_USBFS, 8, 14)>, /* USB_DP */
<RA_PSEL(RA_PSEL_USBFS, 4, 7)>; /* VBUS */
drive-strength = "high";
};
};

sdhc0_default: sdhc0_default {
group1 {
psels = <RA_PSEL(RA_PSEL_SDHI, 13, 7)>, /* SDCD */
Expand Down
10 changes: 10 additions & 0 deletions boards/renesas/mck_ra8t2/mck_ra8t2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
};
};

&uclk {
status = "okay";
};

&flash {
flash0: flash@2000000 {
compatible = "soc-nv-flash";
Expand Down Expand Up @@ -118,3 +122,9 @@
&ioportb {
status = "okay";
};

&usbfs {
pinctrl-0 = <&usbfs_default>;
pinctrl-names = "default";
maximum-speed = "full-speed";
};
11 changes: 11 additions & 0 deletions boards/renesas/mck_ra8t2/mck_ra8t2_r7ka8t2lfecac_cm85.dts
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,14 @@
status = "okay";
};
};

&usbfs {
pinctrl-0 = <&usbfs_default>;
interrupts = <16 12>, <17 12>;
interrupt-names = "usbfs-i", "usbfs-r";
status = "okay";

zephyr_udc0: udc {
status = "okay";
};
};
3 changes: 3 additions & 0 deletions dts/arm/renesas/ra/ra8/r7ka8t2xf.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#include <arm/renesas/ra/ra8/ra8x2.dtsi>
#include <zephyr/dt-bindings/clock/ra_clock.h>

/delete-node/ &usbhs;
/delete-node/ &usbhs_phy;

/ {
clocks: clocks {
#address-cells = <1>;
Expand Down
38 changes: 38 additions & 0 deletions dts/arm/renesas/ra/ra8/ra8x2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,34 @@
};
};

usbfs: usbfs@40250000 {
compatible = "renesas,ra-usbfs";
reg = <0x40250000 0x2000>;
num-bidir-endpoints = <10>;
phys = <&usbfs_phy>;
phys-clock = <&uclk>;
status = "disabled";

udc {
compatible = "renesas,ra-udc";
status = "disabled";
};
};

usbhs: usbhs@40351000 {
compatible = "renesas,ra-usbhs";
reg = <0x40351000 0x2000>;
num-bidir-endpoints = <10>;
phys = <&usbhs_phy>;
phys-clock = <&uclk>, <&usb60clk>;
status = "disabled";

udc {
compatible = "renesas,ra-udc";
status = "disabled";
};
};

port_irq0: external-interrupt@40006000 {
compatible = "renesas,ra-external-interrupt";
reg = <0x40006000 0x1>;
Expand Down Expand Up @@ -1131,6 +1159,16 @@
};
};
};

usbfs_phy: usbfs-phy {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};

usbhs_phy: usbhs-phy {
compatible = "renesas,ra-usbphyc";
#phy-cells = <0>;
};
};

&nvic {
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ manifest:
- hal
- name: hal_renesas
path: modules/hal/renesas
revision: 53738694cc40f7a7a53c4940209889f1eee556ea
revision: dad5d42fb5ed238490362e76920778b1f8dee64e
groups:
- hal
- name: hal_rpi_pico
Expand Down
Loading