diff options
author | David Bauer <mail@david-bauer.net> | 2019-03-28 20:58:04 +0100 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-04-06 19:14:06 +0200 |
commit | b19c48dc34fce44445b8ad0027220d63870fd280 (patch) | |
tree | d4b3d57103e1d5c1c42b6b20081d927a6059123a /target/linux/ramips | |
parent | 5198258d10ad0ffd0c5bb1606a09b85606fddc0d (diff) | |
download | upstream-b19c48dc34fce44445b8ad0027220d63870fd280.tar.gz upstream-b19c48dc34fce44445b8ad0027220d63870fd280.tar.bz2 upstream-b19c48dc34fce44445b8ad0027220d63870fd280.zip |
ramips: enable R6120 USB power
Enable the USB power for the Netgear R6120. Otherwise, no power is
supplied to an attached USB device.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/dts/R6120.dts | 15 | ||||
-rw-r--r-- | target/linux/ramips/mt76x8/config-4.14 | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/target/linux/ramips/dts/R6120.dts b/target/linux/ramips/dts/R6120.dts index 07b1a165d3..d263c7824b 100644 --- a/target/linux/ramips/dts/R6120.dts +++ b/target/linux/ramips/dts/R6120.dts @@ -65,13 +65,26 @@ gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; }; }; + + usb-regulator { + compatible = "regulator-fixed"; + + regulator-name = "USB-power"; + gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + + regulator-always-on; + }; }; &pinctrl { state_default: pinctrl0 { gpio { ralink,group = "p0led_an", "p1led_an", "p2led_an", - "p3led_an", "p4led_an", "wdt", "wled_an"; + "p3led_an", "p4led_an", "wdt", + "wled_an", "uart1"; ralink,function = "gpio"; }; }; diff --git a/target/linux/ramips/mt76x8/config-4.14 b/target/linux/ramips/mt76x8/config-4.14 index 62e51cbe43..5bcb948585 100644 --- a/target/linux/ramips/mt76x8/config-4.14 +++ b/target/linux/ramips/mt76x8/config-4.14 @@ -192,6 +192,8 @@ CONFIG_RALINK=y # CONFIG_RCU_STALL_COMMON is not set CONFIG_REGMAP=y CONFIG_REGMAP_MMIO=y +CONFIG_REGULATOR=y +CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_RESET_CONTROLLER=y # CONFIG_SCHED_INFO is not set # CONFIG_SCSI_DMA is not set |