ath79: ZTE MF286[,A,R]: fix WLAN LED mapping
authorLech Perczak <lech.perczak@gmail.com>
Mon, 23 May 2022 17:51:54 +0000 (19:51 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jun 2022 20:28:59 +0000 (22:28 +0200)
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>
(cherry picked from commit 82b59846368db85ad1470396d95e7c20157288eb)

target/linux/ath79/dts/qca9563_zte_mf286.dtsi

index 3013daa4701e0cb0e4ca2c5770e7daacbdd5c300..f7cbbb85bd731dff993752861f4c25f93528e5da 100644 (file)
@@ -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,
        };
 };
 
+&pinmux {
+       enable_wlan_led_gpio: pinmux_wlan_led_gpio {
+               pinctrl-single,bits = <0x10 0x0 0xff000000>;
+       };
+};
+
 &wmac {
        status = "okay";
 };