OSDN Git Service

ARM: dts: sun8i: a83t: a711: Add touchscreen node
authorMylène Josserand <mylene.josserand@bootlin.com>
Tue, 29 Oct 2019 00:58:06 +0000 (01:58 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 31 Oct 2019 12:34:57 +0000 (13:34 +0100)
Enable a FocalTech EDT-FT5x06 Polytouch touchscreen.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

index 568b90e..19f5202 100644 (file)
        status = "okay";
 };
 
+&i2c0 {
+       clock-frequency = <400000>;
+       status = "okay";
+
+       touchscreen@38 {
+               compatible = "edt,edt-ft5x06";
+               reg = <0x38>;
+               interrupt-parent = <&r_pio>;
+               interrupts = <0 7 IRQ_TYPE_EDGE_FALLING>; /* PL7 */
+               reset-gpios = <&pio 3 5 GPIO_ACTIVE_LOW>; /* PD5 */
+               vcc-supply = <&reg_ldo_io0>;
+               touchscreen-size-x = <1024>;
+               touchscreen-size-y = <600>;
+       };
+};
+
 &i2c1 {
        clock-frequency = <400000>;
        status = "okay";