TI's SPI driven touch screen controllers

Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ti,ads7843.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Alexander Stein <alexander.stein@ew.tq-group.com>", "Dmitry Torokhov <dmitry.torokhov@gmail.com>", "Marek Vasut <marex@denx.de>"

TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046 SPI driven touch screen controllers.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,ads7843", "ti,ads7845", "ti,ads7846", "ti,ads7873", "ti,tsc2046"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

pendown-gpio — not listed as required here #

Maximum number of items (maxItems): 1

GPIO handle describing the pin the !PENIRQ line is connected to.

vcc-supply — not listed as required here #

A regulator node for the supply voltage.

wakeup-source — not listed as required here #

true — No constraints added by this property rule.

ti,debounce-max — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Max number of additional readings per sample.

ti,debounce-rep — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Additional consecutive good readings required after the first two.

ti,debounce-tol — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Tolerance used for filtering.

ti,hsync-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO line to poll for hsync.

ti,keep-vref-on — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Set to keep Vref on for differential measurements as well.

ti,pendown-gpio-debounce — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Platform specific debounce time for the pendown-gpio.

ti,penirq-recheck-delay-usecs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

If set to non-zero, after samples are taken this delay is applied and penirq is rechecked, to help avoid false events. This value is affected by the material used to build the touch layer.

ti,pressure-max — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Maximum reported pressure value.

ti,pressure-min — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Minimum reported pressure value (threshold).

ti,settle-delay-usec — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Settling time of the analog signals; a function of Vcc and the capacitance on the X/Y drivers. If set to non-zero, two samples are taken with settle_delay us apart, and the second one is used. ~150 uSec with 0.01uF caps.

ti,swap-xy — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag

Swap x and y axis.

ti,vref-delay-usecs — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Vref supply delay in usecs, 0 for external Vref.

ti,vref-mv — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

The VREF voltage, in millivolts. Set to 0 to use internal references (ADS7846).

ti,x-plate-ohms — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Resistance of the X-plate, in Ohms.

ti,x-max — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Maximum value on the X axis.

ti,x-min — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Minimum value on the X axis.

ti,y-plate-ohms — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Resistance of the Y-plate, in Ohms.

ti,y-max — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Maximum value on the Y axis.

ti,y-min — not listed as required here #

Deprecated (deprecated): true

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16

Minimum value on the Y axis.

Required in this object (required): "compatible", "reg"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): touchscreen.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi{
    #address-cells = <1>;
    #size-cells = <0>;

    touchscreen@0 {
        compatible = "ti,tsc2046";
        reg = <0>;	/* CS0 */
        interrupt-parent = <&gpio1>;
        interrupts = <8 0>;	/* BOOT6 / GPIO 8 */
        pendown-gpio = <&gpio1 8 0>;
        spi-max-frequency = <1000000>;
        vcc-supply = <&reg_vcc3>;
        wakeup-source;

        ti,pressure-max = /bits/ 16 <255>;
        ti,x-max = /bits/ 16 <8000>;
        ti,x-min = /bits/ 16 <0>;
        ti,x-plate-ohms = /bits/ 16 <40>;
        ti,y-max = /bits/ 16 <4800>;
        ti,y-min = /bits/ 16 <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page