Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: NSP: MX6X: correct LED function types

Currently, the amber LED will remain always on. This is due to a
misinterpretation of the LED sub-node properties, where-by "default-state"
was used to indicate the initial state when powering on the device. When in
use, however, this resulted in the amber LED always being on. Instead change
this to only indicate a fault state.

Assign LED_FUNCTION_POWER to the green PWM LED.

These changes bring the MX64/65 in line with the MR32's devicetree.

Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

authored by

Matthew Hagan and committed by
Florian Fainelli
482c85c7 66848aff

+3 -5
+1 -2
arch/arm/boot/dts/bcm958625-meraki-alamo.dtsi
··· 57 57 58 58 led-4 { 59 59 /* amber:power */ 60 - function = LED_FUNCTION_POWER; 60 + function = LED_FUNCTION_FAULT; 61 61 color = <LED_COLOR_ID_AMBER>; 62 62 gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>; 63 - default-state = "on"; 64 63 }; 65 64 66 65 led-5 {
+1 -2
arch/arm/boot/dts/bcm958625-meraki-kingpin.dtsi
··· 106 106 107 107 led-a { 108 108 /* amber:power */ 109 - function = LED_FUNCTION_POWER; 109 + function = LED_FUNCTION_FAULT; 110 110 color = <LED_COLOR_ID_AMBER>; 111 111 gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; 112 - default-state = "on"; 113 112 }; 114 113 115 114 led-b {
+1 -1
arch/arm/boot/dts/bcm958625-meraki-mx6x-common.dtsi
··· 22 22 }; 23 23 24 24 led-2 { 25 - function = LED_FUNCTION_INDICATOR; 25 + function = LED_FUNCTION_POWER; 26 26 color = <LED_COLOR_ID_GREEN>; 27 27 pwms = <&pwm 2 50000>; 28 28 max-brightness = <255>;