Skip to contentSkip to conversation

arm64: dts: ls1012a: add USB host controller nodes

PATCH Superseded Ran Wang 2 participants 4 messages Jul 5, 2017 – Jul 13, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ran Wang

author
#0 lore raw

PATCH 1/1 arm64: dts: ls1012a: add USB host controller nodes

LS1012A has one USB 3.0(DWC3) controller and
one USB 2.0 controller.

---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +17 -0
index b497ac1..8aa2dcf 100644
@@ -411,6 +411,23 @@
 				 <&clockgen 4 3>;
 		};
 
+		usb0: usb3 at 2f00000 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0x2f00000 0x0 0x10000>;
+			interrupts = <0 60 0x4>;
+			dr_mode = "host";
+			snps,quirk-frame-length-adjustment = <0x20>;
+			snps,dis_rxdet_inp3_quirk;
+		};
+
+		usb1: usb2 at 8600000 {
+			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
+			reg = <0x0 0x8600000 0x0 0x1000>;
+			interrupts = <0 139 0x4>;
+			dr_mode = "host";
+			phy_type = "ulpi";
+		};
+
 		sata: sata at 3200000 {
 			compatible = "fsl,ls1012a-ahci", "fsl,ls1043a-ahci";
 			reg = <0x0 0x3200000 0x0 0x10000>,
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw
Quoted 22 lines · Ran Wang

LS1012A has one USB 3.0(DWC3) controller and
one USB 2.0 controller.

---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +6 -0
index b497ac1..8aa2dcf 100644
@@ -411,6 +411,23 @@
 				 <&clockgen 4 3>;
 		};
 
+		usb0: usb3 at 2f00000 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0x2f00000 0x0 0x10000>;
+			interrupts = <0 60 0x4>;
+			dr_mode = "host";
+			snps,quirk-frame-length-adjustment = <0x20>;

arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 429

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +10 -0
+			snps,dis_rxdet_inp3_quirk;
+		};
+
+		usb1: usb2 at 8600000 {
+			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
+			reg = <0x0 0x8600000 0x0 0x1000>;
+			interrupts = <0 139 0x4>;
+			dr_mode = "host";
+			phy_type = "ulpi";
+		};

Please keep the nodes sorted in unit-address.

Shawn

Quoted 7 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1 -0
+
 		sata: sata at 3200000 {
 			compatible = "fsl,ls1012a-ahci", "fsl,ls1043a-ahci";
 			reg = <0x0 0x3200000 0x0 0x10000>,
Signature · 1 line
2.1.0.27.g96db324
author
#2 lore raw
Quoted 50 lines

-----Original Message-----
From: Shawn Guo [mailto:shawnguo at kernel.org]
Sent: Thursday, July 13, 2017 4:07 PM
To: Ran Wang <[email protected]>
Cc: Rob Herring <[email protected]>; Mark Rutland <[email protected]>; Catalin Marinas <[email protected]>; Will Deacon <[email protected]>; Andy Tang <[email protected]>; Harninder Rai <[email protected]>; Horia Geant? <[email protected]>; open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS <[email protected]>; moderated list:ARM64 PORT (AARCH64 ARCHITECTURE) <[email protected]>; open list <linux- kernel at vger.kernel.org>
Subject: Re: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

Quoted 22 lines · Ran Wang

LS1012A has one USB 3.0(DWC3) controller and one USB 2.0 controller.

---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +6 -0
index b497ac1..8aa2dcf 100644
@@ -411,6 +411,23 @@
 				 <&clockgen 4 3>;
 		};
 
+		usb0: usb3 at 2f00000 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0x2f00000 0x0 0x10000>;
+			interrupts = <0 60 0x4>;
+			dr_mode = "host";
+			snps,quirk-frame-length-adjustment = <0x20>;

arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 429

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +10 -0
+			snps,dis_rxdet_inp3_quirk;
+		};
+
+		usb1: usb2 at 8600000 {
+			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
+			reg = <0x0 0x8600000 0x0 0x1000>;
+			interrupts = <0 139 0x4>;
+			dr_mode = "host";
+			phy_type = "ulpi";
+		};

Please keep the nodes sorted in unit-address.

Quoted 1 line

Shawn

Do you mean to move the node 'usb1: usb2 at 8600000' forward to where it's address is just before '@8600000 '? I think it's reasonable to put USB controller nodes together in DTS for developer to do issue analysis.

Ran

Quoted 8 lines
Quoted 8 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1 -1
+
 		sata: sata at 3200000 {
 			compatible = "fsl,ls1012a-ahci", "fsl,ls1043a-ahci";
 			reg = <0x0 0x3200000 0x0 0x10000>,
--

2.1.0.27.g96db324

#3 lore raw
Quoted 28 lines · Ran Wang
Quoted 28 lines
Quoted 15 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +6 -0
index b497ac1..8aa2dcf 100644
@@ -411,6 +411,23 @@
 				 <&clockgen 4 3>;
 		};
 
+		usb0: usb3 at 2f00000 {
+			compatible = "snps,dwc3";
+			reg = <0x0 0x2f00000 0x0 0x10000>;
+			interrupts = <0 60 0x4>;
+			dr_mode = "host";
+			snps,quirk-frame-length-adjustment = <0x20>;

arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi line 429

Quoted 10 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +10 -0
+			snps,dis_rxdet_inp3_quirk;
+		};
+
+		usb1: usb2 at 8600000 {
+			compatible = "fsl-usb2-dr-v2.5", "fsl-usb2-dr";
+			reg = <0x0 0x8600000 0x0 0x1000>;
+			interrupts = <0 139 0x4>;
+			dr_mode = "host";
+			phy_type = "ulpi";
+		};

Please keep the nodes sorted in unit-address.

Quoted 3 lines
Quoted 1 line

Shawn

Do you mean to move the node 'usb1: usb2 at 8600000' forward to where it's address is just before '@8600000 '? I think it's reasonable to put USB controller nodes together in DTS for developer to do issue analysis.

The nodes under simple-bus are maintained in order of unit-address. Please respect that.

usb2 at 8600000 should go after sata at 3200000 with the current nodes.

Shawn

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +1 -1
+
 		sata: sata at 3200000 {
 			compatible = "fsl,ls1012a-ahci", "fsl,ls1043a-ahci";
 			reg = <0x0 0x3200000 0x0 0x10000>,
--

2.1.0.27.g96db324