diff options
author | Patrick Bruenn <p.bruenn@beckhoff.com> | 2018-04-11 11:16:29 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-05-08 09:07:33 -0400 |
commit | 274fb461f4792431b3777874472c8bd6149e6168 (patch) | |
tree | feda58bae1096bec0f08ed2b546a99542d87dabd /arch/sandbox | |
parent | bc882f5d5c7b4d6ed5e927bf838863af43c786e7 (diff) |
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.dts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 3c25cb79ef1..683b1970e0a 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 { |