usb: xhci: fsl: add new compatible fsl,ls1028a-dwc3
authorMichael Walle <michael@walle.cc>
Wed, 13 Oct 2021 16:14:21 +0000 (18:14 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 9 Nov 2021 11:48:23 +0000 (17:18 +0530)
The official ls1028a binding of the driver uses the following as
compatibles:
  compatible = "fsl,ls1028a-dwc3", "snps,dwc3";

Change the ls1028a device tree and add this new compatible to the fsl
specific xhci driver, otherwise the generic dwc3 driver will be used
with the compatibles above.

Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-ls1028a.dtsi
drivers/usb/host/xhci-fsl.c

index 34aad52..cc055e6 100644 (file)
                };
 
                usb0: usb3@3100000 {
-                       compatible = "fsl,layerscape-dwc3";
+                       compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
                        reg = <0x0 0x3100000 0x0 0x10000>;
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
                };
 
                usb1: usb3@3110000 {
-                       compatible = "fsl,layerscape-dwc3";
+                       compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
                        reg = <0x0 0x3110000 0x0 0x10000>;
                        interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
                        dr_mode = "host";
index f062f12..8087190 100644 (file)
@@ -159,6 +159,7 @@ static int xhci_fsl_remove(struct udevice *dev)
 
 static const struct udevice_id xhci_usb_ids[] = {
        { .compatible = "fsl,layerscape-dwc3", },
+       { .compatible = "fsl,ls1028a-dwc3", },
        { }
 };