diff options
author | Simon Glass <sjg@chromium.org> | 2015-07-06 12:54:34 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:32 -0600 |
commit | 3c43fba3d240a5d7b6042bfb834c274a8921ebd8 (patch) | |
tree | b31c4d5ec04ad38ba87bce734c21be273384dd7e /arch/sandbox/dts/test.dts | |
parent | fb8a5ffc77597a99678dbd5077f29ec9df54bdbe (diff) | |
download | u-boot-imx-3c43fba3d240a5d7b6042bfb834c274a8921ebd8.zip u-boot-imx-3c43fba3d240a5d7b6042bfb834c274a8921ebd8.tar.gz u-boot-imx-3c43fba3d240a5d7b6042bfb834c274a8921ebd8.tar.bz2 |
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/dts/test.dts')
-rw-r--r-- | arch/sandbox/dts/test.dts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 2077e85..4b98618 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"; }; |