mirror of https://gitee.com/openkylin/linux.git
ARM: shmobile: Add DTS gpio-keys support for SW2 on Lager
Add DTS gpio-keys support for SW2 on the Lager board. This makes the DT code match the legacy board code. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
parent
6d879a097a
commit
f7dcd382a8
|
@ -12,6 +12,7 @@
|
|||
/dts-v1/;
|
||||
#include "r8a7790.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "Lager";
|
||||
|
@ -36,6 +37,39 @@ lbsc {
|
|||
#size-cells = <1>;
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
button@1 {
|
||||
linux,code = <KEY_1>;
|
||||
label = "SW2-1";
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <20>;
|
||||
gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
button@2 {
|
||||
linux,code = <KEY_2>;
|
||||
label = "SW2-2";
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <20>;
|
||||
gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
button@3 {
|
||||
linux,code = <KEY_3>;
|
||||
label = "SW2-3";
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <20>;
|
||||
gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
button@4 {
|
||||
linux,code = <KEY_4>;
|
||||
label = "SW2-4";
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <20>;
|
||||
gpios = <&gpio1 28 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led6 {
|
||||
|
|
Loading…
Reference in New Issue