linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 08/11] ARM: shmobile: lager.dtb: add usbphy reference
@ 2014-02-05 10:19 Ben Dooks
  2014-02-05 12:36 ` Magnus Damm
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Dooks @ 2014-02-05 10:19 UTC (permalink / raw)
  To: linux-sh

Enable the usbphy node so that the phy driver is available.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Ian Molton <ian.molton@codethink.co.uk>
---
Cc: linux-sh@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Simon Horman <horms@verge.net.au>
---
 arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 15e21d0..f6d795d 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -129,3 +129,7 @@
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
 };
+
+&usbphy {
+	status = "okay";
+};
-- 
1.8.5.3


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

* Re: [PATCH 08/11] ARM: shmobile: lager.dtb: add usbphy reference
  2014-02-05 10:19 [PATCH 08/11] ARM: shmobile: lager.dtb: add usbphy reference Ben Dooks
@ 2014-02-05 12:36 ` Magnus Damm
  0 siblings, 0 replies; 2+ messages in thread
From: Magnus Damm @ 2014-02-05 12:36 UTC (permalink / raw)
  To: linux-sh

On Wed, Feb 5, 2014 at 7:19 PM, Ben Dooks <ben.dooks@codethink.co.uk> wrote:
> Enable the usbphy node so that the phy driver is available.
>
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
> Reviewed-by: Ian Molton <ian.molton@codethink.co.uk>
> ---
> Cc: linux-sh@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: Simon Horman <horms@verge.net.au>
> ---
>  arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
> index 15e21d0..f6d795d 100644
> --- a/arch/arm/boot/dts/r8a7790-lager.dts
> +++ b/arch/arm/boot/dts/r8a7790-lager.dts
> @@ -129,3 +129,7 @@
>         pinctrl-0 = <&usb2_pins>;
>         pinctrl-names = "default";
>  };
> +
> +&usbphy {
> +       status = "okay";
> +};

This looks a bit too simple to be 100% correct. =)

I don't have any experience with using DT to describe a USB PHY
driver, so perhaps this rather simple proposal is the best way
forward. I'm afraid that I don't have any good counter proposal, but
despite this I somehow expected that the relationship between USB0,
USB2 and the PHY should be pointed out in DT somehow. Also, what is
available may vary with SoC so port configuration may not be entirely
static unfortunately.

When we add DT bindings to the USBHS driver we may be able to add some
nesting or pointer to the PHY, so we may be able to handle the PHY in
that case somehow. We anyway need to convert all the usbhs board
callbacks so perhaps there is some overlap. But for OHCI / EHCI I'm
not sure sure how to hook in a PHY in a sane way. Especially with DT.

On r8a7791 Koelsch we have proper cable detection, but is switching
between USBHS and OHCI/EHCI on the fly really a sane expected use
case? I'd say stick to USBHS in Host or Gadget mode only for simple
software support. I'm not sure if the PHY needs to be configured
depending on USBHS Host or Gadget. Anyway, we want the binding to
allow some flexibility for the future too.

Thanks,

/ magnus

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

end of thread, other threads:[~2014-02-05 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 10:19 [PATCH 08/11] ARM: shmobile: lager.dtb: add usbphy reference Ben Dooks
2014-02-05 12:36 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).