ARM: dts: rockchip: add focaltech touchscreen to rk3188-bqedison2qc
authorHeiko Stuebner <heiko.stuebner@bq.com>
Fri, 21 Dec 2018 16:10:12 +0000 (17:10 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 7 Jan 2019 08:15:24 +0000 (09:15 +0100)
The Edison tablet uses a Focaltech touchscreen, with one speciality
that the touchscreen resolution doesn't match the display resolution
(1024x768 vs. 1280x600) which userspace will have to compensate for.

Signed-off-by: Heiko Stuebner <heiko.stuebner@bq.com>
arch/arm/boot/dts/rk3188-bqedison2qc.dts

index 2b5abfb48dd080cf37d3237c6bcccea3e402e064..887d1aa8d0e12bc9e4b11a0b4a57bae2a323eeef 100644 (file)
 &i2c2 {
        clock-frequency = <400000>;
        status = "okay";
+
+       ft5606: touchscreen@3e {
+               compatible = "edt,edt-ft5506";
+               reg = <0x3e>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&tp_int &tp_rst>;
+               reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
+               touchscreen-inverted-y;
+               /* hw ts resolution does not match display */
+               touchscreen-size-y = <1024>;
+               touchscreen-size-x = <768>;
+               touchscreen-swapped-x-y;
+       };
 };
 
 &i2c3 {