Browse Source

ARM: ux500: Enable the user LED on Snowball via Device Tree

This patch enables and illuminates the user_led on the
Snowball low-cost development board using DT. It also
removes initialisation carried out from platform code.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Lee Jones 13 years ago
parent
commit
7fd975fabe
2 changed files with 2 additions and 1 deletions
  1. 1 0
      arch/arm/boot/dts/snowball.dts
  2. 1 1
      arch/arm/mach-ux500/board-mop500.c

+ 1 - 0
arch/arm/boot/dts/snowball.dts

@@ -77,6 +77,7 @@
 		used-led {
 			label = "user_led";
 			gpios = <&gpio4 14 0x4>;
+			default-state = "on";
 		};
 	};
 

+ 1 - 1
arch/arm/mach-ux500/board-mop500.c

@@ -819,7 +819,7 @@ static void __init u8500_init_machine(void)
 	} else if (of_machine_is_compatible("calaosystems,snowball-a9500")) {
 		/*
 		 * Devices to be DT:ed:
-		 *   snowball_led_dev   = todo
+		 *   snowball_led_dev   = done
 		 *   snowball_key_dev   = todo
 		 *   snowball_sbnet_dev = done
 		 *   ab8500_device      = done