Преглед изворни кода

ipq40xx: use PHY to control USB GPIO

Instead of using regulator-output to manually control USB GPIO, let the
PHY handle it.

Signed-off-by: Rosen Penev <[email protected]>

Link: https://github.com/openwrt/openwrt/pull/17221
Signed-off-by: John Crispin <[email protected]>
Rosen Penev пре 1 година
родитељ
комит
3bd2cee9bf

+ 2 - 5
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-wia3300-20.dts

@@ -68,11 +68,6 @@
 		};
 		};
 	};
 	};
 
 
-	output-usb-power {
-		compatible = "regulator-output";
-		vout-supply = <&reg_usb>;
-	};
-
 	reg_usb: regulator-usb {
 	reg_usb: regulator-usb {
 		compatible = "regulator-fixed";
 		compatible = "regulator-fixed";
 
 
@@ -419,6 +414,8 @@
 
 
 &usb2_hs_phy {
 &usb2_hs_phy {
 	status = "okay";
 	status = "okay";
+
+	phy-supply = <&reg_usb>;
 };
 };
 
 
 &watchdog {
 &watchdog {

+ 0 - 1
target/linux/ipq40xx/generic/config-default

@@ -3,5 +3,4 @@ CONFIG_MTD_UBI_BEB_LIMIT=20
 CONFIG_MTD_UBI_BLOCK=y
 CONFIG_MTD_UBI_BLOCK=y
 CONFIG_MTD_UBI_NVMEM=y
 CONFIG_MTD_UBI_NVMEM=y
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
-CONFIG_REGULATOR_USERSPACE_CONSUMER=y
 CONFIG_UBIFS_FS=y
 CONFIG_UBIFS_FS=y