Azoteq IQS7222A/B/C/D Capacitive Touch Controller

Schema identifier ($id): "http://devicetree.org/schemas/input/azoteq,iqs7222.yaml#"

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

Maintainers (maintainers): "Jeff LaBundy <jeff@labundy.com>"

The Azoteq IQS7222A, IQS7222B, IQS7222C and IQS7222D are multichannel capacitive touch controllers that feature additional sensing capabilities.

Link to datasheets: https://www.azoteq.com/

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "azoteq,iqs7222a", "azoteq,iqs7222b", "azoteq,iqs7222c", "azoteq,iqs7222d"

reg — required here #

Maximum number of items (maxItems): 1

irq-gpios — required here #

Maximum number of items (maxItems): 1

Specifies the GPIO connected to the device's active-low RDY output.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Specifies the GPIO connected to the device's active-low MCLR input. The device is temporarily held in hardware reset prior to initialization if this property is present.

azoteq,max-counts — not listed as required here #

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

Allowed values (enum): 0, 1, 2, 3

Specifies the maximum number of conversion periods (counts) that can be reported as follows: 0: 1023 1: 2047 2: 4095 3: 16384

azoteq,auto-mode — not listed as required here #

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

Allowed values (enum): 0, 1, 2, 3

Specifies the number of conversions to occur before an interrupt is generated as follows: 0: 4 1: 8 2: 16 3: 32

azoteq,ati-frac-div-fine — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Specifies the preloaded ATI fine fractional divider.

azoteq,ati-frac-div-coarse — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Specifies the preloaded ATI coarse fractional divider.

azoteq,ati-comp-select — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 1023

Specifies the preloaded ATI compensation selection.

azoteq,lta-beta-lp — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the long-term average filter damping factor to be applied during low-power mode.

azoteq,lta-beta-np — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the long-term average filter damping factor to be applied during normal-power mode.

azoteq,counts-beta-lp — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the counts filter damping factor to be applied during low-power mode.

azoteq,counts-beta-np — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the counts filter damping factor to be applied during normal- power mode.

azoteq,lta-fast-beta-lp — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the long-term average filter fast damping factor to be applied during low-power mode.

azoteq,lta-fast-beta-np — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the long-term average filter fast damping factor to be applied during normal-power mode.

azoteq,timeout-ati-ms — not listed as required here #

Multiple of (multipleOf): 500

Minimum value (minimum): 0

Maximum value (maximum): 32767500

Specifies the delay (in ms) before ATI is retried following an ATI error.

azoteq,rate-ati-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the rate (in ms) at which ATI status is evaluated.

azoteq,timeout-np-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the length of time (in ms) to wait for an event before moving from normal-power mode to low-power mode.

azoteq,rate-np-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 3000

Specifies the report rate (in ms) during normal-power mode.

azoteq,timeout-lp-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the length of time (in ms) to wait for an event before moving from low-power mode to ultra-low-power mode.

azoteq,rate-lp-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 3000

Specifies the report rate (in ms) during low-power mode.

azoteq,timeout-ulp-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the rate (in ms) at which channels not regularly sampled during ultra-low-power mode are updated.

azoteq,rate-ulp-ms — not listed as required here #

Minimum value (minimum): 0

Maximum value (maximum): 3000

Specifies the report rate (in ms) during ultra-low-power mode.

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-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.

trackpad — not listed as required here #

Value type (type): "object"

Represents all channels associated with the trackpad.

Properties and child nodes (properties) #

azoteq,channel-select — required here

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

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 12

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 13

Specifies the order of the channels that participate in the trackpad. Specify 255 to omit a given channel for the purpose of mapping a non- rectangular trackpad.

azoteq,num-rows — not listed as required here

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

Minimum value (minimum): 1

Maximum value (maximum): 12

Specifies the number of rows that comprise the trackpad.

azoteq,num-cols — not listed as required here

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

Minimum value (minimum): 1

Maximum value (maximum): 12

Specifies the number of columns that comprise the trackpad.

azoteq,top-speed — not listed as required here

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

Multiple of (multipleOf): 4

Minimum value (minimum): 0

Maximum value (maximum): 1020

Specifies the speed (in coordinates traveled per conversion) after which coordinate filtering is no longer applied.

azoteq,bottom-speed — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the speed (in coordinates traveled per conversion) after which coordinate filtering is linearly reduced.

azoteq,use-prox — not listed as required here

Value type (type): "boolean"

Directs the trackpad to respond to the proximity states of the selected channels instead of their corresponding touch states. Note the trackpad cannot report granular coordinates during a state of proximity.

Properties matching a name pattern (patternProperties) #

^azoteq,lower-cal-(x|y)$ — name matches this regular expression

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the trackpad's lower starting points.

^azoteq,upper-cal-(x|y)$ — name matches this regular expression

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the trackpad's upper starting points.

^event-(press|tap|(swipe|flick)-(x|y)-(pos|neg))$ — name matches this regular expression

Value type (type): "object"

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

Represents a press or gesture event reported by the trackpad. Specify 'linux,code' under the press event to report absolute coordinates.

Properties and child nodes (properties)

linux,code — not listed as required here

true — No constraints added by this property rule.

azoteq,gesture-angle-tighten — not listed as required here

Value type (type): "boolean"

Limits the tangent of the gesture angle to 0.5 (axial gestures only). If specified in one direction, the effect is applied in either direction.

azoteq,gesture-max-ms — not listed as required here

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 4080

Specifies the length of time (in ms) within which a tap, swipe or flick gesture must be completed in order to be acknowledged by the device. The number specified for any one swipe or flick gesture applies to all other swipe or flick gestures.

azoteq,gesture-min-ms — not listed as required here

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 4080

Specifies the length of time (in ms) for which a tap gesture must be held in order to be acknowledged by the device.

azoteq,gesture-dist — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the distance (in coordinates) across which a swipe or flick gesture must travel in order to be acknowledged by the device. The number specified for any one swipe or flick gesture applies to all remaining swipe or flick gestures. For tap gestures, this property specifies the distance from the original point of contact across which the contact is permitted to travel before the gesture is rejected by the device.

azoteq,gpio-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): 3

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 2

Specifies one or more GPIO mapped to the event as follows: 0: GPIO0 1: GPIO3 2: GPIO4

Note that although multiple events can be mapped to a single GPIO, they must all be of the same type (proximity, touch or trackpad gesture).

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

false

Not allowed by this rule.

Required in this object (required): "azoteq,channel-select"

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

false

Not allowed by this rule.

Properties matching a name pattern (patternProperties) #

^cycle-[0-9]$ — name matches this regular expression #

Value type (type): "object"

Represents a conversion cycle serving two sensing channels.

Properties and child nodes (properties) #

azoteq,conv-period — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the cycle's conversion period.

azoteq,conv-frac — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the cycle's conversion frequency fraction.

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): 9

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 8

Specifies the CTx pin(s) associated with the cycle.

azoteq,rx-float-inactive — not listed as required here

Value type (type): "boolean"

Floats any inactive CRx pins instead of grounding them.

azoteq,dead-time-enable — not listed as required here

Value type (type): "boolean"

Increases the denominator of the conversion frequency formula by one.

azoteq,tx-freq-fosc — not listed as required here

Value type (type): "boolean"

Fixes the conversion frequency to that of the device's core clock.

azoteq,vbias-enable — not listed as required here

Value type (type): "boolean"

Enables the bias voltage for use during inductive sensing.

azoteq,sense-mode — not listed as required here

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

Allowed values (enum): 0, 1, 2, 3

Specifies the cycle's sensing mode as follows: 0: None 1: Self capacitive 2: Mutual capacitive 3: Inductive

Note that in the case of IQS7222A, cycles 5 and 6 are restricted to Hall-effect sensing.

azoteq,iref-enable — not listed as required here

Value type (type): "boolean"

Enables the current reference for use during various sensing modes.

azoteq,iref-level — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the cycle's current reference level.

azoteq,iref-trim — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the cycle's current reference trim.

Property dependencies (dependencies) #

azoteq,iref-level — applies when this property is present

Also requires: "azoteq,iref-enable"

azoteq,iref-trim — applies when this property is present

Also requires: "azoteq,iref-enable"

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

false

Not allowed by this rule.

^channel-([0-9]|1[0-9])$ — name matches this regular expression #

Value type (type): "object"

Represents a single sensing channel. A channel is active if defined and inactive otherwise. Note that in the case of IQS7222A, channels 10 and 11 are restricted to Hall-effect sensing with events reported on channel 10 only.

Properties and child nodes (properties) #

azoteq,ulp-allow — not listed as required here

Value type (type): "boolean"

Permits the device to enter ultra-low-power mode while the channel lies in a state of touch or proximity.

azoteq,ref-select — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 9

Specifies a separate reference channel to be followed.

azoteq,ref-weight — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the relative weight of the reference channel.

azoteq,use-prox — not listed as required here

Value type (type): "boolean"

Activates the reference channel in response to proximity events instead of touch events.

azoteq,counts-filt-enable — not listed as required here

Value type (type): "boolean"

Applies counts filtering to the channel.

azoteq,ati-band — not listed as required here

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

Allowed values (enum): 0, 1, 2, 3

Specifies the channel's ATI band as a fraction of its ATI target as follows: 0: 1/16 1: 1/8 2: 1/4 3: 1/2

azoteq,global-halt — not listed as required here

Value type (type): "boolean"

Specifies that the channel's long-term average is to freeze if any other participating channel lies in a proximity or touch state.

azoteq,invert-enable — not listed as required here

Value type (type): "boolean"

Inverts the polarity of the states reported for proximity and touch events relative to their respective thresholds.

azoteq,dual-direction — not listed as required here

Value type (type): "boolean"

Specifies that the channel's long-term average is to freeze in the presence of either increasing or decreasing counts, thereby permit- ting events to be reported in either direction.

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): 4

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 7

Specifies the CRx pin(s) associated with the channel.

azoteq,samp-cap-double — not listed as required here

Value type (type): "boolean"

Doubles the sampling capacitance from 40 pF to 80 pF.

azoteq,vref-half — not listed as required here

Value type (type): "boolean"

Halves the discharge threshold from 1.0 V to 0.5 V.

azoteq,proj-bias — not listed as required here

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

Allowed values (enum): 0, 1, 2, 3

Specifies the bias current applied during mutual (projected) capacitive sensing as follows: 0: 2 uA 1: 5 uA 2: 7 uA 3: 10 uA

azoteq,ati-target — not listed as required here

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

Multiple of (multipleOf): 8

Minimum value (minimum): 0

Maximum value (maximum): 2040

Specifies the channel's ATI target.

azoteq,ati-base — not listed as required here

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

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 496

Specifies the channel's ATI base.

azoteq,ati-mode — not listed as required here

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

Allowed values (enum): 0, 1, 2, 3, 4, 5

Specifies the channel's ATI mode as follows: 0: Disabled 1: Compensation 2: Compensation divider 3: Fine fractional divider 4: Coarse fractional divider 5: Full

azoteq,ati-frac-div-fine — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Specifies the channel's ATI fine fractional divider.

azoteq,ati-frac-mult-coarse — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the channel's ATI coarse fractional multiplier.

azoteq,ati-frac-div-coarse — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Specifies the channel's ATI coarse fractional divider.

azoteq,ati-comp-div — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Specifies the channel's ATI compensation divider.

azoteq,ati-comp-select — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 1023

Specifies the channel's ATI compensation selection.

azoteq,debounce-enter — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the channel's debounce entrance factor.

azoteq,debounce-exit — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Specifies the channel's debounce exit factor.

Properties matching a name pattern (patternProperties) #

^event-(prox|touch)$ — name matches this regular expression

Value type (type): "object"

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

Represents a proximity or touch event reported by the channel.

Properties and child nodes (properties)

azoteq,gpio-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): 3

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 2

Specifies one or more GPIO mapped to the event as follows: 0: GPIO0 1: GPIO3 2: GPIO4

Note that although multiple events can be mapped to a single GPIO, they must all be of the same type (proximity, touch or slider/trackpad gesture).

azoteq,thresh — not listed as required here

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

Specifies the threshold for the event. Valid entries range from 0-127 and 0-255 for proximity and touch events, respectively.

azoteq,hyst — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the hysteresis for the event (touch events only).

azoteq,timeout-press-ms — not listed as required here

Multiple of (multipleOf): 500

Minimum value (minimum): 0

Maximum value (maximum): 127500

Specifies the length of time (in ms) to wait before automatically releasing a press event. Specify zero to allow the press state to persist indefinitely. The IQS7222B does not feature channel-specific timeouts; the time- out specified for any one channel applies to all channels.

linux,code — not listed as required here

true — No constraints added by this property rule.

linux,input-type — not listed as required here

Allowed values (enum): 1, 5

Default value (default): 1

Specifies whether the event is to be interpreted as a key (1) or a switch (5).

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

false

Not allowed by this rule.

Property dependencies (dependencies) #

azoteq,ref-weight — applies when this property is present

Also requires: "azoteq,ref-select"

azoteq,use-prox — applies when this property is present

Also requires: "azoteq,ref-select"

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

false

Not allowed by this rule.

^slider-[0-1]$ — name matches this regular expression #

Value type (type): "object"

Represents a slider comprising three or four channels.

Properties and child nodes (properties) #

azoteq,channel-select — required here

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

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 4

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 9

Specifies the order of the channels that participate in the slider.

azoteq,slider-size — not listed as required here

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

Minimum value (minimum): 1

Maximum value (maximum): 65535

Specifies the slider's one-dimensional resolution, equal to the maximum coordinate plus one.

azoteq,lower-cal — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the slider's lower starting point.

azoteq,upper-cal — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the slider's upper starting point.

azoteq,top-speed — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 65535

Specifies the speed (in coordinates traveled per conversion) after which coordinate filtering is no longer applied.

azoteq,bottom-speed — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 255

Specifies the speed (in coordinates traveled per conversion) after which coordinate filtering is linearly reduced.

azoteq,bottom-beta — not listed as required here

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

Minimum value (minimum): 0

Maximum value (maximum): 7

Specifies the coordinate filter damping factor to be applied while the speed of movement is below that which is specified by azoteq,bottom-speed.

azoteq,static-beta — not listed as required here

Value type (type): "boolean"

Applies the coordinate filter damping factor specified by azoteq,bottom-beta regardless of the speed of movement.

azoteq,use-prox — not listed as required here

Value type (type): "boolean"

Directs the slider to respond to the proximity states of the selected channels instead of their corresponding touch states. Note the slider cannot report granular coordinates during a state of proximity.

linux,axis — not listed as required here

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

Specifies the absolute axis to which coordinates are mapped. Specify ABS_WHEEL to operate the slider as a wheel (IQS7222C only).

Properties matching a name pattern (patternProperties) #

^event-(press|tap|(swipe|flick)-(pos|neg))$ — name matches this regular expression

Value type (type): "object"

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

Represents a press or gesture (IQS7222A only) event reported by the slider.

Properties and child nodes (properties)

linux,code — not listed as required here

true — No constraints added by this property rule.

azoteq,gesture-max-ms — not listed as required here

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 4080

Specifies the length of time (in ms) within which a tap, swipe or flick gesture must be completed in order to be acknowledged by the device. The number specified for any one swipe or flick gesture applies to all remaining swipe or flick gestures.

azoteq,gesture-min-ms — not listed as required here

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 496

Specifies the length of time (in ms) for which a tap gesture must be held in order to be acknowledged by the device.

azoteq,gesture-dist — not listed as required here

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

Multiple of (multipleOf): 16

Minimum value (minimum): 0

Maximum value (maximum): 4080

Specifies the distance (in coordinates) across which a swipe or flick gesture must travel in order to be acknowledged by the device. The number specified for any one swipe or flick gesture applies to all remaining swipe or flick gestures.

azoteq,gpio-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): 3

Array item rules (items)

Minimum value (minimum): 0

Maximum value (maximum): 2

Specifies one or more GPIO mapped to the event as follows: 0: GPIO0 1: GPIO3 2: GPIO4

Note that although multiple events can be mapped to a single GPIO, they must all be of the same type (proximity, touch or slider gesture).

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

false

Not allowed by this rule.

Required in this object (required): "azoteq,channel-select"

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

false

Not allowed by this rule.

^gpio-[0-2]$ — name matches this regular expression #

Value type (type): "object"

Represents a GPIO mapped to one or more events as follows: gpio-0: GPIO0 gpio-1: GPIO3 gpio-2: GPIO4

All of these rules must match (allOf) #

Rule 1

Shared schema rule ($ref): /schemas/pinctrl/pincfg-node.yaml#

Properties and child nodes (properties) #

drive-open-drain — 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.

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "azoteq,iqs7222a", "azoteq,iqs7222b", "azoteq,iqs7222c"

When the condition matches (then) #

Properties and child nodes (properties)

touchscreen-size-x — not listed as required here

false — Not permitted by this property rule.

touchscreen-size-y — not listed as required here

false — Not permitted by this property rule.

touchscreen-inverted-x — not listed as required here

false — Not permitted by this property rule.

touchscreen-inverted-y — not listed as required here

false — Not permitted by this property rule.

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

false — Not permitted by this property rule.

trackpad — not listed as required here

false — Not permitted by this property rule.

Properties matching a name pattern (patternProperties)

^channel-([0-9]|1[0-9])$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,counts-filt-enable — not listed as required here

false — Not permitted by this property rule.

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "azoteq,iqs7222b", "azoteq,iqs7222c"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel-([0-9]|1[0-9])$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,ulp-allow — not listed as required here

false — Not permitted by this property rule.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "azoteq,iqs7222b", "azoteq,iqs7222d"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^cycle-[0-9]$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,iref-enable — not listed as required here

false — Not permitted by this property rule.

^channel-([0-9]|1[0-9])$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,ref-select — not listed as required here

false — Not permitted by this property rule.

^slider-[0-1]$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "azoteq,iqs7222b"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel-([0-9]|1[0-9])$ — name matches this regular expression

Properties matching a name pattern (patternProperties)

^event-(prox|touch)$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,gpio-select — not listed as required here

false — Not permitted by this property rule.

^gpio-[0-2]$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "azoteq,iqs7222a"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^channel-([0-9]|1[0-9])$ — name matches this regular expression

Properties matching a name pattern (patternProperties)

^event-(prox|touch)$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,gpio-select — not listed as required here

Maximum number of items (maxItems): 1

Array item rules (items)

Maximum value (maximum): 0

^slider-[0-1]$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,slider-size — not listed as required here

Multiple of (multipleOf): 16

Minimum value (minimum): 16

Maximum value (maximum): 4080

azoteq,top-speed — not listed as required here

Multiple of (multipleOf): 4

Maximum value (maximum): 1020

Properties matching a name pattern (patternProperties)

^event-(press|tap|(swipe|flick)-(pos|neg))$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,gpio-select — not listed as required here

Maximum number of items (maxItems): 1

Array item rules (items)

Maximum value (maximum): 0

When the condition does not match (else) #

Properties matching a name pattern (patternProperties)

^slider-[0-1]$ — name matches this regular expression

Properties matching a name pattern (patternProperties)

^event-(press|tap|(swipe|flick)-(pos|neg))$ — name matches this regular expression

Properties and child nodes (properties)

azoteq,gesture-max-ms — not listed as required here

false — Not permitted by this property rule.

azoteq,gesture-min-ms — not listed as required here

false — Not permitted by this property rule.

azoteq,gesture-dist — not listed as required here

false — Not permitted by this property rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

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

        iqs7222a@44 {
                compatible = "azoteq,iqs7222a";
                reg = <0x44>;
                irq-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                azoteq,lta-beta-lp = <7>;
                azoteq,lta-beta-np = <8>;
                azoteq,counts-beta-lp = <2>;
                azoteq,counts-beta-np = <3>;
                azoteq,lta-fast-beta-lp = <3>;
                azoteq,lta-fast-beta-np = <4>;

                cycle-0 {
                        azoteq,conv-period = <5>;
                        azoteq,conv-frac = <127>;
                        azoteq,tx-enable = <1>, <2>, <4>, <5>;
                        azoteq,dead-time-enable;
                        azoteq,sense-mode = <2>;
                };

                cycle-1 {
                        azoteq,conv-period = <5>;
                        azoteq,conv-frac = <127>;
                        azoteq,tx-enable = <5>;
                        azoteq,dead-time-enable;
                        azoteq,sense-mode = <2>;
                };

                cycle-2 {
                        azoteq,conv-period = <5>;
                        azoteq,conv-frac = <127>;
                        azoteq,tx-enable = <4>;
                        azoteq,dead-time-enable;
                        azoteq,sense-mode = <2>;
                };

                cycle-3 {
                        azoteq,conv-period = <5>;
                        azoteq,conv-frac = <127>;
                        azoteq,tx-enable = <2>;
                        azoteq,dead-time-enable;
                        azoteq,sense-mode = <2>;
                };

                cycle-4 {
                        azoteq,conv-period = <5>;
                        azoteq,conv-frac = <127>;
                        azoteq,tx-enable = <1>;
                        azoteq,dead-time-enable;
                        azoteq,sense-mode = <2>;
                };

                cycle-5 {
                        azoteq,conv-period = <2>;
                        azoteq,conv-frac = <0>;
                };

                cycle-6 {
                        azoteq,conv-period = <2>;
                        azoteq,conv-frac = <0>;
                };

                channel-0 {
                        azoteq,ulp-allow;
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <3>;
                        azoteq,ati-target = <800>;
                        azoteq,ati-base = <208>;
                        azoteq,ati-mode = <5>;
                };

                channel-1 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <3>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <208>;
                        azoteq,ati-mode = <5>;
                };

                channel-2 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <3>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <208>;
                        azoteq,ati-mode = <5>;
                };

                channel-3 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <3>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <208>;
                        azoteq,ati-mode = <5>;
                };

                channel-4 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <3>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <208>;
                        azoteq,ati-mode = <5>;
                };

                channel-5 {
                        azoteq,ulp-allow;
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <6>;
                        azoteq,ati-target = <800>;
                        azoteq,ati-base = <144>;
                        azoteq,ati-mode = <5>;
                };

                channel-6 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <6>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <160>;
                        azoteq,ati-mode = <5>;

                        event-touch {
                                linux,code = <KEY_MUTE>;
                        };
                };

                channel-7 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <6>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <160>;
                        azoteq,ati-mode = <5>;

                        event-touch {
                                linux,code = <KEY_VOLUMEDOWN>;
                        };
                };

                channel-8 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <6>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <160>;
                        azoteq,ati-mode = <5>;

                        event-touch {
                                linux,code = <KEY_VOLUMEUP>;
                        };
                };

                channel-9 {
                        azoteq,global-halt;
                        azoteq,invert-enable;
                        azoteq,rx-enable = <6>;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <160>;
                        azoteq,ati-mode = <5>;

                        event-touch {
                                linux,code = <KEY_POWER>;
                        };
                };

                channel-10 {
                        azoteq,ulp-allow;
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <112>;

                        event-touch {
                                linux,code = <SW_LID>;
                                linux,input-type = <EV_SW>;
                        };
                };

                channel-11 {
                        azoteq,ati-target = <496>;
                        azoteq,ati-base = <112>;
                };

                slider-0 {
                        azoteq,channel-select = <1>, <2>, <3>, <4>;
                        azoteq,slider-size = <4080>;
                        azoteq,upper-cal = <50>;
                        azoteq,lower-cal = <30>;
                        azoteq,top-speed = <200>;
                        azoteq,bottom-speed = <1>;
                        azoteq,bottom-beta = <3>;

                        event-tap {
                                linux,code = <KEY_PLAYPAUSE>;
                                azoteq,gesture-max-ms = <400>;
                                azoteq,gesture-min-ms = <32>;
                        };

                        event-flick-pos {
                                linux,code = <KEY_NEXTSONG>;
                                azoteq,gesture-max-ms = <800>;
                                azoteq,gesture-dist = <800>;
                        };

                        event-flick-neg {
                                linux,code = <KEY_PREVIOUSSONG>;
                        };
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Edit this page