ipq40xx: use PHY to control USB GPIO
authorRosen Penev <rosenp@gmail.com>
Tue, 3 Dec 2024 21:37:21 +0000 (13:37 -0800)
committerJohn Crispin <john@phrozen.org>
Thu, 12 Dec 2024 18:54:09 +0000 (19:54 +0100)
Instead of using regulator-output to manually control USB GPIO, let the
PHY handle it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17221
Signed-off-by: John Crispin <john@phrozen.org>
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-wia3300-20.dts
target/linux/ipq40xx/generic/config-default

index 644329419d97a95b4d7f5da10735c2c81e70b0a4..85ad382223df53a723dd33ca651030e6c606977e 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 4999ad36223cb14cda762d99aca93fa1821c0614..bd9876a0b64f9f17b238efc4ba90e9283dae887e 100644 (file)
@@ -3,5 +3,4 @@ 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