mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-25 13:28:08 +00:00
ath79: pineapple-nano: use regulator for USB GPIO
The chipidea USB2 driver used on this platform supports controlling GPIO through regulators. This is the upstream friendly solution. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17356 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
517b9c1cdc
commit
5aa996b06d
@ -29,12 +29,6 @@
|
||||
gpio-export,name = "usb-alarm";
|
||||
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
usb-power {
|
||||
gpio-export,name = "usb-power";
|
||||
gpio-export,output = <0>;
|
||||
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
@ -57,6 +51,14 @@
|
||||
linux,default-trigger = "phy0tpt";
|
||||
};
|
||||
};
|
||||
|
||||
reg_power_usb: regulator {
|
||||
compatible = "regulator-fixed";
|
||||
regulator-name = "power_usb";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <5000000>;
|
||||
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
ð0 {
|
||||
@ -123,6 +125,8 @@
|
||||
|
||||
&usb {
|
||||
status = "okay";
|
||||
|
||||
vbus-supply = <®_power_usb>;
|
||||
};
|
||||
|
||||
&usb_phy {
|
||||
|
Loading…
x
Reference in New Issue
Block a user