ARM: dts: imx6sl-tolino-shine2hd: fix touchscreen rotation
authorAndreas Kemnade <andreas@kemnade.info>
Sat, 23 Dec 2023 22:12:13 +0000 (23:12 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 5 Feb 2024 06:30:10 +0000 (14:30 +0800)
The display is in landscape orientation, but the touchscreen is in portrait
orientation. Specify that properly in the devicetree.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts

index 815119c..5636fb3 100644 (file)
                interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
                vdd-supply = <&ldo1_reg>;
                reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
-               x-size = <1072>;
-               y-size = <1448>;
+               touchscreen-size-x = <1072>;
+               touchscreen-size-y = <1448>;
+               touchscreen-swapped-x-y;
+               touchscreen-inverted-x;
        };
 
        /* TODO: TPS65185 PMIC for E Ink at 0x68 */