]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: s32g: Add USB device tree information for s32g2/s32g3
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 4 Jul 2025 01:20:44 +0000 (20:20 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2025 09:06:14 +0000 (11:06 +0200)
This adds the USB support for the s32g2 and s32g3 SoCs.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/e3e5041e-254d-44c3-b645-532d4d7a8f9e@sabinyo.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/freescale/s32g2.dtsi
arch/arm64/boot/dts/freescale/s32g3.dtsi

index ea1456d361a35b0521d8217b001cdc08d2d359d9..4be6534ed01d2f403d44015c8c080854323e262b 100644 (file)
                        status = "disabled";
                };
 
+               usbmisc: usbmisc@44064200 {
+                       #index-cells = <1>;
+                       compatible = "nxp,s32g2-usbmisc";
+                       reg = <0x44064200 0x200>;
+               };
+
+               usbotg: usb@44064000 {
+                       compatible = "nxp,s32g2-usb";
+                       reg = <0x44064000 0x200>;
+                       interrupt-parent = <&gic>;
+                       interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, /* OTG Core */
+                                        <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; /* OTG Wakeup */
+                       clocks = <&clks 94>, <&clks 95>;
+                       fsl,usbmisc = <&usbmisc 0>;
+                       ahb-burst-config = <0x3>;
+                       tx-burst-size-dword = <0x10>;
+                       rx-burst-size-dword = <0x10>;
+                       phy_type = "ulpi";
+                       dr_mode = "host";
+                       maximum-speed = "high-speed";
+                       status = "disabled";
+               };
+
                i2c0: i2c@401e4000 {
                        compatible = "nxp,s32g2-i2c";
                        reg = <0x401e4000 0x1000>;
index 991dbfbfa2033c3759afa88be29ed4f454f0e20e..191d2dab4254c2b8da69f0490fec766d0751c26a 100644 (file)
                        status = "disabled";
                };
 
+               usbmisc: usbmisc@44064200 {
+                       #index-cells = <1>;
+                       compatible = "nxp,s32g3-usbmisc";
+                       reg = <0x44064200 0x200>;
+               };
+
+                usbotg: usb@44064000 {
+                        compatible = "nxp,s32g3-usb", "nxp,s32g2-usb";
+                        reg = <0x44064000 0x200>;
+                        interrupt-parent = <&gic>;
+                        interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, /* OTG Core */
+                                     <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; /* OTG Wakeup */
+                        clocks = <&clks 94>, <&clks 95>;
+                        fsl,usbmisc = <&usbmisc 0>;
+                        ahb-burst-config = <0x3>;
+                        tx-burst-size-dword = <0x10>;
+                        rx-burst-size-dword = <0x10>;
+                        phy_type = "ulpi";
+                        dr_mode = "host";
+                        maximum-speed = "high-speed";
+                        status = "disabled";
+                };
+
                i2c0: i2c@401e4000 {
                        compatible = "nxp,s32g3-i2c",
                                     "nxp,s32g2-i2c";