From: Heinrich Schuchardt Date: Mon, 14 Sep 2020 15:02:05 +0000 (-0400) Subject: riscv: add DT binding for BOOT button on Maix board X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=2b5a719fc6c7794c9423443311cedad534413ff9;p=u-boot.git 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 Reviewed-by: Sean Anderson Signed-off-by: Sean Anderson Reviewed-by: Rick Chen --- diff --git a/arch/riscv/dts/k210-maix-bit.dts b/arch/riscv/dts/k210-maix-bit.dts index e840e04ada..c2beec602c 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 +#include / { model = "Sipeed Maix Bit 2.0"; @@ -33,6 +34,16 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + + boot { + label = "BOOT"; + linux,code = ; + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + }; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,format = "i2s";