aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2022-05-23 19:51:54 +0200
committerChristian Lamparter <chunkeey@gmail.com>2022-06-05 21:19:32 +0200
commit82b59846368db85ad1470396d95e7c20157288eb (patch)
treeabd1b74a178b2517f78ef9b73d28774a59d2927a /target
parentb4184c666c13fdf08ecd3abf340538d593e9084c (diff)
downloadupstream-82b59846368db85ad1470396d95e7c20157288eb.tar.gz
upstream-82b59846368db85ad1470396d95e7c20157288eb.tar.bz2
upstream-82b59846368db85ad1470396d95e7c20157288eb.zip
ath79: ZTE MF286[,A,R]: fix WLAN LED mapping
The default configuration of pinctrl for GPIO19 set by U-boot was not a GPIO, but an alternate function, which prevented the GPIO hog from working. Set GPIO19 into GPIO mode to allow the hog to work, then the ath10k LED output can control the state of actual LED properly. Link: <https://github.com/openwrt/openwrt/pull/9941> Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/dts/qca9563_zte_mf286.dtsi8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9563_zte_mf286.dtsi b/target/linux/ath79/dts/qca9563_zte_mf286.dtsi
index 3013daa470..f7cbbb85bd 100644
--- a/target/linux/ath79/dts/qca9563_zte_mf286.dtsi
+++ b/target/linux/ath79/dts/qca9563_zte_mf286.dtsi
@@ -18,6 +18,8 @@
leds {
compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&enable_wlan_led_gpio>;
/* Hidden SMD LED below signal strength LEDs.
* Visible through slits underside of the case,
@@ -137,6 +139,12 @@
};
};
+&pinmux {
+ enable_wlan_led_gpio: pinmux_wlan_led_gpio {
+ pinctrl-single,bits = <0x10 0x0 0xff000000>;
+ };
+};
+
&wmac {
status = "okay";
};