Skip to content

Commit

Permalink
lantiq: use regulator for USB GPIO
Browse files Browse the repository at this point in the history
One is already present. The other one can be implemented in terms of the
PHY.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt#17250
Signed-off-by: John Crispin <[email protected]>
  • Loading branch information
neheb authored and blogic committed Dec 13, 2024
1 parent 225b84d commit 508bf7c
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,25 @@
gpio-export,output = <1>;
gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
};
usb {
gpio-export,name = "usb";
gpio-export,output = <1>;
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
};
wifi {
gpio-export,name = "wifi";
gpio-export,output = <1>;
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
};
};

usb_phy: regulator-usb-phy {
compatible = "regulator-fixed";

regulator-name = "USB_PHY";

regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
enable-active-high;
};

usb_vbus: regulator-usb-vbus {
compatible = "regulator-fixed";

Expand Down Expand Up @@ -166,6 +173,7 @@

&usb_phy0 {
status = "okay";
phy-supply = <&usb_phy>;
};


Expand Down

0 comments on commit 508bf7c

Please sign in to comment.