]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: r9a09g056n48-rzv2n-evk: Enable USB2.0 support
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 28 May 2025 14:04:53 +0000 (15:04 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 19 Jun 2025 17:34:33 +0000 (19:34 +0200)
Enable USB2.0 support on the RZ/V2N EVK board, CN2 connector on the EVK
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/20250528140453.181851-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r9a09g056n48-rzv2n-evk.dts

index de5dce4514f097a798db3c5c763f179a64c017c2..b63ee1ff18d57b9dced9f80e3da156a981bc0fce 100644 (file)
        clock-frequency = <22579200>;
 };
 
+&ehci0 {
+       dr_mode = "otg";
+       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";
+};
+
 &ostm0 {
        status = "okay";
 };
                        slew-rate = <0>;
                };
        };
+
+       usb20_pins: usb20 {
+               ovc {
+                       pinmux =  <RZV2N_PORT_PINMUX(9, 6, 14)>; /* OVC */
+               };
+
+               vbus {
+                       pinmux = <RZV2N_PORT_PINMUX(9, 5, 14)>; /* VBUS */
+               };
+       };
 };
 
 &qextal_clk {
        status = "okay";
 };
 
+&usb20phyrst {
+       status = "okay";
+};
+
+&usb2_phy0 {
+       pinctrl-0 = <&usb20_pins>;
+       pinctrl-names = "default";
+
+       status = "okay";
+};
+
 &wdt1 {
        status = "okay";
 };