[PATCH 1/1] arm: Fix bootled on Excito B3 boards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On a normal boot Excito B3 boards will set the LED color to purple,
however when booting a kernel with the kirkwood-b3 device tree blob
attached the LED will switch off. There is a default-state parameter
wit value "off" included for the green gpio-led, but this is already
the default.

Add default-state parameter to blue and red gpio-leds and set their
value to "on".

Note: when creating a kernel for a USB device the default-state for
the gpio-leds should be reversed, i.e. the LED should be green while
the kernel is being loaded.

Verified on my own Excito B3

Signed-off-by: Gordon Bos <gordon@xxxxxxxxxxxxxxx>
---
 arch/arm/boot/dts/kirkwood-b3.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/kirkwood-b3.dts b/arch/arm/boot/dts/kirkwood-b3.dts
index c9247f8..f24e4fe 100644
--- a/arch/arm/boot/dts/kirkwood-b3.dts
+++ b/arch/arm/boot/dts/kirkwood-b3.dts
@@ -141,11 +141,13 @@
 		error_led {
 			label = "bubba3:red:error";
 			gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
 		};
 
 		active_led {
 			label = "bubba3:blue:active";
 			gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
+			default-state = "on";
 		};
 	};
 
-- 
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux