From 0ebe9c9f6952d8f3a0f45c7b9d03a0ab089aca25 Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Fri, 16 Mar 2018 14:07:05 +0800 Subject: 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 Signed-off-by: Fugang Duan --- Documentation/devicetree/bindings/input/imx-rpmsg-input.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/imx-rpmsg-input.txt (limited to 'Documentation/devicetree') diff --git a/Documentation/devicetree/bindings/input/imx-rpmsg-input.txt b/Documentation/devicetree/bindings/input/imx-rpmsg-input.txt new file mode 100644 index 000000000000..397d1957e6fd --- /dev/null +++ b/Documentation/devicetree/bindings/input/imx-rpmsg-input.txt @@ -0,0 +1,12 @@ +Device-Tree bindings for inputc/rpmsg_input.c input driver over +rpmsg. For NXP i.MX7ULP EVK platform, all sensors connect with +M4, A core access sensor should communicate with M4 core by rpmsg +bus. + +Required properties: + - compatible = "fsl,rpmsg-input"; + +Examples: + rpmsg_sensor: rpmsg-sensor { + compatible = "fsl,rpmsg-input"; + }; -- cgit v1.2.3