[PATCH v2 4/8] sandbox: dtsi: add buttons
Philippe Reynes
philippe.reynes at softathome.com
Fri Jul 17 14:22:23 CEST 2020
Adds two buttons on sandbox so button framework may be tested.
Reviewed-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com>
---
Changelog:
v2:
- no change
arch/sandbox/dts/sandbox.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index e1f68cd..bd87dac 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -15,6 +15,20 @@
#sound-dai-cells = <1>;
};
+ buttons {
+ compatible = "button-gpio";
+
+ summer {
+ gpios = <&gpio_a 3 0>;
+ label = "summer";
+ };
+
+ christmas {
+ gpios = <&gpio_a 4 0>;
+ label = "christmas";
+ };
+ };
+
gpio_a: gpios at 0 {
u-boot,dm-pre-reloc;
gpio-controller;
--
2.7.4
More information about the U-Boot
mailing list