Skip to content

Commit

Permalink
Revert "ipq40xx: use PHY to control USB GPIO"
Browse files Browse the repository at this point in the history
This reverts commit 3bd2cee.

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 <[email protected]>
Link: openwrt/openwrt#17339
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
DragonBluep authored and robimarko committed Dec 23, 2024
1 parent 363f52d commit 0de59fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
};
};

output-usb-power {
compatible = "regulator-output";
vout-supply = <&reg_usb>;
};

reg_usb: regulator-usb {
compatible = "regulator-fixed";

Expand Down Expand Up @@ -414,8 +419,6 @@

&usb2_hs_phy {
status = "okay";

phy-supply = <&reg_usb>;
};

&watchdog {
Expand Down
1 change: 1 addition & 0 deletions target/linux/ipq40xx/generic/config-default
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0de59fb

Please sign in to comment.