ODROID-C: Add GPIO-KEYS drivers

Pin Number | Net Name
11         | GPIOY.BIT8
13         | GPIOX.BIT19
19         | GPIOX.BIT10
21         | GPIOX.BIT8

Change-Id: I347b5031f222321f4c0d6219c0ec53ba02b0691a
This commit is contained in:
Luke Go
2017-01-10 16:58:54 +09:00
parent cfdcce7c80
commit a67da4259f
2 changed files with 30 additions and 1 deletions

View File

@@ -1005,6 +1005,35 @@
status = "okay";
};
gpio_keys_polled {
compatible =
"gpio-keys-polled";
#address-clls = <1>;
#size-cells = <0>;
poll-interval = <100>;
autorepeat;
button@1 {
label = "GPIO Key F7";
linux,code = <65>;
gpios = "GPIOY_8";
};
button@2 {
label = "GPIO Key F8";
linux,code = <66>;
gpios = "GPIOX_19";
};
button@3 {
label = "GPIO Key F9";
linux,code = <67>;
gpios = "GPIOX_10";
};
button@4 {
label = "GPIO Key F10";
linux,code = <68>;
gpios = "GPIOX_9";
};
};
leds {
compatible = "gpio-leds";
/* Blue LED */

View File

@@ -297,7 +297,7 @@ CONFIG_MESON_SUSPEND_FIRMWARE_BASE=0x04f00000
# CONFIG_MESON_TRUSTZONE is not set
# CONFIG_MESON_CUSTOM_BOARD_SUPPORT is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
CONFIG_KEYBOARD_GPIO_POLLED=y
# CONFIG_PLAT_SPEAR is not set
#