
Benefit is, besides host mode, now user can choose device mode with setting of dr_mode = “peripheral”;
Signed-off-by: Ran Wang ran.wang_1@nxp.com --- Change in v2: - Remove property 'snps,dis_rxdet_inp3_quirk' due to its side effect to Linux kernel (USB device no detected)
arch/arm/dts/fsl-ls1088a.dtsi | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/arch/arm/dts/fsl-ls1088a.dtsi b/arch/arm/dts/fsl-ls1088a.dtsi index 6653794..9d4f40c 100644 --- a/arch/arm/dts/fsl-ls1088a.dtsi +++ b/arch/arm/dts/fsl-ls1088a.dtsi @@ -121,18 +121,36 @@ 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"; + usb0: usb@3100000 { + compatible = "nxp,layerscape-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dwc3 { + compatible = "snps,dwc3"; + reg = <0x0 0x3100000 0x0 0x10000>; + interrupts = <0 80 0x4>; /* Level high type */ + dr_mode = "host"; + maximum-speed = "super-speed"; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + }; };
- usb1: usb3@3110000 { - compatible = "fsl,layerscape-dwc3"; - reg = <0x0 0x3110000 0x0 0x10000>; - interrupts = <0 81 0x4>; /* Level high type */ - dr_mode = "host"; + usb1: usb@3110000 { + compatible = "nxp,layerscape-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dwc3 { + compatible = "snps,dwc3"; + reg = <0x0 0x3110000 0x0 0x10000>; + interrupts = <0 81 0x4>; /* Level high type */ + dr_mode = "host"; + maximum-speed = "super-speed"; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + }; };
pcie@3400000 {