[PATCH v1 00/11] Used onboard HUB to reset and add power to hub
Anand Moon
linux.amoon at gmail.com
Wed Dec 28 02:03:09 PST 2022
Amlogic board use gpio-hog to reset the USB hub.
so using onboard hub we could reset the USB hub and
also enable power to the USB hub.
On Odroid C1, it seem this feature is not working as expected
so just included the patch for testing. Maybe we can drop this.
$ lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
On Odroid C2, C4, N2 is seem to work as expected.
$ lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
Any inputs?
Thanks
-Anand
Anand Moon (11):
dt-bindings: usb: Add device id for Genesys Logic hub controller
ARM: dts: amlogic: Used onboard usb hub reset to enable usb hub
arm64: dts: amlogic: Used onboard usb hub reset on odroid c2
arm64: dts: amlogic: Used onboard usb hub reset on odroid n2
usb: misc: onboard_usb_hub: add Genesys Logic GL852G-OHG hub support
usb: misc: onboard_usb_hub: add Genesys Logic GL3523-QFN76 hub support
vendor-prefixes: Add VIA Labs, Inc.
dt-bindings: usb: Add binding for Via lab VL817Q7 hub controller
arm64: dts: meson-sm1-odroid-c4: Used onboard usb hub reset on odroid
c4
usb: misc: onboard_usb_hub: add VIA LAB VL817Q7 hub support
arm64: defconfig: Enable USB onboard HUB driver
.../bindings/usb/genesys,gl850g.yaml | 2 +
.../bindings/usb/vialab,vl817q7.yaml | 47 +++++++++++++++++++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
arch/arm/boot/dts/meson8b-odroidc1.dts | 40 +++++++++++-----
.../dts/amlogic/meson-g12b-odroid-n2.dtsi | 26 +++++-----
.../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 29 ++++++------
.../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 25 +++++-----
arch/arm64/configs/defconfig | 1 +
drivers/usb/misc/onboard_usb_hub.c | 4 ++
drivers/usb/misc/onboard_usb_hub.h | 7 +++
10 files changed, 130 insertions(+), 53 deletions(-)
create mode 100644 Documentation/devicetree/bindings/usb/vialab,vl817q7.yaml
--
2.38.1
More information about the linux-amlogic
mailing list