On Thu, May 16, 2019 at 1:47 AM Andre Przywara <andre.przyw...@arm.com> wrote:
>
> The first USB controller on the A64 SoC shares a PHY with the OTG
> controller. Reportedly to avoid problems with the VBUS regulator under
> Linux, we don't link OHCI0/EHCI0 to the USB PHY in the A64 .dtsi file.
>
> However on boards which can't use peripheral mode (because they have an
> always-on VBUS supply on an USB-A socket) we don't need this trick, and
> can properly connect host controller 0 to the PHY 0.
>
> Amend the Pine64 and SoPine/LTS .dts to reflect this. This enables the
> upper USB port in U-Boot on those boards.
>
> Signed-off-by: Andre Przywara <andre.przyw...@arm.com>
> ---
>  arch/arm/dts/sun50i-a64-pine64.dts           | 5 ++++-
>  arch/arm/dts/sun50i-a64-sopine-baseboard.dts | 5 ++++-
>  2 files changed, 8 insertions(+), 2 deletions(-)

Are these changes going to go upstream to Linux too? If not it's
probably best to add it to a u-boot.dtsi so the changes don't get lost
when the DT files are re-synced from Linux. Same with the similar
patches for the H6 boards.

Peter

> diff --git a/arch/arm/dts/sun50i-a64-pine64.dts 
> b/arch/arm/dts/sun50i-a64-pine64.dts
> index c077b6c1f4..523a4d5bff 100644
> --- a/arch/arm/dts/sun50i-a64-pine64.dts
> +++ b/arch/arm/dts/sun50i-a64-pine64.dts
> @@ -80,6 +80,8 @@
>  };
>
>  &ehci0 {
> +       phys = <&usbphy 0>;
> +       phy-names = "usb";
>         status = "okay";
>  };
>
> @@ -136,6 +138,8 @@
>  };
>
>  &ohci0 {
> +       phys = <&usbphy 0>;
> +       phy-names = "usb";
>         status = "okay";
>  };
>
> @@ -301,7 +305,6 @@
>
>  &usb_otg {
>         dr_mode = "host";
> -       status = "okay";
>  };
>
>  &usbphy {
> diff --git a/arch/arm/dts/sun50i-a64-sopine-baseboard.dts 
> b/arch/arm/dts/sun50i-a64-sopine-baseboard.dts
> index 53fcc9098d..1986897177 100644
> --- a/arch/arm/dts/sun50i-a64-sopine-baseboard.dts
> +++ b/arch/arm/dts/sun50i-a64-sopine-baseboard.dts
> @@ -85,6 +85,8 @@
>  };
>
>  &ehci0 {
> +       phys = <&usbphy 0>;
> +       phy-names = "usb";
>         status = "okay";
>  };
>
> @@ -131,6 +133,8 @@
>  };
>
>  &ohci0 {
> +       phys = <&usbphy 0>;
> +       phy-names = "usb";
>         status = "okay";
>  };
>
> @@ -172,7 +176,6 @@
>
>  &usb_otg {
>         dr_mode = "host";
> -       status = "okay";
>  };
>
>  &usbphy {
> --
> 2.14.5
>
> _______________________________________________
> U-Boot mailing list
> u-b...@lists.denx.de
> https://lists.denx.de/listinfo/u-boot

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/CALeDE9PQ4XGUeSr2D0rY%3D4ueBtYJHHV2mnz0WotQPCXvhtTeUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to