MLK-17837-01 input: misc: rpmsg_input: add rpmsg virtual sensor driver
authorFugang Duan <fugang.duan@nxp.com>
Fri, 16 Mar 2018 06:07:05 +0000 (14:07 +0800)
committerHaibo Chen <haibo.chen@nxp.com>
Thu, 12 Apr 2018 10:45:53 +0000 (18:45 +0800)
commit3dc621b8cba3ab69f99144aa0a1aad287a398175
treea2161f81f83c2d50716844552660ef59c3f9f797
parentec182da23c8e424f89ad99a6b1d1e166e9d38eca
MLK-17837-01 input: misc: rpmsg_input: add rpmsg virtual sensor driver

NXP i.MX7ULP EVK boards all sensors connect with M4 core, A core
has to conmunicate with sensors by virtual io bus like rpmsg bus.
The driver implement the virtual sensor input driver to configure
sensors active/idle/delay actions and report the sensors' event to
user space.

Supply below sysfs for user to enable/disable detector and counter,
set poll delay:
/sys/class/misc/step_counter/enable
/sys/class/misc/step_detector/enable
/sys/class/misc/step_counter/poll_delay

Reviewed-by: Elven Wang <elven.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Documentation/devicetree/bindings/input/imx-rpmsg-input.txt [new file with mode: 0644]
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/rpmsg_input.c [new file with mode: 0644]
drivers/rpmsg/imx_rpmsg.c
include/linux/imx_rpmsg.h