keypad: gpio key drive optimization
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Thu, 28 Jun 2018 07:54:02 +0000 (15:54 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Thu, 2 Aug 2018 07:22:00 +0000 (00:22 -0700)
commitca474b95ed43801d9454f7ae7631abf03ed220b5
treefaab1f8c6fd8ac159935de53e8e3a9fce7aca724
parent6c02942d0f920795a38df0baa3dea7eb6c55301c
keypad: gpio key drive optimization

PD#169209: keypad: gpio key drive optimization

1.replace the old interface gpio_ with gpiod_.
2.add irq detection mode,can be configured as
 interrupt mode or polling mode through DTS.
3.add keys to eliminate jitter.
4.remove useless code.

Change-Id: I81ef3cd0061e36faa10f58932588ff5031208b25
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
16 files changed:
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_1g.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u200_drm_buildroot.dts
arch/arm64/boot/dts/amlogic/g12a_s905d2_u220.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400_buildroot.dts
arch/arm64/boot/dts/amlogic/gxl_p212_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p212_1g_hd.dts
arch/arm64/boot/dts/amlogic/gxl_p212_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p230_2g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_1g.dts
arch/arm64/boot/dts/amlogic/gxl_p241_v2-1g.dts
drivers/amlogic/input/keyboard/gpio_keypad.c
drivers/amlogic/input/keyboard/gpio_keypad_old.c [new file with mode: 0644]