]> git.sur5r.net Git - u-boot/commitdiff
rockchip: dts: rk3399: control vbus of typec by fixed regulator
authorMeng Dongyang <daniel.meng@rock-chips.com>
Wed, 28 Jun 2017 11:26:32 +0000 (19:26 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 11 Jul 2017 10:13:49 +0000 (12:13 +0200)
Add fixed regulator for the port of typec0 and typec1 to control vbus
instead of gpio.

Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3399-evb.dts

index f5af75bff448addbd7e8891254314ec3825eebf3..bff00c328386fe43793a9524e36c176ae9e4a6cb 100644 (file)
                gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
        };
 
+       vcc5v0_typec0: vcc5v0-typec0-en {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc5v0_typec0";
+               gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+       };
+
+       vcc5v0_typec1: vcc5v0-typec1-en {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc5v0_typec1";
+               gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+       };
+
        clkin_gmac: external-gmac-clock {
                compatible = "fixed-clock";
                clock-frequency = <125000000>;
 };
 
 &dwc3_typec0 {
-       rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&vcc5v0_typec0>;
        status = "okay";
 };
 
 };
 
 &dwc3_typec1 {
-       rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
+       vbus-supply = <&vcc5v0_typec1>;
        status = "okay";
 };