aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/dts
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-14 11:02:05 -0400
committerTom Rini <trini@konsulko.com>2020-10-08 11:42:36 -0400
commit2b5a719fc6c7794c9423443311cedad534413ff9 (patch)
treef690634531feb1bc25dcf5f0be52180b3cae6b7b /arch/riscv/dts
parentbe3076e66d035b216478851e2e9e741bb62ebbdf (diff)
downloadu-boot-2b5a719fc6c7794c9423443311cedad534413ff9.zip
u-boot-2b5a719fc6c7794c9423443311cedad534413ff9.tar.gz
u-boot-2b5a719fc6c7794c9423443311cedad534413ff9.tar.bz2
riscv: add DT binding for BOOT button on Maix board
Add a device tree binding for the BOOT button on the Maix board. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sean Anderson <seanga2@gmail.com> Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'arch/riscv/dts')
-rw-r--r--arch/riscv/dts/k210-maix-bit.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/dts/k210-maix-bit.dts b/arch/riscv/dts/k210-maix-bit.dts
index e840e04..c2beec6 100644
--- a/arch/riscv/dts/k210-maix-bit.dts
+++ b/arch/riscv/dts/k210-maix-bit.dts
@@ -8,6 +8,7 @@
#include "k210.dtsi"
#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
/ {
model = "Sipeed Maix Bit 2.0";
@@ -33,6 +34,16 @@
};
};
+ gpio-keys {
+ compatible = "gpio-keys";
+
+ boot {
+ label = "BOOT";
+ linux,code = <BTN_0>;
+ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+ };
+ };
+
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";