public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0
@ 2018-06-05  8:52 Neil Armstrong
  2018-06-05 19:09 ` Martin Blumenstingl
  2018-07-02  8:43 ` Neil Armstrong
  0 siblings, 2 replies; 5+ messages in thread
From: Neil Armstrong @ 2018-06-05  8:52 UTC (permalink / raw)
  To: khilman; +Cc: Neil Armstrong, linux-amlogic, linux-arm-kernel, linux-kernel

Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the
devices on the P212 Reference Design based boards.

Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB controller")
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
index 0cfd701..a1b3101 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
@@ -189,3 +189,10 @@
 &usb0 {
 	status = "okay";
 };
+
+&usb2_phy0 {
+	/*
+	 * HDMI_5V is also used as supply for the USB VBUS.
+	 */
+	phy-supply = <&hdmi_5v>;
+};
-- 
2.7.4

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

* Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0
  2018-06-05  8:52 [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0 Neil Armstrong
@ 2018-06-05 19:09 ` Martin Blumenstingl
  2018-06-08 23:53   ` Kevin Hilman
  2018-07-02  8:43 ` Neil Armstrong
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Blumenstingl @ 2018-06-05 19:09 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: khilman, linux-amlogic, linux-kernel, linux-arm-kernel

On Tue, Jun 5, 2018 at 10:52 AM, Neil Armstrong <narmstrong@baylibre.com> wrote:
> Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the
> devices on the P212 Reference Design based boards.
>
> Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB controller")
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

out of curiosity: I guess you tested this using u-boot?
if anyone else is interested: the only other way to test this is by
ensuring that the hdmi_5v regulator is turned off by Linux (by
removing it from the HDMI nodes) and then plugging in a USB device ->
if it doesn't get VBUS then the hdmi_5v regulator is the cause (and
needs to be kept/turned on by the USB code, just like Neil's patch
does)

> ---
>  arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> index 0cfd701..a1b3101 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> @@ -189,3 +189,10 @@
>  &usb0 {
>         status = "okay";
>  };
> +
> +&usb2_phy0 {
> +       /*
> +        * HDMI_5V is also used as supply for the USB VBUS.
> +        */
> +       phy-supply = <&hdmi_5v>;
> +};
> --
> 2.7.4
>
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0
  2018-06-05 19:09 ` Martin Blumenstingl
@ 2018-06-08 23:53   ` Kevin Hilman
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2018-06-08 23:53 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: Neil Armstrong, linux-amlogic, linux-kernel, linux-arm-kernel

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> On Tue, Jun 5, 2018 at 10:52 AM, Neil Armstrong <narmstrong@baylibre.com> wrote:
>> Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the
>> devices on the P212 Reference Design based boards.
>>
>> Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB controller")
>> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
>
> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

Applied to v4.18/fixes (will queue for v4.18-rc).

Kevin

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

* Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0
  2018-06-05  8:52 [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0 Neil Armstrong
  2018-06-05 19:09 ` Martin Blumenstingl
@ 2018-07-02  8:43 ` Neil Armstrong
  2018-07-05 17:05   ` Greg KH
  1 sibling, 1 reply; 5+ messages in thread
From: Neil Armstrong @ 2018-07-02  8:43 UTC (permalink / raw)
  To: stable; +Cc: linux-amlogic, linux-arm-kernel, linux-kernel

Hi Stable Maintainers,

On 05/06/2018 10:52, Neil Armstrong wrote:
> Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the
> devices on the P212 Reference Design based boards.
> 
> Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB controller")
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---

This commit hit Linus master with commit sha d511b3e4087eedbe11c7496c396432b8b7c2d7d9
Can this fix be applied to 4.17 stable kernel ?

Thanks,
Neil

>  arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> index 0cfd701..a1b3101 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
> @@ -189,3 +189,10 @@
>  &usb0 {
>  	status = "okay";
>  };
> +
> +&usb2_phy0 {
> +	/*
> +	 * HDMI_5V is also used as supply for the USB VBUS.
> +	 */
> +	phy-supply = <&hdmi_5v>;
> +};
> 


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

* Re: [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0
  2018-07-02  8:43 ` Neil Armstrong
@ 2018-07-05 17:05   ` Greg KH
  0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2018-07-05 17:05 UTC (permalink / raw)
  To: Neil Armstrong; +Cc: stable, linux-amlogic, linux-arm-kernel, linux-kernel

On Mon, Jul 02, 2018 at 10:43:19AM +0200, Neil Armstrong wrote:
> Hi Stable Maintainers,
> 
> On 05/06/2018 10:52, Neil Armstrong wrote:
> > Like LibreTech-CC, the USB0 needs the 5V regulator to be enabled to power the
> > devices on the P212 Reference Design based boards.
> > 
> > Fixes: b9f07cb4f41f ("ARM64: dts: meson-gxl-s905x-p212: enable the USB controller")
> > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> > ---
> 
> This commit hit Linus master with commit sha d511b3e4087eedbe11c7496c396432b8b7c2d7d9
> Can this fix be applied to 4.17 stable kernel ?

Now applied, thanks.

greg k-h

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

end of thread, other threads:[~2018-07-05 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-05  8:52 [PATCH] ARM64: dts: meson-gxl-s905x-p212: Add phy-supply for usb0 Neil Armstrong
2018-06-05 19:09 ` Martin Blumenstingl
2018-06-08 23:53   ` Kevin Hilman
2018-07-02  8:43 ` Neil Armstrong
2018-07-05 17:05   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox