]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: ti/omap: omap3-gta04: use proper touchscreen properties
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 5 Dec 2024 20:44:13 +0000 (21:44 +0100)
committerKevin Hilman <khilman@baylibre.com>
Tue, 7 Jan 2025 22:59:51 +0000 (14:59 -0800)
Specify the dimensions of the touchscreen propertly so that
no userspace configuration is needed for it.
Tested with x11 and weston on Debian bookworm.

What is in now is some debris from earlier tries to handle
scaling in kernel:

https://lore.kernel.org/linux-input/cover.1482936802.git.hns@goldelico.com/

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20241205204413.2466775-3-akemnade@kernel.org
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/ti/omap/omap3-gta04.dtsi

index 536070e80b2c6d2bb80876714e62046280c649ad..1b18ed8c1f7af0f7b5bd802ede5d12510b253251 100644 (file)
                interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
                gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;     /* GPIO_160 */
                ti,x-plate-ohms = <600>;
-               touchscreen-size-x = <480>;
-               touchscreen-size-y = <640>;
+               touchscreen-size-x = <0xf00>;
+               touchscreen-size-y = <0xf00>;
+               touchscreen-min-x = <0x100>;
+               touchscreen-min-y = <0x100>;
                touchscreen-max-pressure = <1000>;
                touchscreen-fuzz-x = <3>;
                touchscreen-fuzz-y = <8>;