aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicente Bergas <vicencb@gmail.com>2018-09-10 12:10:29 -0400
committerHeiko Stuebner <heiko@sntech.de>2018-09-10 13:16:26 -0400
commit78f26da3ffbce0ea3692a89fe3f5487cb8dda068 (patch)
tree533283d46326701090b716aaaadf372503da468e
parentef05bcb60c1a8841e38c91923ba998181117a87c (diff)
arm64: dts: rockchip: Add type-c port supply on rk3399-sapphire board
Add the gpio-controlled regulator and add the supply to the otg-port of phy0. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
index 1fb474740882..a531cd6c2e83 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi
@@ -114,6 +114,16 @@
114 vin-supply = <&vcc_sys>; 114 vin-supply = <&vcc_sys>;
115 }; 115 };
116 116
117 vcc5v0_typec0: vcc5v0-typec0-regulator {
118 compatible = "regulator-fixed";
119 enable-active-high;
120 gpio = <&gpio2 RK_PA0 GPIO_ACTIVE_HIGH>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&vcc5v0_typec0_en>;
123 regulator-name = "vcc5v0_typec0";
124 vin-supply = <&vcc_sys>;
125 };
126
117 vcc_sys: vcc-sys { 127 vcc_sys: vcc-sys {
118 compatible = "regulator-fixed"; 128 compatible = "regulator-fixed";
119 regulator-name = "vcc_sys"; 129 regulator-name = "vcc_sys";
@@ -469,6 +479,10 @@
469 rockchip,pins = 479 rockchip,pins =
470 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 480 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
471 }; 481 };
482 vcc5v0_typec0_en: vcc5v0-typec0-en {
483 rockchip,pins =
484 <2 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
485 };
472 }; 486 };
473}; 487};
474 488
@@ -526,6 +540,7 @@
526 status = "okay"; 540 status = "okay";
527 541
528 u2phy0_otg: otg-port { 542 u2phy0_otg: otg-port {
543 phy-supply = <&vcc5v0_typec0>;
529 status = "okay"; 544 status = "okay";
530 }; 545 };
531 546