All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board
@ 2017-09-20 14:40 Emiliano Ingrassia
  2017-09-22  7:01 ` Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Emiliano Ingrassia @ 2017-09-20 14:40 UTC (permalink / raw)
  To: linus-amlogic

This patch enables the USB Host controller (USB1) and the relative USB2 PHY
on Odroid-C1/C1+ board.

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
index e50f1a1fdbc7..9ff6ca4e20d0 100644
--- a/arch/arm/boot/dts/meson8b-odroidc1.dts
+++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
@@ -76,3 +76,26 @@
 	pinctrl-0 = <&uart_ao_a_pins>;
 	pinctrl-names = "default";
 };
+
+&gpio_ao {
+	/*
+	 * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal
+	 * to be turned high in order to be detected by the USB Controller.
+	 * This signal should be handled by a USB specific power sequence
+	 * in order to reset the Hub when USB bus is powered down.
+	 */
+	usb-hub {
+		gpio-hog;
+		gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
+		output-high;
+		line-name = "usb-hub-reset";
+	};
+};
+
+&usb1_phy {
+	status = "okay";
+};
+
+&usb1 {
+	status = "okay";
+};
-- 
2.14.1

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

* [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board
  2017-09-20 14:40 [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board Emiliano Ingrassia
@ 2017-09-22  7:01 ` Martin Blumenstingl
  2017-09-28 16:44 ` Linus Lüssing
  2017-10-06 22:26 ` [PATCH] " Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Blumenstingl @ 2017-09-22  7:01 UTC (permalink / raw)
  To: linus-amlogic

On Wed, Sep 20, 2017 at 4:40 PM, Emiliano Ingrassia
<ingrassia@epigenesys.com> wrote:
> This patch enables the USB Host controller (USB1) and the relative USB2 PHY
> on Odroid-C1/C1+ board.
>
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
I don't have any Odroid hardware to play with, but this looks good to me:

Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

> ---
>  arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>
> diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
> index e50f1a1fdbc7..9ff6ca4e20d0 100644
> --- a/arch/arm/boot/dts/meson8b-odroidc1.dts
> +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
> @@ -76,3 +76,26 @@
>         pinctrl-0 = <&uart_ao_a_pins>;
>         pinctrl-names = "default";
>  };
> +
> +&gpio_ao {
> +       /*
> +        * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal
> +        * to be turned high in order to be detected by the USB Controller.
> +        * This signal should be handled by a USB specific power sequence
> +        * in order to reset the Hub when USB bus is powered down.
> +        */
> +       usb-hub {
> +               gpio-hog;
> +               gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
> +               output-high;
> +               line-name = "usb-hub-reset";
> +       };
> +};
> +
> +&usb1_phy {
> +       status = "okay";
> +};
> +
> +&usb1 {
> +       status = "okay";
> +};
> --
> 2.14.1
>
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

* ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board
  2017-09-20 14:40 [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board Emiliano Ingrassia
  2017-09-22  7:01 ` Martin Blumenstingl
@ 2017-09-28 16:44 ` Linus Lüssing
  2017-10-06 22:26 ` [PATCH] " Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Linus Lüssing @ 2017-09-28 16:44 UTC (permalink / raw)
  To: linus-amlogic

> This patch enables the USB Host controller (USB1) and the relative USB2 PHY
> on Odroid-C1/C1+ board.
> 
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>

As the freezes seems to be caused by something else and stress-ng works
fine for me now on an Odroid C1+ (at least with the reserved
memory regions):

Tested-by: Linus L?ssing <linus.luessing@c0d3.blue>

Cheers

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

* [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board
  2017-09-20 14:40 [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board Emiliano Ingrassia
  2017-09-22  7:01 ` Martin Blumenstingl
  2017-09-28 16:44 ` Linus Lüssing
@ 2017-10-06 22:26 ` Kevin Hilman
  2 siblings, 0 replies; 4+ messages in thread
From: Kevin Hilman @ 2017-10-06 22:26 UTC (permalink / raw)
  To: linus-amlogic

Emiliano Ingrassia <ingrassia@epigenesys.com> writes:

> This patch enables the USB Host controller (USB1) and the relative USB2 PHY
> on Odroid-C1/C1+ board.
>
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>

Appled to v4.15/dt,

Thanks,

Kevin

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

end of thread, other threads:[~2017-10-06 22:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-20 14:40 [PATCH] ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board Emiliano Ingrassia
2017-09-22  7:01 ` Martin Blumenstingl
2017-09-28 16:44 ` Linus Lüssing
2017-10-06 22:26 ` [PATCH] " Kevin Hilman

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.