]> git.baikalelectronics.ru Git - kernel.git/commit
Input: sun4i-ts - add support for temperature sensor
authorHans de Goede <hdegoede@redhat.com>
Wed, 14 May 2014 18:22:09 +0000 (11:22 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 May 2014 23:40:06 +0000 (16:40 -0700)
commitc8bda6f9411b4c0daf78cefa27f85822200a8758
tree868ecf353dd23426271b88dc39a16c29f1d4d2a2
parentfdc4505cff31ef46ceff10f6dca940d2c0fca120
Input: sun4i-ts - add support for temperature sensor

The sun4i resisitive touchscreen controller also comes with a built-in
temperature sensor. This commit adds support for it.

This commit also introduces a new "ts-attached" device-tree property,
when this is not set, the input part of the driver won't register. This way
the internal temperature sensor can be used to measure the SoC temperature
independent of there actually being a touchscreen attached to the controller.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/sun4i.txt
drivers/input/touchscreen/Kconfig
drivers/input/touchscreen/sun4i-ts.c