From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Mon, 14 Sep 2020 11:02:05 -0400 Subject: [PATCH v6 11/12] riscv: add DT binding for BOOT button on Maix board In-Reply-To: <20200914150206.90002-1-seanga2@gmail.com> References: <20200914150206.90002-1-seanga2@gmail.com> Message-ID: <20200914150206.90002-12-seanga2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Heinrich Schuchardt 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 --- This commit was previously submitted on its own as https://patchwork.ozlabs.org/project/uboot/patch/20200902201159.98034-1-xypron.glpk at gmx.de/ The following is the original commit note: Together with [PATCH 1/1] cmd/button: return button status https://lists.denx.de/pipermail/u-boot/2020-September/425221.html we can use the button status to decide which program to boot. Changes in v6: - New arch/riscv/dts/k210-maix-bit.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"; -- 2.28.0