mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
a6f7268dc7
Before: Kernel reported "usb_vbus: disabling" and the USB was not providing power After: USB power is switched on, peripheral is powered from the device Signed-off-by: Tom Stöveken <tom@naaa.de> [squash and tidy up] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
29 lines
544 B
Plaintext
29 lines
544 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "qca953x_tplink_tl-wr810n.dtsi"
|
|
|
|
/ {
|
|
compatible = "tplink,tl-wr810n-v1", "qca,qca9531";
|
|
model = "TP-Link TL-WR810N v1";
|
|
|
|
reg_usb_vbus: reg_usb_vbus {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "usb_vbus";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
&usb0 {
|
|
status = "okay";
|
|
|
|
vbus-supply = <®_usb_vbus>;
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|