]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: renesas: rzg3s-smarc: Enable USB support
authorClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Thu, 23 Oct 2025 13:58:10 +0000 (16:58 +0300)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 13 Nov 2025 20:19:22 +0000 (21:19 +0100)
Enable USB support (host, device, USB PHYs).

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20251023135810.1688415-8-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/rzg3s-smarc.dtsi

index 5e044a4d023436425c3ee51518998463fe91332b..6b0bb2c441af50d9ab413ea416a2a16d40494055 100644 (file)
        clock-frequency = <12288000>;
 };
 
+&ehci0 {
+       dr_mode = "otg";
+       status = "okay";
+};
+
+&ehci1 {
+       status = "okay";
+};
+
+&hsusb {
+       dr_mode = "otg";
+       status = "okay";
+};
+
 &i2c0 {
        status = "okay";
 
        };
 };
 
+&ohci0 {
+       dr_mode = "otg";
+       status = "okay";
+};
+
+&ohci1 {
+       status = "okay";
+};
+
+&phyrst {
+       status = "okay";
+};
+
 &pinctrl {
        audio_clock_pins: audio-clock {
                pins = "AUDIO_CLK1", "AUDIO_CLK2";
                         <RZG2L_PORT_PINMUX(18, 4, 8)>, /* TXD */
                         <RZG2L_PORT_PINMUX(18, 5, 8)>; /* RXD */
        };
+
+       usb0_pins: usb0 {
+               peri {
+                       pinmux = <RZG2L_PORT_PINMUX(5, 0, 1)>, /* VBUS */
+                                <RZG2L_PORT_PINMUX(5, 2, 1)>; /* OVC */
+               };
+
+               otg {
+                       pinmux = <RZG2L_PORT_PINMUX(5, 3, 1)>; /* OTG_ID */
+                       bias-pull-up;
+               };
+       };
+
+       usb1_pins: usb1 {
+               pinmux = <RZG2L_PORT_PINMUX(5, 4, 5)>, /* OVC */
+                        <RZG2L_PORT_PINMUX(6, 0, 1)>; /* VBUS */
+       };
 };
 
 &scif0 {
        pinctrl-0 = <&ssi3_pins>, <&audio_clock_pins>;
        status = "okay";
 };
+
+&usb2_phy0 {
+       pinctrl-0 = <&usb0_pins>;
+       pinctrl-names = "default";
+       vbus-supply = <&usb0_vbus_otg>;
+       status = "okay";
+};
+
+&usb2_phy1 {
+       pinctrl-0 = <&usb1_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};