arm64: dts: allwinner: h6: add USB Vbus regulator for Pine H64
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 4 Oct 2018 12:28:50 +0000 (20:28 +0800)
committerChen-Yu Tsai <wens@csie.org>
Thu, 15 Nov 2018 07:54:39 +0000 (15:54 +0800)
The 5V output of the USB ports on Pine H64 is controlled via a GPIO.

Add the USB Vbus regulator device tree node.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts

index 59e5464..9f127c6 100644 (file)
                        gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
                };
        };
+
+       reg_usb_vbus: vbus {
+               compatible = "regulator-fixed";
+               regulator-name = "usb-vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               startup-delay-us = <100000>;
+               gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &emac {