Revert "ipq40xx: use PHY to control USB GPIO"
authorShiji Yang <yangshiji66@qq.com>
Sun, 22 Dec 2024 12:13:05 +0000 (20:13 +0800)
committerRobert Marko <robimarko@gmail.com>
Mon, 23 Dec 2024 15:47:41 +0000 (16:47 +0100)
This reverts commit 3bd2cee9bf85f01732e05e0c8fb070fb18c74095.

Based on my testing, we are unable to control USB power supply
through some third-party tools (e.g. uhubctl) or sysfs in userspace.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Link: https://github.com/openwrt/openwrt/pull/17339
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-wia3300-20.dts
target/linux/ipq40xx/generic/config-default

index 85ad382223df53a723dd33ca651030e6c606977e..644329419d97a95b4d7f5da10735c2c81e70b0a4 100644 (file)
                };
        };
 
+       output-usb-power {
+               compatible = "regulator-output";
+               vout-supply = <&reg_usb>;
+       };
+
        reg_usb: regulator-usb {
                compatible = "regulator-fixed";
 
 
 &usb2_hs_phy {
        status = "okay";
-
-       phy-supply = <&reg_usb>;
 };
 
 &watchdog {
index bd9876a0b64f9f17b238efc4ba90e9283dae887e..4999ad36223cb14cda762d99aca93fa1821c0614 100644 (file)
@@ -3,4 +3,5 @@ CONFIG_MTD_UBI_BEB_LIMIT=20
 CONFIG_MTD_UBI_BLOCK=y
 CONFIG_MTD_UBI_NVMEM=y
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
+CONFIG_REGULATOR_USERSPACE_CONSUMER=y
 CONFIG_UBIFS_FS=y