adc_keypad: update interface to access adc and add sysfs interface
authorxingyu.chen <xingyu.chen@amlogic.com>
Wed, 28 Jun 2017 06:17:12 +0000 (14:17 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 29 Jun 2017 04:06:14 +0000 (21:06 -0700)
commitc9ce8a78a095d59c77bc05a7e31d1e450e6175e3
tree4d9a07e5ece17b5613562ec37cf5d8dcbb753d52
parent9165ab2e1c72ca7b3184d01a5511d343117e8245
adc_keypad: update interface to access adc and add sysfs interface

PD#146614: adc_keypad: update interface to access adc and add sysfs interface

1.use sysfs interface to set dynamic key
inquire key map:
cat /sys/devices/platform/adc_keypad/table

set key:
echo [name]:[code]:[channel]:[value]:[tolerance] >
/sys/devices/platform/adc_keypad/table

2. use the consumer interface of the IIO to access sar adc

Change-Id: I0357e84720340b0fee4baa882f41f0aa7f36a9a1
Signed-off-by: xingyu.chen <xingyu.chen@amlogic.com>
arch/arm64/boot/dts/amlogic/axg_s400.dts
arch/arm64/boot/dts/amlogic/axg_s420.dts
arch/arm64/configs/meson64_defconfig
drivers/amlogic/input/keyboard/adc_keypad.c
include/linux/amlogic/adc_keypad.h