Path: blob/master/Documentation/devicetree/bindings/input/iqs62x-keys.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/iqs62x-keys.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Azoteq IQS620A/621/622/624/625 Keys and Switches78maintainers:9- Jeff LaBundy <jeff@labundy.com>1011allOf:12- $ref: input.yaml#1314description: |15The Azoteq IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors16feature a variety of self-capacitive, mutual-inductive and Hall-effect sens-17ing capabilities that can facilitate a variety of contactless key and switch18applications.1920These functions are collectively represented by a "keys" child node from the21parent MFD driver. See Documentation/devicetree/bindings/mfd/iqs62x.yaml for22further details and examples. Sensor hardware configuration (self-capacitive23vs. mutual-inductive, etc.) is selected based on the device's firmware.2425properties:26compatible:27enum:28- azoteq,iqs620a-keys29- azoteq,iqs621-keys30- azoteq,iqs622-keys31- azoteq,iqs624-keys32- azoteq,iqs625-keys3334linux,keycodes:35minItems: 136maxItems: 1637description: |38Specifies the numeric keycodes associated with each available touch or39proximity event according to the following table. An 'x' indicates the40event is supported for a given device. Specify 0 for unused events.4142-------------------------------------------------------------------------43| # | Event | IQS620A | IQS621 | IQS622 | IQS624 | IQS625 |44-------------------------------------------------------------------------45| 0 | CH0 Touch | x | x | x | x | x |46| | Antenna 1 Touch* | x | | | | |47-------------------------------------------------------------------------48| 1 | CH0 Proximity | x | x | x | x | x |49| | Antenna 1 Prox.* | x | | | | |50-------------------------------------------------------------------------51| 2 | CH1 Touch | x | x | x | x | x |52| | Ant. 1 Deep Touch* | x | | | | |53-------------------------------------------------------------------------54| 3 | CH1 Proximity | x | x | x | x | x |55-------------------------------------------------------------------------56| 4 | CH2 Touch | x | | | | |57-------------------------------------------------------------------------58| 5 | CH2 Proximity | x | | | | |59| | Antenna 2 Prox.* | x | | | | |60-------------------------------------------------------------------------61| 6 | Metal (+) Touch** | x | x | | | |62| | Ant. 2 Deep Touch* | x | | | | |63-------------------------------------------------------------------------64| 7 | Metal (+) Prox.** | x | x | | | |65| | Antenna 2 Touch* | x | | | | |66-------------------------------------------------------------------------67| 8 | Metal (-) Touch** | x | x | | | |68-------------------------------------------------------------------------69| 9 | Metal (-) Prox.** | x | x | | | |70-------------------------------------------------------------------------71| 10 | SAR Active*** | x | | x | | |72-------------------------------------------------------------------------73| 11 | SAR Quick Rel.*** | x | | x | | |74-------------------------------------------------------------------------75| 12 | SAR Movement*** | x | | x | | |76-------------------------------------------------------------------------77| 13 | SAR Filter Halt*** | x | | x | | |78-------------------------------------------------------------------------79| 14 | Wheel Up | | | | x | |80-------------------------------------------------------------------------81| 15 | Wheel Down | | | | x | |82-------------------------------------------------------------------------83* Two-channel SAR. Replaces CH0-2 plus metal touch and proximity events84if enabled via firmware.85** "+" and "-" refer to the polarity of a channel's delta (LTA - counts),86where "LTA" is defined as the channel's long-term average.87*** One-channel SAR. Replaces CH0-2 touch and proximity events if enabled88via firmware.8990patternProperties:91"^hall-switch-(north|south)$":92type: object93$ref: input.yaml#94description:95Represents north/south-field Hall-effect sensor touch or proximity96events. Note that north/south-field orientation is reversed on the97IQS620AXzCSR device due to its flip-chip package.9899properties:100linux,code: true101102azoteq,use-prox:103$ref: /schemas/types.yaml#/definitions/flag104description:105If present, specifies that Hall-effect sensor reporting should106use the device's wide-range proximity threshold instead of its107close-range touch threshold (default).108109required:110- linux,code111112additionalProperties: false113114if:115properties:116compatible:117contains:118enum:119- azoteq,iqs624-keys120- azoteq,iqs625-keys121then:122patternProperties:123"^hall-switch-(north|south)$": false124125required:126- compatible127- linux,keycodes128129additionalProperties: false130131...132133134