ath79: fix pinmux for ar933x devices
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 <p.wassi@gmx.at> [changed desired pinctrl register value from 0x1f to proper 0xf8] Signed-off-by: Chuanhong Guo <gch981213@gmail.com> [renamed pinmux name to switch_led_disable_pins to make purpose more clear] Signed-off-by: Petr Štetiar <ynezz@true.cz>
This commit is contained in:
		| @@ -74,8 +74,8 @@ | |||||||
| 					pinctrl-single,bits = <0x0 0x1 0x1>; | 					pinctrl-single,bits = <0x0 0x1 0x1>; | ||||||
| 				}; | 				}; | ||||||
|  |  | ||||||
| 				switch_led_pins: pinmux_switch_led_pins { | 				switch_led_disable_pins: pinmux_switch_led_disable_pins { | ||||||
| 					pinctrl-single,bits = <0x0 0x1f 0xf8>; | 					pinctrl-single,bits = <0x0 0xf8 0xf8>; | ||||||
| 				}; | 				}; | ||||||
| 			}; | 			}; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,6 +16,8 @@ | |||||||
|  |  | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
|  | 		pinctrl-names = "default"; | ||||||
|  | 		pinctrl-0 = <&switch_led_disable_pins>; | ||||||
|  |  | ||||||
| 		wlan { | 		wlan { | ||||||
| 			label = "dragino2:red:wlan"; | 			label = "dragino2:red:wlan"; | ||||||
|   | |||||||
| @@ -26,6 +26,8 @@ | |||||||
|  |  | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
|  | 		pinctrl-names = "default"; | ||||||
|  | 		pinctrl-0 = <&switch_led_disable_pins>; | ||||||
|  |  | ||||||
| 		modbus { | 		modbus { | ||||||
| 			label = "eg200:red:modbus"; | 			label = "eg200:red:modbus"; | ||||||
|   | |||||||
| @@ -17,6 +17,8 @@ | |||||||
|  |  | ||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
|  | 		pinctrl-names = "default"; | ||||||
|  | 		pinctrl-0 = <&switch_led_disable_pins>; | ||||||
|  |  | ||||||
| 		wlan { | 		wlan { | ||||||
| 			label = "tp-link:green:wlan"; | 			label = "tp-link:green:wlan"; | ||||||
|   | |||||||
| @@ -40,7 +40,7 @@ | |||||||
| 	leds { | 	leds { | ||||||
| 		compatible = "gpio-leds"; | 		compatible = "gpio-leds"; | ||||||
| 		pinctrl-names = "default"; | 		pinctrl-names = "default"; | ||||||
| 		pinctrl-0 = <&switch_led_pins>; | 		pinctrl-0 = <&switch_led_disable_pins>; | ||||||
|  |  | ||||||
| 		lan1 { | 		lan1 { | ||||||
| 			label = "tp-link:green:lan1"; | 			label = "tp-link:green:lan1"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Paul Wassi
					Paul Wassi