Revert "ipq40xx: use PHY to control USB GPIO"

This reverts commit 3bd2cee9bf.

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>
This commit is contained in:
Shiji Yang 2024-12-22 20:13:05 +08:00
parent 33e23e8922
commit 51a8222eb2
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -3,4 +3,5 @@ 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