build/patch/u-boot/u-boot-rockchip64-v2022.04/board-pinebook-pro-0001-usb-regulator.patch

70 lines
1.6 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nadia Holmquist Pedersen <nadia@nhp.sh>
Date: Sat, 20 Jun 2020 01:41:22 +0200
Subject: Add regulator needed for usage of USB
---
arch/arm/dts/rk3399-pinebook-pro.dts | 21 +++++++++-
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/arch/arm/dts/rk3399-pinebook-pro.dts b/arch/arm/dts/rk3399-pinebook-pro.dts
index 2b5f001ff4..05aa7ce0ff 100644
--- a/arch/arm/dts/rk3399-pinebook-pro.dts
+++ b/arch/arm/dts/rk3399-pinebook-pro.dts
@@ -220,6 +220,16 @@
};
};
+ vcc3v3_s0: vcc3v3-s0-regulator {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcdvcc_en>;
+ regulator-name = "vcc3v3_s0";
+ regulator-always-on;
+ };
+
/* 5 V USB power supply */
vcc5v0_usb: pa_5v: vcc5v0-usb-regulator {
compatible = "regulator-fixed";
@@ -623,8 +633,8 @@
};
};
- vcc3v3_s0: SWITCH_REG2 {
- regulator-name = "vcc3v3_s0";
+ unused: SWITCH_REG2 {
+ regulator-name = "SWITCH_REG2";
regulator-always-on;
regulator-boot-on;
@@ -902,6 +912,11 @@
rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
+ /* Shared between LCD and usb */
+ lcdvcc_en: lcdvcc-en {
+ rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+
vcc5v0_host_en_pin: vcc5v0-host-en-pin {
rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
};
@@ -1084,10 +1099,12 @@
};
&usb_host1_ehci {
+ phy-supply = <&vcc3v3_s0>;
status = "okay";
};
&usb_host1_ohci {
+ phy-supply = <&vcc3v3_s0>;
status = "okay";
};
--
Armbian