summaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-07-06 12:54:34 -0600
committerSimon Glass <sjg@chromium.org>2015-07-21 17:39:32 -0600
commit3c43fba3d240a5d7b6042bfb834c274a8921ebd8 (patch)
treeb31c4d5ec04ad38ba87bce734c21be273384dd7e /arch/sandbox
parentfb8a5ffc77597a99678dbd5077f29ec9df54bdbe (diff)
downloadu-boot-3c43fba3d240a5d7b6042bfb834c274a8921ebd8.tar.gz
dm: test: Add a test for the LED uclass
Add a test to confirm that we can adjust LEDs using the led_gpio driver. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 2077e851a6..4b9861835e 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -180,6 +180,20 @@
};
};
+ leds {
+ compatible = "gpio-leds";
+
+ iracibble {
+ gpios = <&gpio_a 1 0>;
+ label = "sandbox:red";
+ };
+
+ martinet {
+ gpios = <&gpio_a 2 0>;
+ label = "sandbox:green";
+ };
+ };
+
mmc {
compatible = "sandbox,mmc";
};