]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sandbox: Add some test LEDs
authorSimon Glass <sjg@chromium.org>
Mon, 10 Apr 2017 17:34:51 +0000 (11:34 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Apr 2017 01:38:57 +0000 (19:38 -0600)
Add some LEDs to the standard sandbox device tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ziping Chen <techping.chan@gmail.com>
arch/sandbox/dts/sandbox.dts
cmd/legacy_led.c [moved from cmd/led.c with 100% similarity]

index 20614646f7fa608feec1f1e207c9e705b64a7212..40f423da2560920c443d7b193cb432d96ae1d7de 100644 (file)
                yres = <768>;
        };
 
+       leds {
+               compatible = "gpio-leds";
+
+               iracibble {
+                       gpios = <&gpio_a 1 0>;
+                       label = "sandbox:red";
+               };
+
+               martinet {
+                       gpios = <&gpio_a 2 0>;
+                       label = "sandbox:green";
+               };
+       };
+
        pci: pci-controller {
                compatible = "sandbox,pci";
                device_type = "pci";
similarity index 100%
rename from cmd/led.c
rename to cmd/legacy_led.c