From a67da4259fe76474b8e53e02875e1f516f588ce9 Mon Sep 17 00:00:00 2001 From: Luke Go Date: Tue, 10 Jan 2017 16:58:54 +0900 Subject: [PATCH] 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 --- arch/arm/boot/dts/meson8b_odroidc.dts | 29 +++++++++++++++++++++++++++ arch/arm/configs/odroidc_defconfig | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/meson8b_odroidc.dts b/arch/arm/boot/dts/meson8b_odroidc.dts index 517b390093c2..2be97b49fc23 100755 --- a/arch/arm/boot/dts/meson8b_odroidc.dts +++ b/arch/arm/boot/dts/meson8b_odroidc.dts @@ -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 */ diff --git a/arch/arm/configs/odroidc_defconfig b/arch/arm/configs/odroidc_defconfig index f4c9a53acf2f..66fa07f41d5c 100755 --- a/arch/arm/configs/odroidc_defconfig +++ b/arch/arm/configs/odroidc_defconfig @@ -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 #