[Letux-kernel] [PATCH 2/3] MIPS: DTS: CI20: add EHCI/OHCI vbus

H. Nikolaus Schaller hns at goldelico.com
Fri Sep 25 22:53:10 CEST 2020


Signed-off-by: H. Nikolaus Schaller <hns at goldelico.com>
---
 arch/mips/boot/dts/ingenic/ci20.dts | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts
index 93b66bc36991a..1ef7cb376468a 100644
--- a/arch/mips/boot/dts/ingenic/ci20.dts
+++ b/arch/mips/boot/dts/ingenic/ci20.dts
@@ -103,6 +103,23 @@ ir: ir {
 		gpios = <&gpe 3 GPIO_ACTIVE_LOW>;
 	};
 
+	usb_power: fixedregulator at 3 {
+		compatible = "regulator-fixed";
+		regulator-name = "usb_power";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&gpf 15 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+
+		/*
+		 * boot-on is required along with always-on as the
+		 * regulator framework doesn't enable the regulator
+		 * if boot-on is not there.
+		 */
+//		regulator-always-on;
+		regulator-boot-on;
+	};
+
 	wlan0_power: fixedregulator at 1 {
 		compatible = "regulator-fixed";
 		regulator-name = "wlan0_power";
@@ -111,6 +128,14 @@ wlan0_power: fixedregulator at 1 {
 	};
 };
 
+&usb_phy {
+	vcc-supply = <&usb_power>;
+};
+
+&otg_phy {
+	vcc-supply = <&usb_power>;
+};
+
 &ext {
 	clock-frequency = <48000000>;
 };
-- 
2.26.2



More information about the Letux-kernel mailing list