Azoteq IQS269A Capacitive Touch Controller
Schema identifier ($id): "http://devicetree.org/schemas/input/iqs269a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff LaBundy <jeff@labundy.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
The Azoteq IQS269A is an 8-channel capacitive touch controller that features additional Hall-effect and inductive sensing capabilities.
Link to datasheet: https://www.azoteq.com/
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "azoteq,iqs269a", "azoteq,iqs269a-00", "azoteq,iqs269a-d0"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
azoteq,hall-enable — not listed as required here #
Value type (type): "boolean"
Enables Hall-effect sensing on channels 6 and 7. In this case, keycodes assigned to channel 6 are ignored and keycodes assigned to channel 7 are interpreted as switch codes. Refer to the datasheet for requirements im- posed on channels 6 and 7 by Hall-effect sensing.
azoteq,suspend-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the power mode during suspend as follows: 0: Automatic (same as normal runtime, i.e. suspend/resume disabled) 1: Low power (all sensing at a reduced reporting rate) 2: Ultra-low power (channel 0 proximity sensing) 3: Halt (no sensing)
azoteq,clk-div — not listed as required here #
Value type (type): "boolean"
Divides the device's core clock by a factor of 4.
azoteq,ulp-update — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Default value (default): 3
Specifies the ultra-low-power mode update rate.
azoteq,reseed-offset — not listed as required here #
Value type (type): "boolean"
Applies an 8-count offset to all long-term averages upon either ATI or reseed events.
azoteq,filt-str-lp-lta — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the long-term average filter strength during low-power mode.
azoteq,filt-str-lp-cnt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the raw count filter strength during low-power mode.
azoteq,filt-str-np-lta — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the long-term average filter strength during normal-power mode.
azoteq,filt-str-np-cnt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the raw count filter strength during normal-power mode.
azoteq,rate-np-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 16
Specifies the report rate (in ms) during normal-power mode.
azoteq,rate-lp-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 160
Specifies the report rate (in ms) during low-power mode.
azoteq,rate-ulp-ms — not listed as required here #
Multiple of (multipleOf): 16
Minimum value (minimum): 0
Maximum value (maximum): 4080
Default value (default): 160
Specifies the report rate (in ms) during ultra-low-power mode.
azoteq,timeout-pwr-ms — not listed as required here #
Multiple of (multipleOf): 512
Minimum value (minimum): 0
Maximum value (maximum): 130560
Default value (default): 2560
Specifies the length of time (in ms) to wait for an event during normal- power mode before transitioning to low-power mode.
azoteq,timeout-lta-ms — not listed as required here #
Multiple of (multipleOf): 512
Minimum value (minimum): 0
Maximum value (maximum): 130560
Default value (default): 32768
Specifies the length of time (in ms) to wait before resetting the long- term average of all channels. Specify the maximum timeout to disable it altogether.
azoteq,ati-band-disable — not listed as required here #
Value type (type): "boolean"
Disables the ATI band check.
azoteq,ati-lp-only — not listed as required here #
Value type (type): "boolean"
Limits automatic ATI to low-power mode.
azoteq,ati-band-tighten — not listed as required here #
Value type (type): "boolean"
Tightens the ATI band from 1/8 to 1/16 of the desired target.
azoteq,filt-disable — not listed as required here #
Value type (type): "boolean"
Disables all raw count filtering.
azoteq,gpio3-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
Default value (default): 0
Selects the channel for which the GPIO3 pin represents touch state.
azoteq,dual-direction — not listed as required here #
Value type (type): "boolean"
Specifies that long-term averages are to freeze in the presence of either increasing or decreasing counts, thereby permitting events to be reported in either direction.
azoteq,tx-freq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the inductive sensing excitation frequency as follows (paren- thesized numbers represent the frequency if 'azoteq,clk-div' is present): 0: 16 MHz (4 MHz) 1: 8 MHz (2 MHz) 2: 4 MHz (1 MHz) 3: 2 MHz (500 kHz)
azoteq,global-cap-increase — not listed as required here #
Value type (type): "boolean"
Increases the global capacitance adder from 0.5 pF to 1.5 pF.
azoteq,reseed-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Specifies the event(s) that prompt the device to reseed (i.e. reset the long-term average) of an associated channel as follows: 0: None 1: Proximity 2: Proximity or touch 3: Proximity, touch or deep touch
azoteq,tracking-enable — not listed as required here #
Value type (type): "boolean"
Enables all associated channels to track their respective reference channels.
azoteq,filt-str-slider — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 1
Specifies the slider coordinate filter strength.
azoteq,touch-hold-ms — not listed as required here #
Multiple of (multipleOf): 256
Minimum value (minimum): 256
Maximum value (maximum): 65280
Default value (default): 5120
Specifies the length of time (in ms) for which the channel selected by 'azoteq,gpio3-select' must be held in a state of touch in order for an approximately 60-ms pulse to be asserted on the GPIO4 pin.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Specifies the numeric keycodes associated with each available gesture in the following order (enter 0 for unused gestures): 0: Slider 0 tap 1: Slider 0 hold 2: Slider 0 positive flick or swipe 3: Slider 0 negative flick or swipe 4: Slider 1 tap 5: Slider 1 hold 6: Slider 1 positive flick or swipe 7: Slider 1 negative flick or swipe
azoteq,gesture-swipe — not listed as required here #
Value type (type): "boolean"
Directs the device to interpret axial gestures as a swipe (finger remains on slider) instead of a flick (finger leaves slider).
azoteq,timeout-tap-ms — not listed as required here #
Multiple of (multipleOf): 16
Minimum value (minimum): 0
Maximum value (maximum): 4080
Default value (default): 400
Specifies the length of time (in ms) within which a slider touch must be released in order to be interpreted as a tap. Default and maximum values as well as step size are reduced by a factor of 4 with device version 2.
azoteq,timeout-swipe-ms — not listed as required here #
Multiple of (multipleOf): 16
Minimum value (minimum): 0
Maximum value (maximum): 4080
Default value (default): 2000
Specifies the length of time (in ms) within which an axial gesture must be completed in order to be interpreted as a flick or swipe. Default and max- imum values as well as step size are reduced by a factor of 4 with device version 2.
azoteq,thresh-swipe — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 128
Specifies the number of points across which an axial gesture must travel in order to be interpreted as a flick or swipe.
Property dependencies (dependencies) #
azoteq,gesture-swipe — applies when this property is present #
Also requires: "linux,keycodes"
azoteq,timeout-tap-ms — applies when this property is present #
Also requires: "linux,keycodes"
azoteq,timeout-swipe-ms — applies when this property is present #
Also requires: "linux,keycodes"
azoteq,thresh-swipe — applies when this property is present #
Also requires: "linux,keycodes"
Properties matching a name pattern (patternProperties) #
^channel@[0-7]$ — name matches this regular expression #
Value type (type): "object"
Represents a single sensing channel. A channel is active if defined and inactive otherwise.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 7
Index of the channel.
azoteq,reseed-disable — not listed as required here
Value type (type): "boolean"
Prevents the channel from being reseeded if the long-term average timeout (defined in 'azoteq,timeout-lta') expires.
azoteq,blocking-enable — not listed as required here
Value type (type): "boolean"
Specifies that the channel is a blocking channel.
azoteq,slider0-select — not listed as required here
Value type (type): "boolean"
Specifies that the channel participates in slider 0.
azoteq,slider1-select — not listed as required here
Value type (type): "boolean"
Specifies that the channel participates in slider 1.
azoteq,rx-enable — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
Specifies the CRX pin(s) associated with the channel. By default, only the CRX pin corresponding to the channel's index is enabled (e.g. CRX0 for channel 0).
azoteq,tx-enable — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
Default value (default): 0, 1, 2, 3, 4, 5, 6, 7
Specifies the TX pin(s) associated with the channel.
azoteq,meas-cap-decrease — not listed as required here
Value type (type): "boolean"
Decreases the internal measurement capacitance from 60 pF to 15 pF.
azoteq,rx-float-inactive — not listed as required here
Value type (type): "boolean"
Floats any inactive CRX pins instead of grounding them.
azoteq,local-cap-size — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 0
Specifies the capacitance to be added to the channel as follows: 0: None 1: Global adder (based on 'azoteq,global-cap-increase') 2: Global adder + 0.5 pF
azoteq,invert-enable — not listed as required here
Value type (type): "boolean"
Inverts the polarity of the states reported for proximity, touch and deep-touch events relative to their respective thresholds.
azoteq,proj-bias — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 2
Specifies the bias current applied during projected-capacitance sensing as follows: 0: 2.5 uA 1: 5 uA 2: 10 uA 3: 20 uA
azoteq,sense-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 9, 14, 15
Default value (default): 0
Specifies the channel's sensing mode as follows: 0: Self capacitance 1: Projected capacitance 9: Self or mutual inductance 14: Hall effect 15: Temperature
azoteq,sense-freq — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 1
Specifies the channel's sensing frequency as follows (parenthesized numbers represent the frequency if 'azoteq,clk-div' is present): 0: 4 MHz (1 MHz) 1: 2 MHz (500 kHz) 2: 1 MHz (250 kHz) 3: 500 kHz (125 kHz)
azoteq,static-enable — not listed as required here
Value type (type): "boolean"
Enables the static front-end for the channel.
azoteq,ati-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 3
Specifies the channel's ATI mode as follows: 0: Disabled 1: Semi-partial 2: Partial 3: Full
azoteq,ati-base — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 75, 100, 150, 200
Default value (default): 100
Specifies the channel's ATI base.
azoteq,ati-target — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Multiple of (multipleOf): 32
Minimum value (minimum): 0
Maximum value (maximum): 2016
Default value (default): 512
Specifies the channel's ATI target.
azoteq,assoc-select — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):7
Specifies the associated channels for which the channel serves as a reference channel. By default, no channels are selected.
azoteq,assoc-weight — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 0
Specifies the channel's impact weight if it acts as an associated channel (0 = 0% impact, 255 = 200% impact).
Properties matching a name pattern (patternProperties) #
^event-prox(-alt)?$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents a proximity event reported by the channel in response to a decrease in counts. Node names suffixed with '-alt' instead corre- spond to an increase in counts. By default, the long-term average tracks an increase in counts such that only events corresponding to a decrease in counts are reported (refer to the datasheet for more information). Specify 'azoteq,dual-direction' to freeze the long-term average when the counts increase or decrease such that events of either direction can be reported. Alternatively, specify 'azoteq,invert-enable' to in- vert the polarity of the states reported by the channel. Complementary events (e.g. event-touch and event-touch-alt) can both be present and specify different key or switch codes, but not differ- ent thresholds or hysteresis (if applicable).
Properties and child nodes (properties)
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 10
Specifies the threshold for the event.
linux,code — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
^event-touch(-alt)?$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents a touch event reported by the channel.
Properties and child nodes (properties)
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 8
Specifies the threshold for the event.
azoteq,hyst — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 4
Specifies the hysteresis for the event.
linux,code — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
^event-deep(-alt)?$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents a deep-touch event reported by the channel.
Properties and child nodes (properties)
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 26
Specifies the threshold for the event.
azoteq,hyst — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Default value (default): 0
Specifies the hysteresis for the event.
linux,code — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties matching a name pattern (
patternProperties) #
^channel@[0-7]$— name matches this regular expression #Properties and child nodes (
properties)
azoteq,slider1-select— not listed as required here
false— Not permitted by this property rule.
When the condition does not match (else) #
Properties and child nodes (
properties) #
azoteq,touch-hold-ms— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touch@44 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "azoteq,iqs269a";
reg = <0x44>;
interrupt-parent = <&gpio>;
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
azoteq,hall-enable;
azoteq,suspend-mode = <2>;
linux,keycodes = <KEY_PLAYPAUSE>,
<KEY_STOPCD>,
<KEY_NEXTSONG>,
<KEY_PREVIOUSSONG>;
azoteq,timeout-tap-ms = <400>;
azoteq,timeout-swipe-ms = <800>;
channel@0 {
reg = <0x0>;
event-prox {
linux,code = <KEY_POWER>;
};
};
channel@1 {
reg = <0x1>;
azoteq,slider0-select;
};
channel@2 {
reg = <0x2>;
azoteq,slider0-select;
};
channel@3 {
reg = <0x3>;
azoteq,slider0-select;
};
channel@4 {
reg = <0x4>;
azoteq,slider0-select;
};
channel@5 {
reg = <0x5>;
azoteq,slider0-select;
};
channel@6 {
reg = <0x6>;
azoteq,invert-enable;
azoteq,static-enable;
azoteq,reseed-disable;
azoteq,rx-enable = <0>;
azoteq,sense-freq = <0x0>;
azoteq,sense-mode = <0xE>;
azoteq,ati-mode = <0x0>;
azoteq,ati-base = <200>;
azoteq,ati-target = <320>;
};
channel@7 {
reg = <0x7>;
azoteq,invert-enable;
azoteq,static-enable;
azoteq,reseed-disable;
azoteq,rx-enable = <0>, <6>;
azoteq,sense-freq = <0x0>;
azoteq,sense-mode = <0xE>;
azoteq,ati-mode = <0x3>;
azoteq,ati-base = <200>;
azoteq,ati-target = <320>;
event-touch {
linux,code = <SW_LID>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)