All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: Enable USB hub on Arndale
@ 2013-08-14 23:27 Mark Brown
  2013-08-14 23:27 ` [PATCH 2/2] ARM: dts: Hook up internal PHY " Mark Brown
  2013-08-18 19:34 ` [PATCH 1/2] ARM: dts: Enable USB hub " Kukjin Kim
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Brown @ 2013-08-14 23:27 UTC (permalink / raw)
  To: Kukjin Kim, Tushar Behera; +Cc: linux-samsung-soc, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

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.

Signed-off-by: Mark Brown <broonie@linaro.org>
Tested-by: Tushar Behera <tushar.behera@linaro.org>
---
 arch/arm/boot/dts/exynos5250-arndale.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts
index 96d528d..2428ffd 100644
--- a/arch/arm/boot/dts/exynos5250-arndale.dts
+++ b/arch/arm/boot/dts/exynos5250-arndale.dts
@@ -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>;
+		};
+	};
 };
-- 
1.8.4.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM: dts: Hook up internal PHY on Arndale
  2013-08-14 23:27 [PATCH 1/2] ARM: dts: Enable USB hub on Arndale Mark Brown
@ 2013-08-14 23:27 ` Mark Brown
  2013-08-18 19:34 ` [PATCH 1/2] ARM: dts: Enable USB hub " Kukjin Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2013-08-14 23:27 UTC (permalink / raw)
  To: Kukjin Kim, Tushar Behera; +Cc: linux-samsung-soc, linaro-kernel, Mark Brown

From: Mark Brown <broonie@linaro.org>

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.

Signed-off-by: Mark Brown <broonie@linaro.org>
---
 arch/arm/boot/dts/exynos5250-arndale.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts
index 2428ffd..e477e23 100644
--- a/arch/arm/boot/dts/exynos5250-arndale.dts
+++ b/arch/arm/boot/dts/exynos5250-arndale.dts
@@ -553,4 +553,8 @@
 			connect-gpios = <&gpd1 7 1>;
 		};
 	};
+
+	usb@12110000 {
+		usb-phy = <&usb2_phy>;
+	};
 };
-- 
1.8.4.rc2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] ARM: dts: Enable USB hub on Arndale
  2013-08-14 23:27 [PATCH 1/2] ARM: dts: Enable USB hub on Arndale Mark Brown
  2013-08-14 23:27 ` [PATCH 2/2] ARM: dts: Hook up internal PHY " Mark Brown
@ 2013-08-18 19:34 ` Kukjin Kim
  1 sibling, 0 replies; 3+ messages in thread
From: Kukjin Kim @ 2013-08-18 19:34 UTC (permalink / raw)
  To: Mark Brown
  Cc: Kukjin Kim, Tushar Behera, linux-samsung-soc, linaro-kernel,
	Mark Brown

On 08/15/13 08:27, Mark Brown wrote:
> From: Mark Brown<broonie@linaro.org>
>
> 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.
>
> Signed-off-by: Mark Brown<broonie@linaro.org>
> Tested-by: Tushar Behera<tushar.behera@linaro.org>
> ---
>   arch/arm/boot/dts/exynos5250-arndale.dts | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts
> index 96d528d..2428ffd 100644
> --- a/arch/arm/boot/dts/exynos5250-arndale.dts
> +++ b/arch/arm/boot/dts/exynos5250-arndale.dts
> @@ -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>;
> +		};
> +	};
>   };

Applied, thanks.

Kukjin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-18 19:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 23:27 [PATCH 1/2] ARM: dts: Enable USB hub on Arndale Mark Brown
2013-08-14 23:27 ` [PATCH 2/2] ARM: dts: Hook up internal PHY " Mark Brown
2013-08-18 19:34 ` [PATCH 1/2] ARM: dts: Enable USB hub " Kukjin Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.