arm64: dts: layerscape: add dma-coherent for usb node
authorFrank Li <Frank.Li@nxp.com>
Mon, 29 Sep 2025 14:24:17 +0000 (10:24 -0400)
committerShawn Guo <shawnguo@kernel.org>
Tue, 28 Oct 2025 08:54:11 +0000 (16:54 +0800)
Add SOC special compatible string, remove fallback snps,dwc3 to let flatten
dwc3-layerscape driver to be probed and enable dma-coherence for usb node
since commit add layerscape dwc3 support, which set correct gsbustcfg0
value.

Add iommus property to run at old uboot, which use fixup add iommus by
check compatible string snsp,dwc3 compatible string.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi

index fc3e138..ef80bf6 100644 (file)
                };
 
                usb0: usb@2f00000 {
-                       compatible = "snps,dwc3";
+                       compatible = "fsl,ls1012a-dwc3", "fsl,ls1028a-dwc3";
                        reg = <0x0 0x2f00000 0x0 0x10000>;
                        interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
+                       dma-coherent;
                        snps,quirk-frame-length-adjustment = <0x20>;
                        snps,dis_rxdet_inp3_quirk;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
index 7d172d7..e7f9c93 100644 (file)
                };
 
                usb0: usb@3100000 {
-                       compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
+                       compatible = "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
+                       iommus = <&smmu 1>;
+                       dma-coherent;
                        snps,dis_rxdet_inp3_quirk;
                        snps,quirk-frame-length-adjustment = <0x20>;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                };
 
                usb1: usb@3110000 {
-                       compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
+                       compatible = "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3110000 0x0 0x10000>;
                        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+                       iommus = <&smmu 2>;
+                       dma-coherent;
                        snps,dis_rxdet_inp3_quirk;
                        snps,quirk-frame-length-adjustment = <0x20>;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
index 73315c5..50d9b03 100644 (file)
                        dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x00000000>;
 
                        usb0: usb@2f00000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1043a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x2f00000 0x0 0x10000>;
                                interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                usb3-lpm-capable;
                        };
 
                        usb1: usb@3000000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1043a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x3000000 0x0 0x10000>;
                                interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                usb3-lpm-capable;
                        };
 
                        usb2: usb@3100000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1043a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x3100000 0x0 0x10000>;
                                interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                usb3-lpm-capable;
index 770d91e..22173d6 100644 (file)
                        dma-ranges = <0x0 0x0 0x0 0x0 0x100 0x00000000>;
 
                        usb0: usb@2f00000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1046a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x2f00000 0x0 0x10000>;
                                interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                        };
 
                        usb1: usb@3000000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1046a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x3000000 0x0 0x10000>;
                                interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                        };
 
                        usb2: usb@3100000 {
-                               compatible = "snps,dwc3";
+                               compatible = "fsl,ls1046a-dwc3", "fsl,ls1028a-dwc3";
                                reg = <0x0 0x3100000 0x0 0x10000>;
                                interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
                                dr_mode = "host";
+                               dma-coherent;
                                snps,quirk-frame-length-adjustment = <0x20>;
                                snps,dis_rxdet_inp3_quirk;
                                snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
index 9d57263..b2f6cd2 100644 (file)
                };
 
                usb0: usb@3100000 {
-                       compatible = "snps,dwc3";
+                       compatible = "fsl,ls1088a-dwc3", "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
+                       iommus = <&smmu 1>;
+                       dma-coherent;
                        snps,quirk-frame-length-adjustment = <0x20>;
                        snps,dis_rxdet_inp3_quirk;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                };
 
                usb1: usb@3110000 {
-                       compatible = "snps,dwc3";
+                       compatible = "fsl,ls1088a-dwc3", "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3110000 0x0 0x10000>;
                        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
+                       iommus = <&smmu 2>;
+                       dma-coherent;
                        snps,quirk-frame-length-adjustment = <0x20>;
                        snps,dis_rxdet_inp3_quirk;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
index c954140..d899c03 100644 (file)
                };
 
                usb0: usb@3100000 {
-                       compatible = "snps,dwc3";
+                       compatible = "fsl,lx2160a-dwc3", "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
                        snps,quirk-frame-length-adjustment = <0x20>;
                        usb3-lpm-capable;
+                       iommus = <&smmu 1>;
+                       dma-coherent;
                        snps,dis_rxdet_inp3_quirk;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                        status = "disabled";
                };
 
                usb1: usb@3110000 {
-                       compatible = "snps,dwc3";
+                       compatible = "fsl,lx2160a-dwc3", "fsl,ls1028a-dwc3";
                        reg = <0x0 0x3110000 0x0 0x10000>;
                        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
                        snps,quirk-frame-length-adjustment = <0x20>;
                        usb3-lpm-capable;
+                       iommus = <&smmu 2>;
+                       dma-coherent;
                        snps,dis_rxdet_inp3_quirk;
                        snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
                        status = "disabled";