aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorPatrick Bruenn <p.bruenn@beckhoff.com>2018-04-11 11:16:29 +0200
committerTom Rini <trini@konsulko.com>2018-05-08 09:07:33 -0400
commit274fb461f4792431b3777874472c8bd6149e6168 (patch)
treefeda58bae1096bec0f08ed2b546a99542d87dabd /arch/sandbox
parentbc882f5d5c7b4d6ed5e927bf838863af43c786e7 (diff)
downloadu-boot-midas-274fb461f4792431b3777874472c8bd6149e6168.tar.gz
u-boot-midas-274fb461f4792431b3777874472c8bd6149e6168.tar.bz2
u-boot-midas-274fb461f4792431b3777874472c8bd6149e6168.zip
dm: led: add testcase for "default-state" property
Add two more gpio-leds to sandbox test device tree with default-state property set to "on"/"off". Add dm_test_led_default_state() to check that these new LED's are set to LEDST_ON and LEDST_OFF. dm: led: add testcase for "default-state" property Add two more gpio-leds to sandbox test device tree with default-state property set to "on"/"off". Add dm_test_led_default_state() to check that these new LED's are set to LEDST_ON and LEDST_OFF. Signed-off-by: Patrick Bruenn <p.bruenn@beckhoff.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 3c25cb79ef..683b1970e0 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -254,6 +254,18 @@
gpios = <&gpio_a 2 0>;
label = "sandbox:green";
};
+
+ default_on {
+ gpios = <&gpio_a 5 0>;
+ label = "sandbox:default_on";
+ default-state = "on";
+ };
+
+ default_off {
+ gpios = <&gpio_a 6 0>;
+ label = "sandbox:default_off";
+ default-state = "off";
+ };
};
mbox: mbox {