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)
commitf09f98d3240b7ed2dd84ef6d84ff86df9d61e0f5
tree868ecf353dd23426271b88dc39a16c29f1d4d2a2
parent6decea7c5438e2955f64e2513ec9a2fac7602a7d
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