Freescale i.MX6UL Touch Controller

Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml#"

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

Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>", "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx6ul-tsc"

reg — required here #

Array item rules (items) #

Item 1

touch controller address

Item 2

ADC2 address

interrupts — required here #

Array item rules (items) #

Item 1

touch controller address

Item 2

ADC2 address

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "tsc"

Item 2

Exact value (const): "adc"

xnur-gpios — required here #

Maximum number of items (maxItems): 1

The X- gpio this controller connect to. This xnur-gpio returns to low once the finger leave the touch screen (The last touch event the touch controller capture).

measure-delay-time — not listed as required here #

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

The value of measure delay time. Before X-axis or Y-axis measurement, the screen need some time before even potential distribution ready.

Default value (default): 65535

Minimum value (minimum): 0

Maximum value (maximum): 16777215

pre-charge-time — not listed as required here #

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

The touch screen need some time to precharge.

Default value (default): 4095

Minimum value (minimum): 0

Maximum value (maximum): 4294967295

touchscreen-average-samples — not listed as required here #

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

Number of data samples which are averaged for each read.

Allowed values (enum): 1, 4, 8, 16, 32

debounce-delay-us — not listed as required here #

Minimum duration in microseconds a signal must remain stable to be considered valid.

Drivers must convert this value to IPG clock cycles and map it to one of the four discrete thresholds exposed by the TSC_DEBUG_MODE2 register:

  0: 8191 IPG cycles
  1: 4095 IPG cycles
  2: 2047 IPG cycles
  3: 1023 IPG cycles

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "xnur-gpios"

All of these rules must match (allOf) #

Rule 1 #

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx6ul-clock.h>
#include <dt-bindings/gpio/gpio.h>
touchscreen@2040000 {
    compatible = "fsl,imx6ul-tsc";
    reg = <0x02040000 0x4000>, <0x0219c000 0x4000>;
    interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6UL_CLK_IPG>,
             <&clks IMX6UL_CLK_ADC2>;
    clock-names = "tsc", "adc";
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_tsc>;
    xnur-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
    measure-delay-time = <0xfff>;
    pre-charge-time = <0xffff>;
    touchscreen-average-samples = <32>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page