Message ID | 1594644972-2588-4-git-send-email-philippe.reynes@softathome.com |
---|---|
State | Accepted |
Commit | bd3e4882c7f4e9c3bec7b4482756b5f14064ee64 |
Headers | show |
Series | [1/7] dm: button: add an uclass for button | expand |
On Mon, 13 Jul 2020 at 06:56, Philippe Reynes <philippe.reynes at softathome.com> wrote: > > Adds two buttons on sandbox so button framework may be tested. > > Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com> > --- > arch/sandbox/dts/sandbox.dtsi | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > Reviewed-by: Simon Glass <sjg at chromium.org> But don't you want this in test.dtsi too if it is for testing?
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;
Adds two buttons on sandbox so button framework may be tested. Signed-off-by: Philippe Reynes <philippe.reynes at softathome.com> --- arch/sandbox/dts/sandbox.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)