]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Enable USB2.0 support
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 15 May 2025 18:31:04 +0000 (19:31 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 19 Jun 2025 17:34:14 +0000 (19:34 +0200)
Enable USB2.0 support on the RZ/V2H EVK board, CN3 supports
host only operation and CN2 supports host/function operation.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250515183104.330964-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Link: https://lore.kernel.org/20250613152216.201957-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a09g057h44-rzv2h-evk.dts

index d6d2f689b8754a731a29defa22d3630238cc5f19..655a30c63ab1a4d0b2ee1a62cd36c783f0c6da6a 100644 (file)
        clock-frequency = <22579200>;
 };
 
+&ehci0 {
+       dr_mode = "otg";
+       status = "okay";
+};
+
+&ehci1 {
+       status = "okay";
+};
+
 &eth0 {
        pinctrl-0 = <&eth0_pins>;
        pinctrl-names = "default";
        mali-supply = <&reg_0p8v>;
 };
 
+&hsusb {
+       dr_mode = "otg";
+       status = "okay";
+};
+
 &i2c0 {
        pinctrl-0 = <&i2c0_pins>;
        pinctrl-names = "default";
        };
 };
 
+&ohci0 {
+       dr_mode = "otg";
+       status = "okay";
+};
+
+&ohci1 {
+       status = "okay";
+};
+
 &ostm0 {
        status = "okay";
 };
                        pinmux = <RZV2H_PORT_PINMUX(9, 4, 14)>; /* SD1_CD */
                };
        };
+
+       usb20_pins: usb20 {
+               ovc {
+                       pinmux =  <RZV2H_PORT_PINMUX(9, 6, 14)>; /* OVC */
+               };
+
+               vbus {
+                       pinmux = <RZV2H_PORT_PINMUX(9, 5, 14)>; /* VBUS */
+               };
+       };
+
+       usb21_pins: usb21 {
+               ovc {
+                       pinmux = <RZV2H_PORT_PINMUX(6, 7, 14)>; /* OVC */
+               };
+
+               vbus {
+                       pinmux = <RZV2H_PORT_PINMUX(6, 6, 14)>; /* VBUS */
+               };
+       };
 };
 
 &qextal_clk {
        status = "okay";
 };
 
+&usb20phyrst {
+       status = "okay";
+};
+
+&usb21phyrst {
+       status = "okay";
+};
+
+&usb2_phy0 {
+       pinctrl-0 = <&usb20_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
+&usb2_phy1 {
+       pinctrl-0 = <&usb21_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
 &wdt1 {
        status = "okay";
 };