From e9652e1696d94e57f96a06658da931fbac7c44c4 Mon Sep 17 00:00:00 2001
From: Paul Wassi
Date: Mon, 31 Dec 2018 21:51:47 +0100
Subject: ath79: fix pinmux for ar933x devices
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Properly disable the SoC's internal Switch LEDs on the pinmux.
Devices that previously called ath79_gpio_function_disable for
the switch LEDs, just need to reference switch_led_pins in the
pinctrl-0 property of the gpio-leds node.
Signed-off-by: Paul Wassi
[changed desired pinctrl register value from 0x1f to proper 0xf8]
Signed-off-by: Chuanhong Guo
[renamed pinmux name to switch_led_disable_pins to make purpose more clear]
Signed-off-by: Petr Štetiar
---
target/linux/ath79/dts/ar9331_dragino_ms14.dts | 2 ++
1 file changed, 2 insertions(+)
(limited to 'target/linux/ath79/dts/ar9331_dragino_ms14.dts')
diff --git a/target/linux/ath79/dts/ar9331_dragino_ms14.dts b/target/linux/ath79/dts/ar9331_dragino_ms14.dts
index 713fe4103a..6d0fcbcedd 100644
--- a/target/linux/ath79/dts/ar9331_dragino_ms14.dts
+++ b/target/linux/ath79/dts/ar9331_dragino_ms14.dts
@@ -16,6 +16,8 @@
leds {
compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&switch_led_disable_pins>;
wlan {
label = "dragino2:red:wlan";
--
cgit v1.2.3