Generic resistive touchscreen ADC

Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/resistive-adc-touch.yaml#"

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

Generic ADC based resistive touchscreen controller The device must be connected to an ADC device that provides channels for position measurement and optional pressure.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "resistive-adc-touch"

io-channels — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

x

Item 2

y

Item 3

pressure (optional)

Item 4

z1 (optional)

Item 5

z2 (optional)

io-channel-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "x", "y"

Item 2

Allowed values (enum): "x", "y"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "x", "y", "pressure"

Item 2

Allowed values (enum): "x", "y", "pressure"

Item 3

Allowed values (enum): "x", "y", "pressure"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "x", "y", "z1", "z2"

Item 2

Allowed values (enum): "x", "y", "z1", "z2"

Item 3

Allowed values (enum): "x", "y", "z1", "z2"

Item 4

Allowed values (enum): "x", "y", "z1", "z2"

touchscreen-size-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-size-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-fuzz-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-fuzz-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-inverted-x — not listed as required here #

true — No constraints added by this property rule.

touchscreen-inverted-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-swapped-x-y — not listed as required here #

true — No constraints added by this property rule.

touchscreen-min-pressure — not listed as required here #

true — No constraints added by this property rule.

touchscreen-x-plate-ohms — not listed as required here #

true — No constraints added by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "io-channels", "io-channel-names"

Examples (examples) #

touchscreen {
  compatible = "resistive-adc-touch";
  io-channels = <&adc 24>, <&adc 25>;
  io-channel-names = "y", "x";
};
touchscreen {
  compatible = "resistive-adc-touch";
  touchscreen-min-pressure = <50000>;
  io-channels = <&adc 24>, <&adc 25>, <&adc 26>;
  io-channel-names = "y", "pressure", "x";
};
touchscreen {
  compatible = "resistive-adc-touch";
  touchscreen-min-pressure = <50000>;
  io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>;
  io-channel-names = "x", "z1", "z2", "y";
  touchscreen-x-plate-ohms = <800>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page