Skip to content

Commit c4b2012

Browse files
committed
arm64: dts: s32g: Add USB device tree information for s32g2/s32g3
JIRA: https://issues.redhat.com/browse/RHEL-116642 Conflicts: Context difference caused by upstream commit d1b07cc ("arm64: dts: s32g: Add USB device tree information for s32g2/s32g3") changing the same area. This conflict was resolved by Linus upstream in 115e74a ("Merge tag 'soc-dt-6.17' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc"). commit d1b07cc Author: Dan Carpenter <dan.carpenter@linaro.org> Date: Thu Jul 3 20:20:44 2025 -0500 arm64: dts: s32g: Add USB device tree information for s32g2/s32g3 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> Signed-off-by: Jared Kangas <jkangas@redhat.com>
1 parent 9e67466 commit c4b2012

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

arch/arm64/boot/dts/freescale/s32g2.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,29 @@
384384
status = "disabled";
385385
};
386386

387+
usbmisc: usbmisc@44064200 {
388+
#index-cells = <1>;
389+
compatible = "nxp,s32g2-usbmisc";
390+
reg = <0x44064200 0x200>;
391+
};
392+
393+
usbotg: usb@44064000 {
394+
compatible = "nxp,s32g2-usb";
395+
reg = <0x44064000 0x200>;
396+
interrupt-parent = <&gic>;
397+
interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, /* OTG Core */
398+
<GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; /* OTG Wakeup */
399+
clocks = <&clks 94>, <&clks 95>;
400+
fsl,usbmisc = <&usbmisc 0>;
401+
ahb-burst-config = <0x3>;
402+
tx-burst-size-dword = <0x10>;
403+
rx-burst-size-dword = <0x10>;
404+
phy_type = "ulpi";
405+
dr_mode = "host";
406+
maximum-speed = "high-speed";
407+
status = "disabled";
408+
};
409+
387410
spi0: spi@401d4000 {
388411
compatible = "nxp,s32g2-dspi";
389412
reg = <0x401d4000 0x1000>;

arch/arm64/boot/dts/freescale/s32g3.dtsi

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,29 @@
444444
status = "disabled";
445445
};
446446

447+
usbmisc: usbmisc@44064200 {
448+
#index-cells = <1>;
449+
compatible = "nxp,s32g3-usbmisc";
450+
reg = <0x44064200 0x200>;
451+
};
452+
453+
usbotg: usb@44064000 {
454+
compatible = "nxp,s32g3-usb", "nxp,s32g2-usb";
455+
reg = <0x44064000 0x200>;
456+
interrupt-parent = <&gic>;
457+
interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>, /* OTG Core */
458+
<GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>; /* OTG Wakeup */
459+
clocks = <&clks 94>, <&clks 95>;
460+
fsl,usbmisc = <&usbmisc 0>;
461+
ahb-burst-config = <0x3>;
462+
tx-burst-size-dword = <0x10>;
463+
rx-burst-size-dword = <0x10>;
464+
phy_type = "ulpi";
465+
dr_mode = "host";
466+
maximum-speed = "high-speed";
467+
status = "disabled";
468+
};
469+
447470
spi0: spi@401d4000 {
448471
compatible = "nxp,s32g3-dspi", "nxp,s32g2-dspi";
449472
reg = <0x401d4000 0x1000>;

0 commit comments

Comments
 (0)