]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: fsl-ls1088a: sync usb controller nodes with Linux
authorMathew McBride <matt@traverse.com.au>
Wed, 12 Apr 2023 07:38:24 +0000 (07:38 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 5 May 2023 01:46:04 +0000 (09:46 +0800)
Synchronise the USB device tree definition with Linux, allowing
the U-Boot control FDT to be used to boot a Linux system with
working USB.

An extra compatible string, "fsl,layerscape-dwc3" is needed
for special handling in U-Boot, so has been added to the
-u-boot.dtsi file. It might be better to add this to the
Linux source bindings.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # on LS1088A-RDB
arch/arm/dts/fsl-ls1088a-u-boot.dtsi
arch/arm/dts/fsl-ls1088a.dtsi

index ac30b813ff3b7bd6b212539340bcf0650b054a93..3a2291527c3a706746205e9688ee903a27808f33 100644 (file)
        status = "okay";
 };
 
+&usb0 {
+       compatible = "fsl,layerscape-dwc3", "snps,dwc3";
+};
+
+&usb1 {
+       compatible = "fsl,layerscape-dwc3", "snps,dwc3";
+};
+
index bd344ba8e269c0da94fa7e4161325b8ed43fa7be..ca88b9e9f427d28a859be69c21a35c75a7d006bd 100644 (file)
                        status = "disabled";
                };
 
+               usb0: usb@3100000 {
+                       compatible = "snps,dwc3";
+                       reg = <0x0 0x3100000 0x0 0x10000>;
+                       interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>;
+                       dr_mode = "host";
+                       snps,quirk-frame-length-adjustment = <0x20>;
+                       snps,dis_rxdet_inp3_quirk;
+                       snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
+                       status = "disabled";
+               };
+
+               usb1: usb@3110000 {
+                       compatible = "snps,dwc3";
+                       reg = <0x0 0x3110000 0x0 0x10000>;
+                       interrupts = <0 81 IRQ_TYPE_LEVEL_HIGH>;
+                       dr_mode = "host";
+                       snps,quirk-frame-length-adjustment = <0x20>;
+                       snps,dis_rxdet_inp3_quirk;
+                       snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
+                       status = "disabled";
+               };
+
                pcie1: pcie@3400000 {
                        compatible = "fsl,ls1088a-pcie";
                        reg = <0x00 0x03400000 0x0 0x00100000>, /* controller registers */
                interrupts = <0 21 0x4>; /* Level high type */
        };
 
-       usb0: usb3@3100000 {
-               compatible = "fsl,layerscape-dwc3";
-               reg = <0x0 0x3100000 0x0 0x10000>;
-               interrupts = <0 80 0x4>; /* Level high type */
-               dr_mode = "host";
-       };
-
-       usb1: usb3@3110000 {
-               compatible = "fsl,layerscape-dwc3";
-               reg = <0x0 0x3110000 0x0 0x10000>;
-               interrupts = <0 81 0x4>; /* Level high type */
-               dr_mode = "host";
-       };
-
        crypto: crypto@8000000 {
                compatible = "fsl,sec-v5.0", "fsl,sec-v4.0";
                fsl,sec-era = <8>;