Skip to contentSkip to conversation

ARM: dts: Enable USB hub on Arndale

PATCH Applied Mark Brown 2 participants 3 messages Aug 14, 2013 – Aug 18, 2013

Subsystems (2)
lore
Share & tools
lore
author
#1 lore raw

PATCH 2/2 ARM: dts: Hook up internal PHY on Arndale

In reply to Mark Brown

From: Mark Brown <[email protected]>

While the Linux driver stack is capable of figuring this out for itself document the fact that we really do use the internal PHY even with the directly wired hub on the board to save anyone else having to work this out for themselves.

---
 arch/arm/boot/dts/exynos5250-arndale.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/exynos5250-arndale.dts +4 -0
index 2428ffd..e477e23 100644
@@ -553,4 +553,8 @@
 			connect-gpios = <&gpd1 7 1>;
 		};
 	};
+
+	usb@12110000 {
+		usb-phy = <&usb2_phy>;
+	};
 };
Signature · 1 line
1.8.4.rc2

Mark Brown

author
#0 lore raw

PATCH 1/2 ARM: dts: Enable USB hub on Arndale

From: Mark Brown <[email protected]>

The Arndale has a SMSC USB3503 connected in hardware only mode like a PHY, support it using the usb-nop-xceiv binding.

Note that due to a regrettable decision to use a regulator to represent the reset signal this uses a fixed voltage regulator to do that, there is a plan to use the reset controller binding once that is merged so it does not seem worthwhile to fix the usb-nop-xceiv driver at this point.

---
 arch/arm/boot/dts/exynos5250-arndale.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos5250-arndale.dts +14 -0
index 96d528d..2428ffd 100644
@@ -539,4 +539,18 @@
 	rtc {
 		status = "okay";
 	};
+
+	usb_hub_bus {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		// SMSC USB3503 connected in hardware only mode as a PHY
+		usb_hub: usb_hub {
+			compatible = "smsc,usb3503a";
+
+			reset-gpios = <&gpx3 5 1>;
+			connect-gpios = <&gpd1 7 1>;
+		};
+	};
 };
Signature · 1 line
1.8.4.rc2
Applied
#2 lore raw
Quoted 29 lines · Mark Brown

From: Mark Brown<[email protected]>

The Arndale has a SMSC USB3503 connected in hardware only mode like a PHY, support it using the usb-nop-xceiv binding.

Note that due to a regrettable decision to use a regulator to represent the reset signal this uses a fixed voltage regulator to do that, there is a plan to use the reset controller binding once that is merged so it does not seem worthwhile to fix the usb-nop-xceiv driver at this point.

---
  arch/arm/boot/dts/exynos5250-arndale.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos5250-arndale.dts +5 -0
index 96d528d..2428ffd 100644
@@ -539,4 +539,18 @@
  	rtc {
  		status = "okay";
  	};
+
+	usb_hub_bus {
+		compatible = "simple-bus";
+		#address-cells =<1>;
+		#size-cells =<0>;

arch/arm/boot/dts/exynos5250-arndale.dts line 556

Quoted 10 lines
arch/arm/boot/dts/exynos5250-arndale.dts +9 -0
+
+		// SMSC USB3503 connected in hardware only mode as a PHY
+		usb_hub: usb_hub {
+			compatible = "smsc,usb3503a";
+
+			reset-gpios =<&gpx3 5 1>;
+			connect-gpios =<&gpd1 7 1>;
+		};
+	};
  };

Applied, thanks.

Kukjin