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 #