Skip to content

Commit

Permalink
ath79: ZTE MF286[,A,R]: fix WLAN LED mapping
Browse files Browse the repository at this point in the history
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: <openwrt#9941>
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
  • Loading branch information
Leo-PL authored and chunkeey committed Jun 5, 2022
1 parent b4184c6 commit 82b5984
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions target/linux/ath79/dts/qca9563_zte_mf286.dtsi
Expand Up @@ -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,
Expand Down Expand Up @@ -137,6 +139,12 @@
};
};

&pinmux {
enable_wlan_led_gpio: pinmux_wlan_led_gpio {
pinctrl-single,bits = <0x10 0x0 0xff000000>;
};
};

&wmac {
status = "okay";
};
Expand Down

0 comments on commit 82b5984

Please sign in to comment.