projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325141a
)
sandbox: dtsi: add buttons
author
Philippe Reynes
<philippe.reynes@softathome.com>
Fri, 24 Jul 2020 16:19:48 +0000
(18:19 +0200)
committer
Simon Glass
<sjg@chromium.org>
Wed, 29 Jul 2020 01:30:39 +0000
(19:30 -0600)
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>
arch/sandbox/dts/sandbox.dtsi
patch
|
blob
|
history
diff --git
a/arch/sandbox/dts/sandbox.dtsi
b/arch/sandbox/dts/sandbox.dtsi
index
e1f68cd
..
c76ecc0
100644
(file)
--- 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;