Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: rockchip: enable usb hub on the radxa rock3 model a

One USB 2.0 host port on the Radxa ROCK3 Model A is connected to the
SoC via a hub. Introduce a voltage regulator to enable this USB hub.

Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220425133502.405512-3-michael.riesch@wolfvision.net
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Michael Riesch and committed by
Heiko Stuebner
160f126b 254a1f6a

+14
+14
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
··· 97 97 vin-supply = <&vcc5v0_usb>; 98 98 }; 99 99 100 + vcc5v0_usb_hub: vcc5v0-usb-hub-regulator { 101 + compatible = "regulator-fixed"; 102 + enable-active-high; 103 + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; 104 + pinctrl-names = "default"; 105 + pinctrl-0 = <&vcc5v0_usb_hub_en>; 106 + regulator-name = "vcc5v0_usb_hub"; 107 + regulator-always-on; 108 + vin-supply = <&vcc5v0_usb>; 109 + }; 110 + 100 111 vcc5v0_usb_otg: vcc5v0-usb-otg-regulator { 101 112 compatible = "regulator-fixed"; 102 113 enable-active-high; ··· 446 435 usb { 447 436 vcc5v0_usb_host_en: vcc5v0_usb_host_en { 448 437 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 438 + }; 439 + vcc5v0_usb_hub_en: vcc5v0_usb_hub_en { 440 + rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 449 441 }; 450 442 vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { 451 443 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;