diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2020-07-24 18:19:48 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-28 19:30:39 -0600 |
commit | bd3e4882c7f4e9c3bec7b4482756b5f14064ee64 (patch) | |
tree | 333c08a6feef89bc039276a52c4e78546758ec87 | |
parent | 325141a6eab0d21c928a4c36aa9b6873bb672dab (diff) |
sandbox: dtsi: add buttons
Adds two buttons on sandbox so button framework may be tested.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
-rw-r--r-- | arch/sandbox/dts/sandbox.dtsi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi index e1f68cd552..c76ecc013c 100644 --- a/arch/sandbox/dts/sandbox.dtsi +++ b/arch/sandbox/dts/sandbox.dtsi @@ -15,6 +15,20 @@ #sound-dai-cells = <1>; }; + buttons { + compatible = "gpio-keys"; + + summer { + gpios = <&gpio_a 3 0>; + label = "summer"; + }; + + christmas { + gpios = <&gpio_a 4 0>; + label = "christmas"; + }; + }; + gpio_a: gpios@0 { u-boot,dm-pre-reloc; gpio-controller; |