diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2016-03-07 16:30:24 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-10 09:39:12 +0100 |
commit | 550c66ee8e8ba9d68ba6c198540528b3734d7dc8 (patch) | |
tree | 943b40ef863e13840d538f16c3bcd0eaf6551897 /arch/mips/dts | |
parent | 8ad12bb13200bc13137de4cebae89b8755e2bbbc (diff) | |
download | barebox-550c66ee8e8ba9d68ba6c198540528b3734d7dc8.tar.gz barebox-550c66ee8e8ba9d68ba6c198540528b3734d7dc8.tar.xz |
MIPS: black-swift: enable GPIO key
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/dts')
-rw-r--r-- | arch/mips/dts/black-swift.dts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/dts/black-swift.dts b/arch/mips/dts/black-swift.dts index b0fa3b0c84..d19c381df9 100644 --- a/arch/mips/dts/black-swift.dts +++ b/arch/mips/dts/black-swift.dts @@ -2,6 +2,7 @@ #include "ar9331.dtsi" #include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> / { model = "Black Swift"; @@ -15,6 +16,16 @@ spiflash = &spiflash; }; + buttons { + compatible = "gpio-keys"; + + s1 { + label = "S1"; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; + }; + }; + leds { compatible = "gpio-leds"; |