Texas Instruments TSC2046 touch screen controller.
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ti,tsc2046.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"
TSC2046 is a touch screen controller with 8 channels ADC.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tsc2046e-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vref-supply — not listed as required here #
Optional supply of the reference voltage
#io-channel-cells — not listed as required here #
Exact value (const): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Properties and child nodes (properties) #
reg — required here
The channel number. It can have up to 8 channels
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
settling-time-us — not listed as required here
true — No constraints added by this property rule.
oversampling-ratio — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
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) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
adc@0 {
compatible = "ti,tsc2046e-adc";
reg = <0>;
spi-max-frequency = <1000000>;
interrupts-extended = <&gpio3 20 IRQ_TYPE_LEVEL_LOW>;
#io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@4 {
reg = <4>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@5 {
reg = <5>;
settling-time-us = <700>;
oversampling-ratio = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)