From patchwork Mon Jul 13 12:56:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe REYNES X-Patchwork-Id: 241414 List-Id: U-Boot discussion From: philippe.reynes at softathome.com (Philippe Reynes) Date: Mon, 13 Jul 2020 14:56:09 +0200 Subject: [PATCH 4/7] sandbox: dtsi: add buttons In-Reply-To: <1594644972-2588-1-git-send-email-philippe.reynes@softathome.com> References: <1594644972-2588-1-git-send-email-philippe.reynes@softathome.com> Message-ID: <1594644972-2588-4-git-send-email-philippe.reynes@softathome.com> Adds two buttons on sandbox so button framework may be tested. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- 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;