ath79: ar9330: fix switch_led_disable_pins reg value
authorPetr Štetiar <ynezz@true.cz>
Thu, 16 May 2019 10:10:03 +0000 (12:10 +0200)
committerPetr Štetiar <ynezz@true.cz>
Fri, 17 May 2019 19:41:42 +0000 (21:41 +0200)
In commit e9652e1696d9 ("ath79: fix pinmux for ar933x devices") I've
wrongly changed desired register value to 0xf8 although it should've
been set to 0x0.

0xf8 value sets bits 3-7 (ETH_SWITCH_LEDx_EN) to 1 which actually
enables ethernet switch LEDs, so 0x0 is correct value in order to use
the pins as GPIO.

Fixes: e9652e1696d9 ("ath79: fix pinmux for ar933x devices")
Reported-by: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/ath79/dts/ar9330.dtsi

index ca8d69c37156e126c1ea606dfe891df89650face..6a122ba84061ebe0ab2f7b02c7f2f87e9e2ff1cf 100644 (file)
@@ -75,7 +75,7 @@
                                };
 
                                switch_led_disable_pins: pinmux_switch_led_disable_pins {
-                                       pinctrl-single,bits = <0x0 0xf8 0xf8>;
+                                       pinctrl-single,bits = <0x0 0x0 0xf8>;
                                };
                        };