[PATCH 2/2] arm64: dts: power on CN9130-CRB USB port on plug-in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The USB port on the CN9130 reference board did not register any devices
being plugged in, despite CONFIG_PINCTRL_MCP23S08=y.  According to the
schematics, it turns out the regulator is actually controlled by a gpio.

Signed-off-by: Joachim Wiberg <troglobit@xxxxxxxxx>
---
 arch/arm64/boot/dts/marvell/cn9130-crb.dtsi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi b/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi
index 893a9be704ba..f7426b0a4117 100644
--- a/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi
+++ b/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi
@@ -37,12 +37,14 @@ ap0_reg_mmc_vccq: ap0_mmc_vccq@0 {
 	};
 
 	cp0_reg_usb3_vbus1: cp0_usb3_vbus@1 {
-		compatible = "regulator-fixed";
+		compatible = "regulator-gpio";
 		regulator-name = "cp0-xhci1-vbus";
 		regulator-min-microvolt = <5000000>;
 		regulator-max-microvolt = <5000000>;
 		enable-active-high;
 		gpio = <&expander0 8 GPIO_ACTIVE_HIGH>;
+		states = <5000000 0x1
+			  0000000 0x0>;
 	};
 
 	cp0_usb3_0_phy0: cp0_usb3_phy0 {
-- 
2.25.1




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux