mirror of
https://github.com/torvalds/linux.git
synced 2026-04-21 00:04:01 -04:00
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>
21 lines
515 B
Plaintext
21 lines
515 B
Plaintext
sun4i resistive touchscreen controller
|
|
--------------------------------------
|
|
|
|
Required properties:
|
|
- compatible: "allwinner,sun4i-a10-ts"
|
|
- reg: mmio address range of the chip
|
|
- interrupts: interrupt to which the chip is connected
|
|
|
|
Optional properties:
|
|
- allwinner,ts-attached: boolean indicating that an actual touchscreen is
|
|
attached to the controller
|
|
|
|
Example:
|
|
|
|
rtp: rtp@01c25000 {
|
|
compatible = "allwinner,sun4i-a10-ts";
|
|
reg = <0x01c25000 0x100>;
|
|
interrupts = <29>;
|
|
allwinner,ts-attached;
|
|
};
|