mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
rockchip: dts: rk3399: control vbus of typec by fixed regulator
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>
This commit is contained in:
parent
863456ade3
commit
f6f47c2ee1
1 changed files with 14 additions and 2 deletions
|
@ -60,6 +60,18 @@
|
|||
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>;
|
||||
|
@ -163,7 +175,7 @@
|
|||
};
|
||||
|
||||
&dwc3_typec0 {
|
||||
rockchip,vbus-gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
|
||||
vbus-supply = <&vcc5v0_typec0>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
@ -176,7 +188,7 @@
|
|||
};
|
||||
|
||||
&dwc3_typec1 {
|
||||
rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
|
||||
vbus-supply = <&vcc5v0_typec1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue