]> 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)
commitd8959a4c16f8a669d54adc98517b5de05ebd5968
tree868ecf353dd23426271b88dc39a16c29f1d4d2a2
parent0e007649a818cfe49b627738df3b1357630017bb
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