All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support
@ 2019-05-16  1:26 Andre Przywara
  2019-05-16  1:26 ` [U-Boot] [PATCH 1/6] sunxi: move SUNXI_GPIO to Kconfig Andre Przywara
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Andre Przywara @ 2019-05-16  1:26 UTC (permalink / raw)
  To: u-boot

Hi,

this series enables USB support on the H6 boards. This is mostly just
adding some missing pieces here and there, the actual controller and PHY
are very similar to the previous ones, if not identical.
This is for the 2.0 ports only at the moment, USB 3.0 will be done
later (started porting Icenowy's Linux driver).
The Pine H64 shares a similar problem as the Pine64+ boards regarding
the upper USB port. To enable this port, we need the first patch
from the series [1] fixing this issue on the A64 boards.

Patch 1 is a drive-by patch to bring SUNXI_GPIO to Kconfig, as this was
lingering in one of my branches for a while.
Patch 2 enables GPIO support for the H6, as this is needed for the Pine
H64 to enable the VBUS regulator.
Patch 3 adds the clock and reset gates mappings for the USB controller and
the PHY, the values are taken from the manual and verified against
Linux.
Patch 4 adds some code to the PHY driver to skip over not implemented
PHYs, as the H6 uses a PHY0/PHY3 combination in the DT.
Patch 5 then eventually enables USB in the existing defconfigs.
Patch 6 adds the .dts fixes required to get the upper USB port to work
on the Pine H64.

Clément, can you please verify that this works for the Beelink box?
I guess the USB 2.0 port is probably the OTG one, so this setup would
look somewhat similar to the PineH64, which would allow you to copy
the USB DT nodes from there.

Cheers,
Andre.

[1] https://lists.denx.de/pipermail/u-boot/2019-May/369520.html

Andre Przywara (6):
  sunxi: move SUNXI_GPIO to Kconfig
  sunxi: gpio: Enable support for H6 pin controller
  sunxi: clocks: Add H6 USB clock gates and resets
  sunxi: phy: Add USB PHY support for Allwinner H6
  sunxi: H6: Enable USB for existing boards
  sunxi: Pine64: DTS: enable USB PHY 0 for HCI0

 arch/arm/Kconfig                      |  1 +
 arch/arm/dts/sun50i-h6-pine-h64.dts   |  5 ++++-
 arch/arm/mach-sunxi/Kconfig           |  1 +
 configs/beelink_gs1_defconfig         |  2 ++
 configs/orangepi_lite2_defconfig      |  2 ++
 configs/orangepi_one_plus_defconfig   |  2 ++
 configs/pine_h64_defconfig            |  3 +++
 drivers/clk/sunxi/clk_h6.c            | 29 +++++++++++++++++++++++++++++
 drivers/gpio/Kconfig                  |  6 ++++++
 drivers/gpio/sunxi_gpio.c             |  2 ++
 drivers/phy/allwinner/phy-sun4i-usb.c | 20 ++++++++++++++++++++
 include/configs/sunxi-common.h        |  3 ---
 scripts/config_whitelist.txt          |  1 -
 13 files changed, 72 insertions(+), 5 deletions(-)

-- 
2.14.5

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

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

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-16  1:26 [U-Boot] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 1/6] sunxi: move SUNXI_GPIO to Kconfig Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 2/6] sunxi: gpio: Enable support for H6 pin controller Andre Przywara
2019-05-16  2:34   ` [U-Boot] [linux-sunxi] " Icenowy Zheng
2019-05-16 10:06     ` Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 3/6] sunxi: clocks: Add H6 USB clock gates and resets Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 4/6] sunxi: phy: Add USB PHY support for Allwinner H6 Andre Przywara
2019-06-18 17:14   ` Clément Péron
2019-05-16  1:26 ` [U-Boot] [PATCH 5/6] sunxi: H6: Enable USB for existing boards Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 6/6] sunxi: Pine64: DTS: enable USB PHY 0 for HCI0 Andre Przywara
2019-06-18 17:13   ` Clément Péron
2019-06-18 17:17     ` [U-Boot] [linux-sunxi] " Jernej Škrabec
2019-06-18 17:37       ` Chen-Yu Tsai
2019-06-19  1:03       ` André Przywara
2019-06-18  7:50 ` [U-Boot] [linux-sunxi] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support Jagan Teki
2019-06-18 17:08   ` Clément Péron
2019-06-18 17:22     ` Clément Péron
2019-06-19  1:03       ` André Przywara
2019-06-19  8:57         ` Clément Péron
2019-06-19 10:03           ` Andre Przywara
2019-06-20 18:01             ` Clément Péron
2019-06-20 21:17               ` André Przywara
2019-06-26 22:25                 ` Clément Péron
2019-06-19  1:14   ` André Przywara

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.