Skip to contentSkip to conversation

arm64: dts: ls1028a: Add USB dt nodes

PATCH Superseded Ran Wang 2 participants 2 messages May 8, 2019 – May 17, 2019

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Ran Wang

author
#0 lore raw

PATCH v3 1/1 arm64: dts: ls1028a: Add USB dt nodes

This patch adds USB dt nodes for LS1028A.

---
Changes in v3:
- Add space between label and node name.
- Add spcae with properties and '='.
- Add SoC specific compatible.

Changes in v2:
- Rename node from usb3@... to usb@... to meet DTSpec

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +20 -0
index 8dd3501..19519df 100644
@@ -144,6 +144,26 @@
 			clocks = <&sysclk>;
 		};
 
+		usb0: usb@3100000 {
+			compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
+			reg = <0x0 0x3100000 0x0 0x10000>;
+			interrupts = <0 80 0x4>;
+			dr_mode = "host";
+			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";
+			reg = <0x0 0x3110000 0x0 0x10000>;
+			interrupts = <0 81 0x4>;
+			dr_mode = "host";
+			snps,dis_rxdet_inp3_quirk;
+			snps,quirk-frame-length-adjustment = <0x20>;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
+		};
+
 		i2c0: i2c@2000000 {
 			compatible = "fsl,vf610-i2c";
 			#address-cells = <1>;
Signature · 1 line
1.7.1
#1 lore raw
Quoted 20 lines · Ran Wang

This patch adds USB dt nodes for LS1028A.

---
Changes in v3:
- Add space between label and node name.
- Add spcae with properties and '='.
- Add SoC specific compatible.

Changes in v2:
- Rename node from usb3@... to usb@... to meet DTSpec

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +0 -0
index 8dd3501..19519df 100644

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 147

Quoted 4 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +1 -0
@@ -144,6 +144,26 @@
 			clocks = <&sysclk>;
 		};
 
+		usb0: usb@3100000 {

Please sort the nodes with unit-address in the address. That said, it should go after watchdog@23c0000.

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi line 150

Quoted 3 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +3 -0
+			compatible = "fsl,ls1028a-dwc3", "snps,dwc3";
+			reg = <0x0 0x3100000 0x0 0x10000>;
+			interrupts = <0 80 0x4>;

interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;

Shawn

Quoted 22 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +16 -0
+			dr_mode = "host";
+			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";
+			reg = <0x0 0x3110000 0x0 0x10000>;
+			interrupts = <0 81 0x4>;
+			dr_mode = "host";
+			snps,dis_rxdet_inp3_quirk;
+			snps,quirk-frame-length-adjustment = <0x20>;
+			snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
+		};
+
 		i2c0: i2c@2000000 {
 			compatible = "fsl,vf610-i2c";
 			#address-cells = <1>;
Signature · 1 line
1.7.1