mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00:00
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>
This commit is contained in:
parent
5198258d10
commit
b19c48dc34
@ -65,13 +65,26 @@
|
|||||||
gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
|
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 {
|
&pinctrl {
|
||||||
state_default: pinctrl0 {
|
state_default: pinctrl0 {
|
||||||
gpio {
|
gpio {
|
||||||
ralink,group = "p0led_an", "p1led_an", "p2led_an",
|
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";
|
ralink,function = "gpio";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -192,6 +192,8 @@ CONFIG_RALINK=y
|
|||||||
# CONFIG_RCU_STALL_COMMON is not set
|
# CONFIG_RCU_STALL_COMMON is not set
|
||||||
CONFIG_REGMAP=y
|
CONFIG_REGMAP=y
|
||||||
CONFIG_REGMAP_MMIO=y
|
CONFIG_REGMAP_MMIO=y
|
||||||
|
CONFIG_REGULATOR=y
|
||||||
|
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
||||||
CONFIG_RESET_CONTROLLER=y
|
CONFIG_RESET_CONTROLLER=y
|
||||||
# CONFIG_SCHED_INFO is not set
|
# CONFIG_SCHED_INFO is not set
|
||||||
# CONFIG_SCSI_DMA is not set
|
# CONFIG_SCSI_DMA is not set
|
||||||
|
Loading…
Reference in New Issue
Block a user