ARM: shmobile: lager.dtb: add usbphy reference
Subsystems (2)
PATCH 8/11 ARM: shmobile: lager.dtb: add usbphy reference
Enable the usbphy node so that the phy driver is available.
---
Cc: [email protected]
Cc: [email protected]
Cc: Magnus Damm <[email protected]>
Cc: Simon Horman <[email protected]>
--- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/r8a7790-lager.dts +4 -0
@@ -129,3 +129,7 @@ pinctrl-0 = <&usb2_pins>; pinctrl-names = "default"; }; + +&usbphy { + status = "okay"; +};
Signature · 1 line
1.8.5.3
Quoted 18 lines · Ben Dooks
Enable the usbphy node so that the phy driver is available.
Signed-off-by Ben Dooks <[email protected]>Reviewed-by Ian Molton <[email protected]>---
Cc: [email protected]
Cc: [email protected]
Cc: Magnus Damm <[email protected]>
Cc: Simon Horman <[email protected]>--- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/r8a7790-lager.dts +0
-0
arch/arm/boot/dts/r8a7790-lager.dts line 135
Quoted 7 lines
arch/arm/boot/dts/r8a7790-lager.dts +4
-0@@ -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