Input bindings
Single-page view · as markdown
Analog Devices AD7879(-1)/AD7889(-1) touchscreen interface (SPI/I2C)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/adi,ad7879.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
for SPI slave, use "adi,ad7879" for I2C slave, use "adi,ad7879-1"
Allowed values (enum): "adi,ad7879", "adi,ad7879-1"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
touchscreen-max-pressure — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum reported pressure
adi,resistance-plate-x — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
total resistance of X-plate (for pressure calculation)
touchscreen-swapped-x-y — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
X and Y axis are swapped (boolean)
adi,first-conversion-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 0
Minimum value (minimum): 0
Maximum value (maximum): 15
0-12: In 128us steps (starting with 128us) 13 : 2.560ms 14 : 3.584ms 15 : 4.096ms This property has to be a '/bits/ 8' value
adi,acquisition-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 0
Allowed values (enum): 0, 1, 2, 3
0: 2us 1: 4us 2: 8us 3: 16us This property has to be a '/bits/ 8' value
adi,median-filter-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 0
Allowed values (enum): 0, 1, 2, 3
0: disabled 1: 4 measurements 2: 8 measurements 3: 16 measurements This property has to be a '/bits/ 8' value
adi,averaging — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 0
Allowed values (enum): 0, 1, 2, 3
0: 2 middle values (1 if median disabled) 1: 4 middle values 2: 8 middle values 3: 16 values This property has to be a '/bits/ 8' value
adi,conversion-interval — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 0
0 : convert one time only 1-255: 515us + val * 35us (up to 9.440ms) This property has to be a '/bits/ 8' value
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen0@2c {
compatible = "adi,ad7879-1";
reg = <0x2c>;
interrupt-parent = <&gpio1>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
touchscreen-max-pressure = <4096>;
adi,resistance-plate-x = <120>;
adi,first-conversion-delay = /bits/ 8 <3>;
adi,acquisition-time = /bits/ 8 <1>;
adi,median-filter-size = /bits/ 8 <2>;
adi,averaging = /bits/ 8 <1>;
adi,conversion-interval = /bits/ 8 <255>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
touchscreen1@1 {
compatible = "adi,ad7879";
reg = <1>;
spi-max-frequency = <5000000>;
gpio-controller;
#gpio-cells = <1>;
interrupt-parent = <&gpio1>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
touchscreen-max-pressure = <4096>;
adi,resistance-plate-x = <120>;
adi,first-conversion-delay = /bits/ 8 <3>;
adi,acquisition-time = /bits/ 8 <1>;
adi,median-filter-size = /bits/ 8 <2>;
adi,averaging = /bits/ 8 <1>;
adi,conversion-interval = /bits/ 8 <255>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Apple touchscreens attached using the Z2 protocol
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/apple,z2-multitouch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sasha Finkelstein <fnkl.kernel@gmail.com>"
A series of touschscreen controllers used in Apple products
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "apple,j293-touchbar", "apple,j493-touchbar"
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
firmware-name — required here #
Maximum number of items (maxItems): 1
apple,z2-cal-blob — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Maximum number of items (maxItems): 4096
Calibration blob supplied by the bootloader
Required in this object (required): "compatible", "interrupts", "reset-gpios", "firmware-name", "touchscreen-size-x", "touchscreen-size-y"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@0 {
compatible = "apple,j293-touchbar";
reg = <0>;
spi-max-frequency = <11500000>;
reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>;
interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
firmware-name = "apple/dfrmtfw-j293.bin";
touchscreen-size-x = <23045>;
touchscreen-size-y = <640>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Azoteq IQS7210A/7211A/E Trackpad/Touchscreen Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/azoteq,iqs7211.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff LaBundy <jeff@labundy.com>"
The Azoteq IQS7210A, IQS7211A and IQS7211E trackpad and touchscreen control- lers employ projected-capacitance sensing and can track two contacts.
Link to datasheets: https://www.azoteq.com/
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "azoteq,iqs7210a", "azoteq,iqs7211a", "azoteq,iqs7211e"
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. The pin doubles as the IQS7211E's active-low MCLR input, in which case this GPIO must be configured as open-drain.
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,forced-comms — not listed as required here #
Value type (type): "boolean"
Enables forced communication; to be used with host adapters that cannot tolerate clock stretching.
azoteq,forced-comms-default — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Indicates if the device's OTP memory enables (1) or disables (0) forced communication by default. Specifying this property can expedite startup time if the default value is known. If this property is not specified, communication is not initiated until the device asserts its RDY pin shortly after exiting hardware reset. At that point, forced communication is either enabled or disabled based on the presence or absence of the 'azoteq,forced-comms' property.
azoteq,rate-active-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the report rate (in ms) during active mode.
azoteq,rate-touch-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the report rate (in ms) during idle-touch mode.
azoteq,rate-idle-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the report rate (in ms) during idle mode.
azoteq,rate-lp1-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the report rate (in ms) during low-power mode 1.
azoteq,rate-lp2-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the report rate (in ms) during low-power mode 2.
azoteq,timeout-active-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 65535000
Specifies the length of time (in ms) to wait for an event before moving from active mode to idle or idle-touch modes.
azoteq,timeout-touch-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 65535000
Specifies the length of time (in ms) to wait for an event before moving from idle-touch mode to idle mode.
azoteq,timeout-idle-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 65535000
Specifies the length of time (in ms) to wait for an event before moving from idle mode to low-power mode 1.
azoteq,timeout-lp1-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 65535000
Specifies the length of time (in ms) to wait for an event before moving from low-power mode 1 to low-power mode 2.
azoteq,timeout-lp2-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 60000
Specifies the rate (in ms) at which the trackpad reference values are updated during low-power modes 1 and 2.
azoteq,timeout-ati-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 60000
Specifies the delay (in ms) before the automatic tuning implementation (ATI) is retried in the event it fails to complete.
azoteq,timeout-comms-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the delay (in ms) before a communication window is closed.
azoteq,timeout-press-ms — not listed as required here #
Multiple of (multipleOf): 1000
Minimum value (minimum): 0
Maximum value (maximum): 60000
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.
azoteq,fosc-freq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the device's core clock frequency as follows: 0: 14 MHz 1: 18 MHz
azoteq,fosc-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 device's core clock frequency trim.
azoteq,num-contacts — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 2
Default value (default): 0
Specifies the number of contacts reported by the device.
azoteq,contact-split — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the contact (finger) split factor.
azoteq,trim-x — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the horizontal trim width.
azoteq,trim-y — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the vertical trim height.
trackpad — not listed as required here #
Value type (type): "object"
Represents all channels associated with the trackpad.
Properties and child nodes (properties) #
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 order of the CRx pin(s) associated with the trackpad.
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): 12
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):11
Specifies the order of the CTx pin(s) associated with the trackpad.
azoteq,channel-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): 36
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):255
Specifies the channels mapped to each cycle in the following order: Cycle 0, slot 0 Cycle 0, slot 1 Cycle 1, slot 0 Cycle 1, slot 1 ...and so on. Specify 255 to disable a given slot.
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 trackpad'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 trackpad'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 trackpad'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 trackpad's ATI compensation divider.
azoteq,ati-target — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the trackpad's ATI target.
azoteq,touch-enter — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the trackpad's touch entrance factor.
azoteq,touch-exit — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the trackpad's touch exit factor.
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the trackpad's stationary touch threshold.
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 trackpad'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 trackpad's conversion frequency fraction.
Properties matching a name pattern (patternProperties) #
^event-(tap(-double|-triple)?|hold|palm|swipe-(x|y)-(pos|neg)(-hold)?)$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): ../input.yaml#
Represents a gesture event reported by the trackpad. In the case of axial gestures, the duration or distance specified in one direction applies to both directions along the same axis.
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
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the maximum duration of tap/swipe gestures.
azoteq,gesture-mid-ms — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the maximum duration between subsequent tap gestures (IQS7211E only).
azoteq,gesture-min-ms — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the minimum duration of hold gestures.
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 minimum (swipe) or maximum (tap and hold) distance a finger may travel to be considered a gesture.
azoteq,gesture-dist-rep — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the minimum distance a finger must travel to elicit a repeated swipe gesture (IQS7211E only).
azoteq,gesture-angle — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 75
Specifies the maximum angle (in degrees) a finger may travel to be considered a swipe gesture.
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 42
Specifies the palm gesture threshold (IQS7211E only).
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Property dependencies (dependencies) #
azoteq,rx-enable — applies when this property is present
Also requires: "azoteq,tx-enable"
azoteq,tx-enable — applies when this property is present
Also requires: "azoteq,rx-enable"
azoteq,channel-select — applies when this property is present
Also requires: "azoteq,rx-enable"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
alp — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): ../input.yaml#
Represents the alternate low-power channel (ALP).
Properties and child nodes (properties) #
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 ALP in no particular order.
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): 12
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):11
Specifies the CTx pin(s) associated with the ALP in no particular order.
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 ALP'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 ALP'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 ALP'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 ALP's ATI compensation divider.
azoteq,ati-target — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the ALP's ATI target.
azoteq,ati-base — 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): 255
Specifies the ALP's ATI base.
azoteq,ati-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the ALP's ATI mode as follows: 0: Partial 1: Full
azoteq,sense-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the ALP's sensing mode as follows: 0: Self capacitive 1: Mutual capacitive
azoteq,debounce-enter — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the ALP'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): 255
Specifies the ALP's debounce exit factor.
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the ALP's proximity or touch threshold.
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 ALP'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 ALP's conversion frequency fraction.
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.
button — not listed as required here #
Value type (type): "object"
Represents the inductive or capacitive button.
Properties and child nodes (properties) #
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 button'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 button'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 button'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 button's ATI compensation divider.
azoteq,ati-target — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the button's ATI target.
azoteq,ati-base — 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): 255
Specifies the button's ATI base.
azoteq,ati-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the button's ATI mode as follows: 0: Partial 1: Full
azoteq,sense-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Specifies the button's sensing mode as follows: 0: Self capacitive 1: Mutual capacitive 2: Inductive
azoteq,touch-enter — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the button's touch entrance factor.
azoteq,touch-exit — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the button's touch exit factor.
azoteq,debounce-enter — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Specifies the button'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): 255
Specifies the button's debounce exit factor.
azoteq,thresh — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 65535
Specifies the button's proximity threshold.
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 button'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 button's conversion frequency fraction.
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 button.
Properties and child nodes (properties)
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.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
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.
Property dependencies (dependencies) #
touchscreen-size-x — applies when this property is present #
Also requires: "azoteq,num-contacts"
touchscreen-size-y — applies when this property is present #
Also requires: "azoteq,num-contacts"
touchscreen-inverted-x — applies when this property is present #
Also requires: "azoteq,num-contacts"
touchscreen-inverted-y — applies when this property is present #
Also requires: "azoteq,num-contacts"
touchscreen-swapped-x-y — applies when this property is present #
Also requires: "azoteq,num-contacts"
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.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"azoteq,iqs7210a"When the condition matches (
then) #Properties and child nodes (
properties)
alp— not listed as required hereProperties and child nodes (
properties)
azoteq,rx-enable— not listed as required hereMaximum number of items (
maxItems):4Array item rules (
items)Minimum value (
minimum):4When the condition does not match (
else) #Properties and child nodes (
properties)
azoteq,timeout-press-ms— not listed as required here
false— Not permitted by this property rule.
alp— not listed as required hereProperties and child nodes (
properties)
azoteq,ati-mode— not listed as required here
false— Not permitted by this property rule.
button— 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 hereRule for matching array elements (
contains)Exact value (
const):"azoteq,iqs7211e"When the condition matches (
then) #Properties and child nodes (
properties)
reset-gpios— not listed as required here
false— Not permitted by this property rule.
trackpad— not listed as required hereProperties and child nodes (
properties)
azoteq,tx-enable— not listed as required hereMaximum number of items (
maxItems):13Array item rules (
items)Maximum value (
maximum):12
alp— not listed as required hereProperties and child nodes (
properties)
azoteq,tx-enable— not listed as required hereMaximum number of items (
maxItems):13Array item rules (
items)Maximum value (
maximum):12
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@56 {
compatible = "azoteq,iqs7210a";
reg = <0x56>;
irq-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
reset-gpios = <&gpio 17 (GPIO_ACTIVE_LOW |
GPIO_PUSH_PULL)>;
azoteq,num-contacts = <2>;
trackpad {
azoteq,rx-enable = <6>, <5>, <4>, <3>, <2>;
azoteq,tx-enable = <1>, <7>, <8>, <9>, <10>;
};
button {
azoteq,sense-mode = <2>;
azoteq,touch-enter = <40>;
azoteq,touch-exit = <36>;
event-touch {
linux,code = <KEY_HOME>;
};
};
alp {
azoteq,sense-mode = <1>;
linux,code = <KEY_POWER>;
};
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@56 {
compatible = "azoteq,iqs7211e";
reg = <0x56>;
irq-gpios = <&gpio 4 (GPIO_ACTIVE_LOW |
GPIO_OPEN_DRAIN)>;
trackpad {
event-tap {
linux,code = <KEY_PLAYPAUSE>;
};
event-tap-double {
linux,code = <KEY_SHUFFLE>;
};
event-tap-triple {
linux,code = <KEY_AGAIN>;
};
event-hold {
linux,code = <KEY_STOP>;
};
event-palm {
linux,code = <KEY_EXIT>;
};
event-swipe-x-pos {
linux,code = <KEY_REWIND>;
};
event-swipe-x-pos-hold {
linux,code = <KEY_PREVIOUS>;
};
event-swipe-x-neg {
linux,code = <KEY_FASTFORWARD>;
};
event-swipe-x-neg-hold {
linux,code = <KEY_NEXT>;
};
event-swipe-y-pos {
linux,code = <KEY_VOLUMEUP>;
};
event-swipe-y-pos-hold {
linux,code = <KEY_MUTE>;
};
event-swipe-y-neg {
linux,code = <KEY_VOLUMEDOWN>;
};
event-swipe-y-neg-hold {
linux,code = <KEY_MUTE>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ChipOne ICN8318 Touchscreen Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/chipone,icn8318.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
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): "chipone,icn8318"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
wake-gpios — required here #
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "wake-gpios", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@40 {
compatible = "chipone,icn8318";
reg = <0x40>;
interrupt-parent = <&pio>;
interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */
pinctrl-names = "default";
pinctrl-0 = <&ts_wake_pin_p66>;
wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
touchscreen-size-x = <800>;
touchscreen-size-y = <480>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Cypress CY8CTMA140 series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma140.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
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): "cypress,cy8ctma140"
reg — required here #
Exact value (const): 32
clock-frequency — not listed as required here #
I2C client clock frequency, defined for host
Minimum value (minimum): 100000
Maximum value (maximum): 400000
interrupts — required here #
Maximum number of items (maxItems): 1
vcpin-supply — not listed as required here #
Analog power supply regulator on VCPIN pin
vdd-supply — not listed as required here #
Digital power supply regulator on VDD pin
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-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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-max-pressure — 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): "compatible", "reg", "interrupts", "touchscreen-size-x", "touchscreen-size-y", "touchscreen-max-pressure"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@20 {
compatible = "cypress,cy8ctma140";
reg = <0x20>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
touchscreen-max-pressure = <255>;
interrupt-parent = <&gpio6>;
interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&ab8500_ldo_aux2_reg>;
vcpin-supply = <&ab8500_ldo_aux2_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cypress CY8CTMA340 series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/cypress,cy8ctma340.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Cypress CY8CTMA340 series (also known as "CYTTSP" after the marketing name Cypress TrueTouch Standard Product) touchscreens can be connected to either I2C or SPI buses.
Maintainers (maintainers): "Javier Martinez Canillas <javier@dowhile0.org>", "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen(@.*)?$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"cypress,cy8ctma340"
Rule 2
Exact value (
const):"cypress,cy8ctst341"
Rule 3
Exact value (
const):"cypress,cyttsp-spi"Legacy compatible for SPI connected CY8CTMA340
Deprecated (
deprecated):true
Rule 4
Exact value (
const):"cypress,cyttsp-i2c"Legacy compatible for I2C connected CY8CTMA340
Deprecated (
deprecated):true
reg — required here #
I2C address when used on the I2C bus, or the SPI chip select index when used on the SPI bus
clock-frequency — not listed as required here #
I2C client clock frequency, defined for host when using the device on the I2C bus
Minimum value (minimum): 0
Maximum value (maximum): 400000
spi-max-frequency — not listed as required here #
SPI clock frequency, defined for host, defined when using the device on the SPI bus. The throughput is maximum 2 Mbps so the typical value is 2000000, if higher rates are used the total throughput needs to be restricted to 2 Mbps.
Minimum value (minimum): 0
Maximum value (maximum): 6000000
interrupts — required here #
Interrupt to host
Maximum number of items (maxItems): 1
vcpin-supply — not listed as required here #
Analog power supply regulator on VCPIN pin
vdd-supply — not listed as required here #
Digital power supply regulator on VDD pin
reset-gpios — not listed as required here #
Reset line for the touchscreen, should be tagged as GPIO_ACTIVE_LOW
bootloader-key — required here #
the 8-byte bootloader key that is required to switch the chip from bootloader mode (default mode) to application mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8-array
Minimum number of items (minItems): 8
Maximum number of items (maxItems): 8
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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.
active-distance — not listed as required here #
the distance in pixels beyond which a touch must move before movement is detected and reported by the device
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
active-interval-ms — not listed as required here #
the minimum period in ms between consecutive scanning/processing cycles when the chip is in active mode
Minimum value (minimum): 0
Maximum value (maximum): 255
lowpower-interval-ms — not listed as required here #
the minimum period in ms between consecutive scanning/processing cycles when the chip is in low-power mode
Minimum value (minimum): 0
Maximum value (maximum): 2550
touch-timeout-ms — not listed as required here #
minimum time in ms spent in the active power state while no touches are detected before entering low-power mode
Minimum value (minimum): 0
Maximum value (maximum): 2550
use-handshake — not listed as required here #
enable register-based handshake (boolean). This should only be used if the chip is configured to use 'blocking communication with timeout' (in this case the device generates an interrupt at the end of every scanning/processing cycle)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "bootloader-key", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
num-cs = <1>;
cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
touchscreen@0 {
compatible = "cypress,cy8ctma340";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
vdd-supply = <&ldo_aux1_reg>;
vcpin-supply = <&ldo_aux2_reg>;
bootloader-key = /bits/ 8 <0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
active-interval-ms = <0>;
touch-timeout-ms = <255>;
lowpower-interval-ms = <10>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cypress TT21000 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/cypress,tt21000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Cypress TT21000 series (also known as "CYTTSP5" after the marketing name Cypress TrueTouch Standard Product series 5).
Maintainers (maintainers): "Alistair Francis <alistair@alistair23.me>"
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): "cypress,tt21000"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
Regulator for voltage.
vddio-supply — not listed as required here #
Optional Regulator for I/O voltage.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
linux,keycodes — not listed as required here #
EV_ABS specific event code generated by the axis.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^button@[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): ../input.yaml#
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
linux,keycodes — required here
Keycode to emit
Required in this object (required): "reg", "linux,keycodes"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/linux-event-codes.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@24 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cypress,tt21000";
reg = <0x24>;
pinctrl-names = "default";
pinctrl-0 = <&tp_reset_ds203>;
interrupt-parent = <&pio>;
interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>;
vdd-supply = <®_touch>;
button@0 {
reg = <0>;
linux,keycodes = <KEY_HOMEPAGE>;
};
button@1 {
reg = <1>;
linux,keycodes = <KEY_MENU>;
};
button@2 {
reg = <2>;
linux,keycodes = <KEY_BACK>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
FocalTech EDT-FT5x06 Polytouch
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
There are 5 variants of the chip for various touch panel sizes FT5206GE1 2.8" .. 3.8" FT5306DE4 4.3" .. 7" FT5406EE8 7" .. 8.9" FT5506EEG 7" .. 8.9" FT5726NEI 5.7” .. 11.6"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
offset-x— not listed as required here
true— No constraints added by this property rule.
offset-y— not listed as required here
true— No constraints added by this property rule.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "edt,edt-ft5206", "edt,edt-ft5306", "edt,edt-ft5406", "edt,edt-ft5506", "evervision,ev-ft5726", "focaltech,ft3518", "focaltech,ft5426", "focaltech,ft5452", "focaltech,ft6236", "focaltech,ft8201", "focaltech,ft8716", "focaltech,ft8719"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wake-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
iovcc-supply — not listed as required here #
true — No constraints added by this property rule.
gain — not listed as required here #
Allows setting the sensitivity in the range from 0 to 31. Note that lower values indicate higher sensitivity.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 31
offset — not listed as required here #
Allows setting the edge compensation in the range from 0 to 31.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 31
offset-x — not listed as required here #
Same as offset, but applies only to the horizontal position. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 80
offset-y — not listed as required here #
Same as offset, but applies only to the vertical position. Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 80
report-rate-hz — not listed as required here #
Allows setting the scan rate in Hertz. M06 supports range from 30 to 140 Hz. M12 supports range from 1 to 255 Hz.
Minimum value (minimum): 1
Maximum value (maximum): 255
threshold — not listed as required here #
Allows setting the "click"-threshold in the range from 0 to 255.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
interrupt-controller — 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", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@38 {
compatible = "edt,edt-ft5406";
reg = <0x38>;
interrupt-parent = <&gpio2>;
interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
EETI EXC3000 series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"eeti,exc3000"
Rule 2
Exact value (
const):"eeti,exc80h60"
Rule 3
Exact value (
const):"eeti,exc80h84"
Rule 4
Exact value (
const):"eeti,egalax_ts"
Rule 5
Exact value (
const):"eeti,exc3000-i2c"Deprecated (
deprecated):true
Rule 6
Array item rules (
items)Item 1
Item 2
Exact value (
const):"eeti,exc80h84"
reg — required here #
Allowed values (enum): 4, 10, 42
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wakeup-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Power supply regulator for the chip
attn-gpios — not listed as required here #
Deprecated (deprecated): true
Maximum number of items (maxItems): 1
Phandle to a GPIO to check whether interrupt is still latched. This is necessary for platforms that lack support for level-triggered IRQs.
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.
Required in this object (required): "compatible", "reg", "interrupts"
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.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereExact value (
const):42
wakeup-gpios— not listed as required here
false— Not permitted by this property rule.
attn-gpios— not listed as required here
false— Not permitted by this property rule.Required in this object (
required):"touchscreen-size-x","touchscreen-size-y"
Examples (examples) #
#include "dt-bindings/interrupt-controller/irq.h"
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@2a {
compatible = "eeti,exc3000";
reg = <0x2a>;
interrupt-parent = <&gpio1>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
touchscreen-size-x = <4096>;
touchscreen-size-y = <4096>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 18: Do NOT use for new binding
Elan eKTF2127 I2C touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/elan,ektf2127.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "elan,ektf2127", "elan,ektf2132", "elan,ektf2232"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
power-gpios — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "power-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@15 {
compatible = "elan,ektf2127";
reg = <0x15>;
interrupt-parent = <&pio>;
interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Elantech I2C Touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/elan,elants_i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "David Heidelberg <david@ixit.cz>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"elan,ekth3915"Item 2
Exact value (
const):"elan,ekth3500"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
Value type (type): "boolean"
touchscreen can be used as a wakeup source.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
reset gpio the chip is connected to.
vcc33-supply — not listed as required here #
a phandle for the regulator supplying 3.3V power.
vccio-supply — not listed as required here #
a phandle for the regulator supplying IO power.
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-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-swapped-x-y — 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): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@10 {
compatible = "elan,ekth3500";
reg = <0x10>;
interrupt-parent = <&gpio4>;
interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale i.MX6UL Touch Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/fsl,imx6ul-tsc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>", "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,imx6ul-tsc"
reg — required here #
Array item rules (items) #
Item 1
touch controller address
Item 2
ADC2 address
interrupts — required here #
Array item rules (items) #
Item 1
touch controller address
Item 2
ADC2 address
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tsc"
Item 2
Exact value (
const):"adc"
xnur-gpios — required here #
Maximum number of items (maxItems): 1
The X- gpio this controller connect to. This xnur-gpio returns to low once the finger leave the touch screen (The last touch event the touch controller capture).
measure-delay-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The value of measure delay time. Before X-axis or Y-axis measurement, the screen need some time before even potential distribution ready.
Default value (default): 65535
Minimum value (minimum): 0
Maximum value (maximum): 16777215
pre-charge-time — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The touch screen need some time to precharge.
Default value (default): 4095
Minimum value (minimum): 0
Maximum value (maximum): 4294967295
touchscreen-average-samples — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of data samples which are averaged for each read.
Allowed values (enum): 1, 4, 8, 16, 32
debounce-delay-us — not listed as required here #
Minimum duration in microseconds a signal must remain stable to be considered valid.
Drivers must convert this value to IPG clock cycles and map it to one of the four discrete thresholds exposed by the TSC_DEBUG_MODE2 register:
0: 8191 IPG cycles
1: 4095 IPG cycles
2: 2047 IPG cycles
3: 1023 IPG cycles
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "xnur-gpios"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx6ul-clock.h>
#include <dt-bindings/gpio/gpio.h>
touchscreen@2040000 {
compatible = "fsl,imx6ul-tsc";
reg = <0x02040000 0x4000>, <0x0219c000 0x4000>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6UL_CLK_IPG>,
<&clks IMX6UL_CLK_ADC2>;
clock-names = "tsc", "adc";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_tsc>;
xnur-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
measure-delay-time = <0xfff>;
pre-charge-time = <0xffff>;
touchscreen-average-samples = <32>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Goodix Berlin series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/goodix,gt9916.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Goodix Berlin series of touchscreen controllers be connected to either I2C or SPI buses.
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "goodix,gt9897", "goodix,gt9916"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analog power supply regulator on AVDD pin
vddio-supply — not listed as required here #
power supply regulator on VDDIO pin
spi-max-frequency — 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-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@5d {
compatible = "goodix,gt9916";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
avdd-supply = <&ts_avdd>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <768>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
num-cs = <1>;
cs-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
touchscreen@0 {
compatible = "goodix,gt9916";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
avdd-supply = <&ts_avdd>;
spi-max-frequency = <1000000>;
touchscreen-size-x = <1024>;
touchscreen-size-y = <768>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Goodix GT9xx series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/goodix.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "goodix,gt1151", "goodix,gt1158", "goodix,gt5663", "goodix,gt5688", "goodix,gt911", "goodix,gt9110", "goodix,gt912", "goodix,gt9147", "goodix,gt917s", "goodix,gt927", "goodix,gt9271", "goodix,gt928", "goodix,gt9286", "goodix,gt967"
reg — required here #
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
irq-gpios — not listed as required here #
GPIO pin used for IRQ input. Additionally, this line is sampled by the device on reset deassertion to select the I2C client address, thus it can be driven by the host during the reset sequence.
Maximum number of items (maxItems): 1
panel — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
AVDD28-supply — not listed as required here #
Analog power supply regulator on AVDD28 pin
VDDIO-supply — not listed as required here #
GPIO power supply regulator on VDDIO pin
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-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-swapped-x-y — 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): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@5d {
compatible = "goodix,gt928";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <0 0>;
irq-gpios = <&gpio1 0 0>;
reset-gpios = <&gpio1 1 0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Himax HX852x(ES) touch panel controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/himax,hx852es.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"himax,hx8525e","himax,hx8526e","himax,hx8527e"
Item 2
Exact value (
const):"himax,hx852es"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Touch Screen Interrupt (TSIX), active low
reset-gpios — required here #
Maximum number of items (maxItems): 1
External Reset (XRES), active low
vcca-supply — not listed as required here #
Analog power supply (VCCA)
vccd-supply — not listed as required here #
Digital power supply (VCCD)
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-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-swapped-x-y — not listed as required here #
true — No constraints added by this property rule.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Required in this object (required): "compatible", "reg", "interrupts", "reset-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>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@48 {
compatible = "himax,hx8527e", "himax,hx852es";
reg = <0x48>;
interrupt-parent = <&tlmm>;
interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
vcca-supply = <®_ts_vcca>;
vccd-supply = <&pm8916_l6>;
linux,keycodes = <KEY_BACK KEY_HOMEPAGE KEY_APPSELECT>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Hycon HY46XX series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/hycon,hy46xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
There are 6 variants of the chip for various touch panel sizes and cover lens material
Glass: 0.3mm--4.0mm
PET/PMMA: 0.2mm--2.0mm
HY4613(B)-N048 < 6"
HY4614(B)-N068 7" .. 10.1"
HY4621-NS32 < 5"
HY4623-NS48 5.1" .. 7"
Glass: 0.3mm--8.0mm
PET/PMMA: 0.2mm--4.0mm
HY4633(B)-N048 < 6"
HY4635(B)-N048 < 7" .. 10.1"
Maintainers (maintainers): "Giulio Benetti <giulio.benetti@benettiengineering.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "hycon,hy4613", "hycon,hy4614", "hycon,hy4621", "hycon,hy4623", "hycon,hy4633", "hycon,hy4635"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
hycon,threshold — not listed as required here #
Allows setting the sensitivity in the range from 0 to 255.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
hycon,glove-enable — not listed as required here #
Value type (type): "boolean"
Allows enabling glove setting.
hycon,report-speed-hz — not listed as required here #
Allows setting the report speed in Hertz.
Minimum value (minimum): 1
Maximum value (maximum): 255
hycon,noise-filter-enable — not listed as required here #
Value type (type): "boolean"
Allows enabling power noise filter.
hycon,filter-data — not listed as required here #
Allows setting how many samples throw before reporting touch in the range from 0 to 5.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
hycon,gain — not listed as required here #
Allows setting the sensitivity distance in the range from 0 to 5.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 5
hycon,edge-offset — not listed as required here #
Allows setting the edge compensation in the range from 0 to 16.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 16
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.
interrupt-controller — 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): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@1c {
compatible = "hycon,hy4633";
reg = <0x1c>;
interrupt-parent = <&gpio2>;
interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Hynitron CST816x Series Capacitive Touch controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/hynitron,cst816x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Oleh Kuzhylnyi <kuzhylol@gmail.com>"
Bindings for CST816x high performance self-capacitance touch chip series with single point gesture and real two-point operation.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "hynitron,cst816s"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Slide up gesture
Item 2
Slide down gesture
Item 3
Slide left gesture
Item 4
Slide right gesture
Item 5
Long press gesture
Required in this object (required): "compatible", "reg", "interrupts"
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/linux-event-codes.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@15 {
compatible = "hynitron,cst816s";
reg = <0x15>;
interrupt-parent = <&gpio0>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_LEFT>, <KEY_RIGHT>,
<BTN_TOOL_TRIPLETAP>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Ilitek ILI21xx/ILI251x V3/V6 touch screen controller with i2c interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ilitek,ili210x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>", "Marek Vasut <marek.vasut+renesas@mailbox.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ilitek,ili210x", "ilitek,ili2117", "ilitek,ili2120", "ilitek,ili251x"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@41 {
compatible = "ilitek,ili2120";
reg = <0x41>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Imagis IST30XXC family touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/imagis,ist3038c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Markuss Broks <markuss.broks@gmail.com>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen@[0-9a-f]+$"
compatible — required here #
Allowed values (enum): "imagis,ist3032c", "imagis,ist3038", "imagis,ist3038b", "imagis,ist3038c", "imagis,ist3038h"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Power supply regulator for the chip
vddio-supply — not listed as required here #
Power supply regulator for the I2C bus
linux,keycodes — not listed as required here #
Keycodes for the touch keys
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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.
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.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
linux,keycodes— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@50 {
compatible = "imagis,ist3038c";
reg = <0x50>;
interrupt-parent = <&gpio>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&ldo1_reg>;
vddio-supply = <&ldo2_reg>;
touchscreen-size-x = <720>;
touchscreen-size-y = <1280>;
touchscreen-fuzz-x = <10>;
touchscreen-fuzz-y = <10>;
touchscreen-inverted-x;
touchscreen-inverted-y;
};
};
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@50 {
compatible = "imagis,ist3032c";
reg = <0x50>;
interrupt-parent = <&gpio>;
interrupts = <72 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&ldo2>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
linux,keycodes = <KEY_APPSELECT>, <KEY_BACK>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MELFAS MIP4 Touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/melfas,mip4_ts.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ariel D'Alessandro <ariel.dalessandro@collabora.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "melfas,mip4_ts"
reg — required here #
I2C address of the chip (0x48 or 0x34)
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
ce-gpios — not listed as required here #
GPIO connected to the CE (chip enable) pin of the chip (active high)
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@34 {
compatible = "melfas,mip4_ts";
reg = <0x34>;
interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
ce-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&touchscreen_default>;
pinctrl-names = "default";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Melfas MMS114 family touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/melfas,mms114.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen(@.*)?$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"melfas,mms114","melfas,mms134s","melfas,mms136","melfas,mms152","melfas,mms345l"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"melfas,mms114"
reg — required here #
I2C address
clock-frequency — not listed as required here #
I2C client clock frequency, defined for host
Minimum value (minimum): 100000
Maximum value (maximum): 400000
interrupts — required here #
Maximum number of items (maxItems): 1
avdd-supply — not listed as required here #
Analog power supply regulator on AVDD pin
vdd-supply — not listed as required here #
Digital power supply regulator on VDD pin
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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-fuzz-pressure — 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-max-pressure — not listed as required here #
true — No constraints added by this property rule.
linux,keycodes — not listed as required here #
Keycodes for the touch keys
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 15
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@48 {
compatible = "melfas,mms114";
reg = <0x48>;
interrupt-parent = <&gpio>;
interrupts = <39 IRQ_TYPE_EDGE_FALLING>;
avdd-supply = <&ldo1_reg>;
vdd-supply = <&ldo2_reg>;
touchscreen-size-x = <720>;
touchscreen-size-y = <1280>;
touchscreen-fuzz-x = <10>;
touchscreen-fuzz-y = <10>;
touchscreen-fuzz-pressure = <10>;
touchscreen-inverted-x;
touchscreen-inverted-y;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MStar msg2638 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/mstar,msg2638.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vincent Knecht <vincent.knecht@mailoo.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mstar,msg2138", "mstar,msg2638"
reg — required here #
Exact value (const): 38
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Power supply regulator for the chip
vddio-supply — not listed as required here #
Power supply regulator for the I2C bus
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — required here #
true — No constraints added by this property rule.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@26 {
compatible = "mstar,msg2638";
reg = <0x26>;
interrupt-parent = <&msmgpio>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&ts_int_reset_default>;
vdd-supply = <&pm8916_l17>;
vddio-supply = <&pm8916_l5>;
touchscreen-size-x = <2048>;
touchscreen-size-y = <2048>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Neonode infrared touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/neonode,zforce.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
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): "neonode,zforce"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
irq-gpios — not listed as required here #
Maximum number of items (maxItems): 1
x-size — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
y-size — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@50 {
compatible = "neonode,zforce";
reg = <0x50>;
interrupts = <2 0>;
vdd-supply = <®_zforce_vdd>;
reset-gpios = <&gpio5 9 0>; /* RST */
irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
touchscreen-min-x = <0>;
touchscreen-size-x = <800>;
touchscreen-min-y = <0>;
touchscreen-size-y = <600>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Novatek NVT Touchscreen Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/novatek,nvt-ts.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Hans de Goede <hdegoede@redhat.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "novatek,nt11205-ts", "novatek,nt36672a-ts"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
iovcc-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@1 {
compatible = "novatek,nt36672a-ts";
reg = <0x01>;
interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
vcc-supply = <&vreg_l22a_2p85>;
iovcc-supply = <&vreg_l14a_1p8>;
pinctrl-0 = <&ts_int_default &ts_reset_default>;
pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>;
pinctrl-names = "default", "sleep";
touchscreen-size-x = <1080>;
touchscreen-size-y = <2246>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP LPC32xx SoC Touchscreen Controller (TSC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/nxp,lpc3220-tsc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc3220-tsc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/lpc32xx-clock.h>
touchscreen@40048000 {
compatible = "nxp,lpc3220-tsc";
reg = <0x40048000 0x1000>;
interrupt-parent = <&mic>;
interrupts = <39 0>;
clocks = <&clk LPC32XX_CLK_ADC>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Pixcir Touchscreen Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/pixcir,pixcir_ts.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "pixcir,pixcir_ts", "pixcir,pixcir_tangoc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
attb-gpio — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wake-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "attb-gpio", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@5c {
compatible = "pixcir,pixcir_ts";
reg = <0x5c>;
interrupts = <2 0>;
attb-gpio = <&gpf 2 0 2>;
touchscreen-size-x = <800>;
touchscreen-size-y = <600>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Generic resistive touchscreen ADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
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
Item 2
Rule 2
Array item rules (
items)Item 1
Item 2
Item 3
Rule 3
Array item rules (
items)Item 1
Item 2
Item 3
Item 4
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)
Rohm BU21013 touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/rohm,bu21013.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Rohm BU21013 I2C driven touchscreen controller.
Maintainers (maintainers): "Dario Binacchi <dario.binacchi@amarulasolutions.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "rohm,bu21013_tp"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
touch-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO registering a touch event.
avdd-supply — not listed as required here #
Analogic power supply
rohm,touch-max-x — not listed as required here #
Deprecated (deprecated): true
Maximum value on the X axis.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
rohm,touch-max-y — not listed as required here #
Deprecated (deprecated): true
Maximum value on the Y axis.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
rohm,flip-x — not listed as required here #
Deprecated (deprecated): true
Flip touch coordinates on the X axis
Value type (type): "boolean"
rohm,flip-y — not listed as required here #
Deprecated (deprecated): true
Flip touch coordinates on the Y axis
Value type (type): "boolean"
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-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-swapped-x-y — 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): "compatible", "reg", "reset-gpios", "interrupts"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@5c {
compatible = "rohm,bu21013_tp";
reg = <0x5c>;
interrupt-parent = <&gpio2>;
interrupts = <0x20 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
avdd-supply = <&ab8500_ldo_aux1_reg>;
touchscreen-size-x = <384>;
touchscreen-size-y = <704>;
touchscreen-inverted-y;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung S6SY761 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/samsung,s6sy761.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andi Shyti <andi.shyti@kernel.org>"
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): "samsung,s6sy761"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
true — No constraints added by this property rule.
vdd-supply — 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", "reg", "interrupts", "avdd-supply", "vdd-supply"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@48 {
compatible = "samsung,s6sy761";
reg = <0x48>;
interrupt-parent = <&gpa1>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
avdd-supply = <&ldo30_reg>;
vdd-supply = <&ldo31_reg>;
touchscreen-size-x = <4096>;
touchscreen-size-y = <4096>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Silead GSL1680 Touchscreen Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/silead,gsl1680.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "silead,gsl1680", "silead,gsl1688", "silead,gsl3670", "silead,gsl3675", "silead,gsl3692"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
power-gpios — required here #
Maximum number of items (maxItems): 1
firmware-name — not listed as required here #
Maximum number of items (maxItems): 1
File basename for board specific firmware
silead,max-fingers — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 5
Maximum number of fingers the touchscreen can detect
silead,home-button — not listed as required here #
Value type (type): "boolean"
Does the device have a capacitive home-button build into the touchscreen?
avdd-supply — not listed as required here #
Regulator phandle for controller AVDD
vddio-supply — not listed as required here #
Regulator phandle for controller VDDIO
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "power-gpios", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@40 {
compatible = "silead,gsl1680";
reg = <0x40>;
interrupt-parent = <&pio>;
interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
silead,max-fingers = <5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Sitronix st1232 or st1633 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/sitronix,st1232.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bastian Hecht <hechtb@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"sitronix,st1624"Item 2
Exact value (
const):"sitronix,st1633"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
gpios — not listed as required here #
A phandle to the reset GPIO
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/linux-event-codes.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@55 {
compatible = "sitronix,st1232";
reg = <0x55>;
interrupts = <2 0>;
gpios = <&gpio1 166 0>;
touch-overlay {
segment-0 {
label = "Touchscreen";
x-origin = <0>;
x-size = <240>;
y-origin = <40>;
y-size = <280>;
};
segment-1a {
label = "Camera light";
linux,code = <KEY_LIGHTS_TOGGLE>;
x-origin = <40>;
x-size = <40>;
y-origin = <0>;
y-size = <40>;
};
segment-2a {
label = "Power";
linux,code = <KEY_POWER>;
x-origin = <160>;
x-size = <40>;
y-origin = <0>;
y-size = <40>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ST-Microelectronics FingerTip touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/st,stmfts.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
The ST-Microelectronics FingerTip device provides a basic touchscreen functionality. Along with it the user can enable the touchkey which can work as a basic HOME and BACK key for phones.
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): "st,stmfts"
reg — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
Analogic power supply
interrupts — required here #
Maximum number of items (maxItems): 1
ledvdd-supply — not listed as required here #
Power supply to the touch key leds
touch-key-connected — not listed as required here #
Value type (type): "boolean"
The touchkey feature is connected
vdd-supply — required here #
Power supply
Required in this object (required): "compatible", "reg", "avdd-supply", "interrupts", "vdd-supply"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@49 {
compatible = "st,stmfts";
reg = <0x49>;
interrupt-parent = <&gpa1>;
interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
touchscreen-size-x = <1599>;
touchscreen-size-y = <2559>;
touch-key-connected;
avdd-supply = <&ldo30_reg>;
vdd-supply = <&ldo31_reg>;
ledvdd-supply = <&ldo33_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
TI's SPI driven touch screen controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ti,ads7843.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Stein <alexander.stein@ew.tq-group.com>", "Dmitry Torokhov <dmitry.torokhov@gmail.com>", "Marek Vasut <marex@denx.de>"
TI's ADS7843, ADS7845, ADS7846, ADS7873, TSC2046 SPI driven touch screen controllers.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,ads7843", "ti,ads7845", "ti,ads7846", "ti,ads7873", "ti,tsc2046"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
pendown-gpio — not listed as required here #
Maximum number of items (maxItems): 1
GPIO handle describing the pin the !PENIRQ line is connected to.
vcc-supply — not listed as required here #
A regulator node for the supply voltage.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
ti,debounce-max — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Max number of additional readings per sample.
ti,debounce-rep — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Additional consecutive good readings required after the first two.
ti,debounce-tol — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Tolerance used for filtering.
ti,hsync-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO line to poll for hsync.
ti,keep-vref-on — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Set to keep Vref on for differential measurements as well.
ti,pendown-gpio-debounce — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Platform specific debounce time for the pendown-gpio.
ti,penirq-recheck-delay-usecs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
If set to non-zero, after samples are taken this delay is applied and penirq is rechecked, to help avoid false events. This value is affected by the material used to build the touch layer.
ti,pressure-max — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum reported pressure value.
ti,pressure-min — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Minimum reported pressure value (threshold).
ti,settle-delay-usec — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Settling time of the analog signals; a function of Vcc and the capacitance on the X/Y drivers. If set to non-zero, two samples are taken with settle_delay us apart, and the second one is used. ~150 uSec with 0.01uF caps.
ti,swap-xy — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Swap x and y axis.
ti,vref-delay-usecs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Vref supply delay in usecs, 0 for external Vref.
ti,vref-mv — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
The VREF voltage, in millivolts. Set to 0 to use internal references (ADS7846).
ti,x-plate-ohms — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Resistance of the X-plate, in Ohms.
ti,x-max — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum value on the X axis.
ti,x-min — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Minimum value on the X axis.
ti,y-plate-ohms — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Resistance of the Y-plate, in Ohms.
ti,y-max — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum value on the Y axis.
ti,y-min — not listed as required here #
Deprecated (deprecated): true
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Minimum value on the Y axis.
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
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) #
spi{
#address-cells = <1>;
#size-cells = <0>;
touchscreen@0 {
compatible = "ti,tsc2046";
reg = <0>; /* CS0 */
interrupt-parent = <&gpio1>;
interrupts = <8 0>; /* BOOT6 / GPIO 8 */
pendown-gpio = <&gpio1 8 0>;
spi-max-frequency = <1000000>;
vcc-supply = <®_vcc3>;
wakeup-source;
ti,pressure-max = /bits/ 16 <255>;
ti,x-max = /bits/ 16 <8000>;
ti,x-min = /bits/ 16 <0>;
ti,x-plate-ohms = /bits/ 16 <40>;
ti,y-max = /bits/ 16 <4800>;
ti,y-min = /bits/ 16 <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI AM3359 Touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,am3359-tsc"
ti,wires — required here #
Wires refer to application modes i.e. 4/5/8 wire touchscreen support on the platform.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 4, 5, 8
ti,x-plate-resistance — required here #
X plate resistance
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ti,coordinate-readouts — required here #
The sequencer supports a total of 16 programmable steps. Each step is used to read a single coordinate. A single readout is enough but multiple reads can increase the quality. A value of 5 means, 5 reads for X, 5 for Y and 2 for Z (always). This utilises 12 of the 16 software steps available. The remaining 4 can be used by the ADC.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 6
ti,wire-config — required here #
Different boards could have a different order for connecting wires on touchscreen. We need to provide an 8-bit number where the first four bits represent the analog lines and the next 4 bits represent positive/negative terminal on that input line. Notations to represent the input lines and terminals respectively are as follows, AIN0 = 0, AIN1 = 1 and so on until AIN7 = 7. XP = 0, XN = 1, YP = 2, YN = 3.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 8
ti,charge-delay — not listed as required here #
Length of touch screen charge delay step in terms of ADC clock cycles. Charge delay value should be large in order to avoid false pen-up events. This value effects the overall sampling speed, hence need to be kept as low as possible, while avoiding false pen-up event. Start from a lower value, say 0x400, and increase value until false pen-up events are avoided. The pen-up detection happens immediately after the charge step, so this does in fact function as a hardware knob for adjusting the amount of "settling time".
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "ti,wires", "ti,x-plate-resistance", "ti,coordinate-readouts", "ti,wire-config"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
tsc {
compatible = "ti,am3359-tsc";
ti,wires = <4>;
ti,x-plate-resistance = <200>;
ti,coordinate-readouts = <5>;
ti,wire-config = <0x00 0x11 0x22 0x33>;
ti,charge-delay = <0x400>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TSC2004 and TSC2005 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ti,tsc2005.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marex@denx.de>", "Michael Welling <mwelling@ieee.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen(@.*)?$"
compatible — required here #
Allowed values (enum): "ti,tsc2004", "ti,tsc2005"
reg — required here #
Maximum number of items (maxItems): 1
I2C address when used on the I2C bus, or the SPI chip select index when used on the SPI bus
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO specifier for the controller reset line
spi-max-frequency — not listed as required here #
TSC2005 SPI bus clock frequency.
Maximum value (maximum): 25000000
ti,x-plate-ohms — not listed as required here #
resistance of the touchscreen's X plates in ohm (defaults to 280)
ti,esd-recovery-timeout-ms — not listed as required here #
if the touchscreen does not respond after the configured time (in milli seconds), the driver will reset it. This is disabled by default.
vio-supply — not listed as required here #
Regulator specifier
touchscreen-fuzz-pressure — 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-max-pressure — not listed as required here #
true — No constraints added by this property rule.
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.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,tsc2004"When the condition matches (
then) #Properties and child nodes (
properties)
spi-max-frequency— not listed as required here
false— Not permitted 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): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@48 {
compatible = "ti,tsc2004";
reg = <0x48>;
vio-supply = <&vio>;
reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>;
touchscreen-fuzz-x = <4>;
touchscreen-fuzz-y = <7>;
touchscreen-fuzz-pressure = <2>;
touchscreen-size-x = <4096>;
touchscreen-size-y = <4096>;
touchscreen-max-pressure = <2048>;
ti,x-plate-ohms = <280>;
ti,esd-recovery-timeout-ms = <8000>;
};
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@0 {
compatible = "ti,tsc2005";
spi-max-frequency = <6000000>;
reg = <0>;
vio-supply = <&vio>;
reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
touchscreen-fuzz-x = <4>;
touchscreen-fuzz-y = <7>;
touchscreen-fuzz-pressure = <2>;
touchscreen-size-x = <4096>;
touchscreen-size-y = <4096>;
touchscreen-max-pressure = <2048>;
ti,x-plate-ohms = <280>;
ti,esd-recovery-timeout-ms = <8000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments tsc2007 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/ti,tsc2007.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,tsc2007"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
ti,x-plate-ohms — required here #
X-plate resistance in ohms.
gpios — not listed as required here #
true — No constraints added by this property rule.
pendown-gpio — not listed as required here #
true — No constraints added by this property rule.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
ti,max-rt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
maximum pressure.
ti,fuzzx — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
specifies the absolute input fuzz x value. If set, it will permit noise in the data up to +- the value given to the fuzz parameter, that is used to filter noise from the event stream.
ti,fuzzy — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
specifies the absolute input fuzz y value.
ti,fuzzz — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
specifies the absolute input fuzz z value.
ti,poll-period — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
how much time to wait (in milliseconds) before reading again the values from the tsc2007.
#io-channel-cells — not listed as required here #
Exact value (const): 1
Required in this object (required): "compatible", "reg", "ti,x-plate-ohms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
touch@49 {
compatible = "ti,tsc2007";
reg = <0x49>;
interrupt-parent = <&gpio4>;
interrupts = <0x0 0x8>;
gpios = <&gpio4 0 0>;
ti,x-plate-ohms = <180>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Toradex Colibri VF50 Touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/toradex,vf50-touchscreen.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>", "Sanchayan Maity <maitysanchayan@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "toradex,vf50-touchscreen"
interrupts — required here #
Maximum number of items (maxItems): 1
io-channels — required here #
Maximum number of items (maxItems): 4
adc channels being used by the Colibri VF50 module IIO ADC for Y-, X-, Y+, X+ connections
xp-gpios — required here #
FET gate driver for input of X+
xm-gpios — required here #
FET gate driver for input of X-
yp-gpios — required here #
FET gate driver for input of Y+
ym-gpios — required here #
FET gate driver for input of Y-
vf50-ts-min-pressure — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 50
Maximum value (maximum): 2000
pressure level at which to stop measuring X/Y values
Required in this object (required): "compatible", "io-channels", "xp-gpios", "xm-gpios", "yp-gpios", "ym-gpios", "interrupts", "vf50-ts-min-pressure"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
touchscreen {
compatible = "toradex,vf50-touchscreen";
interrupt-parent = <&gpio0>;
interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
io-channels = <&adc1 0>, <&adc0 0>, <&adc0 1>, <&adc1 2>;
xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
pinctrl-names = "idle", "default";
pinctrl-0 = <&pinctrl_touchctrl_idle>, <&pinctrl_touchctrl_gpios>;
pinctrl-1 = <&pinctrl_touchctrl_default>, <&pinctrl_touchctrl_gpios>;
vf50-ts-min-pressure = <200>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Common touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
Properties and child nodes (properties) #
panel — not listed as required here #
If this touchscreen is integrally connected to a panel, this is a reference to that panel. The presence of this reference indicates that the touchscreen should be power sequenced together with the panel and that they may share power and/or reset signals.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
touchscreen-min-x — not listed as required here #
minimum x coordinate reported
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
touchscreen-min-y — not listed as required here #
minimum y coordinate reported
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
touchscreen-size-x — not listed as required here #
horizontal resolution of touchscreen (maximum x coordinate reported + 1)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-size-y — not listed as required here #
vertical resolution of touchscreen (maximum y coordinate reported + 1)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-max-pressure — not listed as required here #
maximum reported pressure (arbitrary range dependent on the controller)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-min-pressure — not listed as required here #
minimum pressure on the touchscreen to be achieved in order for the touchscreen driver to report a touch event.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-fuzz-x — not listed as required here #
horizontal noise value of the absolute input device (in pixels)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-fuzz-y — not listed as required here #
vertical noise value of the absolute input device (in pixels)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-fuzz-pressure — not listed as required here #
pressure noise value of the absolute input device (arbitrary range dependent on the controller)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-average-samples — not listed as required here #
Number of data samples which are averaged for each read (valid values dependent on the controller)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
touchscreen-inverted-x — not listed as required here #
X axis is inverted
Value type (type): "boolean"
touchscreen-inverted-y — not listed as required here #
Y axis is inverted
Value type (type): "boolean"
touchscreen-swapped-x-y — not listed as required here #
X and Y axis are swapped Swapping is done after inverting the axis
Value type (type): "boolean"
touchscreen-x-mm — not listed as required here #
horizontal length in mm of the touchscreen
touchscreen-y-mm — not listed as required here #
vertical length in mm of the touchscreen
touchscreen-x-plate-ohms — not listed as required here #
Resistance of the X-plate in Ohms
touchscreen-y-plate-ohms — not listed as required here #
Resistance of the Y-plate in Ohms
touch-overlay — not listed as required here #
List of nodes defining segments (touch areas) on the touchscreen.
This object can be used to describe a series of segments to restrict the region within touch events are reported or buttons with a specific functionality.
This is of special interest if the touchscreen is shipped with a physical overlay on top of it with a frame that hides some part of the original touchscreen area. Printed buttons on that overlay are also a typical use case.
A new touchscreen area is defined as a sub-node without a key code. If a key code is defined in the sub-node, it will be interpreted as a button.
The x-origin and y-origin properties of a touchscreen area define the offset of a new origin from where the touchscreen events are referenced. This offset is applied to the events accordingly. The x-size and y-size properties define the size of the touchscreen effective area.
The following example shows a new touchscreen area with the new origin (0',0') for the touch events generated by the device.
Touchscreen (full area)
┌────────────────────────────────────────┐
│ ┌───────────────────────────────┐ │
│ │ │ │
│ ├ y-size │ │
│ │ │ │
│ │ touchscreen area │ │
│ │ (no key code) │ │
│ │ │ │
│ │ x-size │ │
│ ┌└──────────────┴────────────────┘ │
│(0',0') │
┌└────────────────────────────────────────┘
(0,0)
where (0',0') = (0+x-origin,0+y-origin)
Sub-nodes with key codes report the touch events on their surface as key events instead.
The following example shows a touchscreen with a single button on it.
Touchscreen (full area)
┌───────────────────────────────────┐
│ │
│ │
│ ┌─────────┐ │
│ │button 0 │ │
│ │KEY_POWER│ │
│ └─────────┘ │
│ │
│ │
┌└───────────────────────────────────┘
(0,0)
Segments defining buttons and clipped toushcreen areas can be combined as shown in the following example. In that case only the events within the touchscreen area are reported as touch events. Events within the button areas report their associated key code. Any events outside the defined areas are ignored.
Touchscreen (full area)
┌─────────┬──────────────────────────────┐
│ │ │
│ │ ┌───────────────────────┐ │
│ button 0│ │ │ │
│KEY_POWER│ │ │ │
│ │ │ │ │
├─────────┤ │ touchscreen area │ │
│ │ │ (no key code) │ │
│ │ │ │ │
│ button 1│ │ │ │
│ KEY_INFO│ ┌└───────────────────────┘ │
│ │(0',0') │
┌└─────────┴──────────────────────────────┘
(0,0)
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^segment- — name matches this regular expression
Value type (type): "object"
Each segment is represented as a sub-node.
Properties and child nodes (properties)
x-origin — required here
horizontal origin of the node area
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
y-origin — required here
vertical origin of the node area
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
x-size — required here
horizontal resolution of the node area
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
y-size — required here
vertical resolution of the node area
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
label — not listed as required here
descriptive name of the segment
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
linux,code — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "x-origin", "y-origin", "x-size", "y-size"
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
debounce-delay-us — not listed as required here #
Minimum duration in microseconds a signal must remain stable to be considered valid.
Property dependencies (dependencies) #
touchscreen-size-x — applies when this property is present #
Also requires: "touchscreen-size-y"
touchscreen-size-y — applies when this property is present #
Also requires: "touchscreen-size-x"
touchscreen-x-mm — applies when this property is present #
Also requires: "touchscreen-y-mm"
touchscreen-y-mm — applies when this property is present #
Also requires: "touchscreen-x-mm"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Trivial touch screen controller with i2c interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/trivial-touch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "azoteq,iqs550", "azoteq,iqs572", "azoteq,iqs525", "himax,hx83100a", "himax,hx83112b", "hynitron,cst340", "ilitek,ili2130", "ilitek,ili2131", "ilitek,ili2132", "ilitek,ili2316", "ilitek,ili2322", "ilitek,ili2323", "ilitek,ili2326", "ilitek,ili2520", "ilitek,ili2521", "maxim,max11801", "microchip,ar1021-i2c", "semtech,sx8650", "semtech,sx8654", "semtech,sx8655", "semtech,sx8656"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@48 {
compatible = "maxim,max11801";
reg = <0x48>;
interrupt-parent = <&gpio3>;
interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 15: The Azoteq IQS550, IQS572 and IQS525 trackpad and touchscreen controllers
Line 19: Himax hx83100a touchscreen controller
Line 21: Himax hx83112b touchscreen controller
Line 23: Hynitron cstxxx series touchscreen controller
Line 25: Ilitek I2C Touchscreen Controller
Line 35: MAXI MAX11801 Resistive touch screen controller with i2c interface
Line 37: Microchip AR1020 and AR1021 touchscreen interface (I2C)
Line 39: Trivial touch screen controller with i2c interface
Zeitec ZET6223 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/zeitec,zet6223.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Zeitec ZET6223 I2C driven touchscreen controller.
Maintainers (maintainers): "Dario Binacchi <dario.binacchi@amarulasolutions.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "zeitec,zet6223"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vio-supply — not listed as required here #
1.8V or 3.3V VIO supply.
vcc-supply — not listed as required here #
3.3V VCC supply.
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-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-swapped-x-y — 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): "compatible", "reg", "interrupts"
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@76 {
compatible = "zeitec,zet6223";
reg = <0x76>;
interrupt-parent = <&pio>;
interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Zinitix BT4xx and BT5xx series touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings / touchscreen
Schema identifier ($id): "http://devicetree.org/schemas/input/touchscreen/zinitix,bt400.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Zinitix BT4xx and BT5xx series of touchscreen controllers are Korea-produced touchscreens with embedded microcontrollers. The BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014.
Maintainers (maintainers): "Michael Srba <Michael.Srba@seznam.cz>", "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen.yaml#
Rule 2 #
Shared schema rule (
$ref):../input.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^touchscreen(@.*)?$"
compatible — required here #
Allowed values (enum): "zinitix,bt402", "zinitix,bt403", "zinitix,bt404", "zinitix,bt412", "zinitix,bt413", "zinitix,bt431", "zinitix,bt432", "zinitix,bt531", "zinitix,bt532", "zinitix,bt538", "zinitix,bt541", "zinitix,bt548", "zinitix,bt554", "zinitix,at100"
reg — required here #
I2C address on the I2C bus
clock-frequency — not listed as required here #
I2C client clock frequency, defined for host when using the device on the I2C bus
Minimum value (minimum): 0
Maximum value (maximum): 400000
interrupts — required here #
Interrupt to host
Maximum number of items (maxItems): 1
vcca-supply — not listed as required here #
Analog power supply regulator on the VCCA pin
vdd-supply — not listed as required here #
Digital power supply regulator on the VDD pin. In older device trees this can be the accidental name for the analog supply on the VCCA pin, and in that case the deprecated vddo-supply is used for the digital power supply.
vddo-supply — not listed as required here #
Deprecated name for the digital power supply, use vdd-supply as this reflects the real name of the pin. If this supply is present, the vdd-supply represents VCCA instead of VDD. Implementers should first check for this property, and if it is present assume that the vdd-supply represents the analog supply.
Deprecated (deprecated): true
reset-gpios — not listed as required here #
Reset line for the touchscreen, should be tagged as GPIO_ACTIVE_LOW
zinitix,mode — not listed as required here #
Mode of reporting touch points. Some modes may not work with a particular ts firmware for unknown reasons. Available modes are 1 and 2. Mode 2 is the default and preferred.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
linux,keycodes — not listed as required here #
This property specifies an array of keycodes assigned to the touch-keys that can be present in some touchscreen configurations. If the touch-keys are enabled, controller firmware will assign some touch sense lines to those keys.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
touchscreen-size-x — required here #
true — No constraints added by this property rule.
touchscreen-size-y — 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.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "touchscreen-size-x", "touchscreen-size-y"
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@20 {
compatible = "zinitix,bt541";
reg = <0x20>;
interrupt-parent = <&gpio>;
interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
vcca-supply = <®_vcca_tsp>;
vdd-supply = <®_vdd_tsp>;
touchscreen-size-x = <540>;
touchscreen-size-y = <960>;
zinitix,mode = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Adafruit Mini I2C Gamepad with seesaw
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/adafruit,seesaw-gamepad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
Adafruit Mini I2C Gamepad
+-----------------------------+
| ___ |
| / \ (X) |
| | S | __ __ (Y) (A) |
| \___/ |ST| |SE| (B) |
| |
+-----------------------------+
S -> 10-bit precision bidirectional analog joystick ST -> Start SE -> Select X, A, B, Y -> Digital action buttons
Datasheet: https://cdn-learn.adafruit.com/downloads/pdf/gamepad-qt.pdf Product page: https://www.adafruit.com/product/5743 Arduino Driver: https://github.com/adafruit/Adafruit_Seesaw
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adafruit,seesaw-gamepad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
The gamepad's IRQ pin triggers a rising edge if interrupts are enabled.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
joystick@50 {
compatible = "adafruit,seesaw-gamepad";
interrupts = <18 IRQ_TYPE_EDGE_RISING>;
reg = <0x50>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ADC attached joystick
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/adc-joystick.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Artur Rojek <contact@artur-rojek.eu>"
Bindings for joystick devices connected to ADC controllers supporting the Industrial I/O subsystem.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adc-joystick"
io-channels — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 1024
List of phandle and IIO specifier pairs. Each pair defines one ADC channel to which a joystick axis is connected. See https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml for details.
poll-interval — not listed as required here #
true — No constraints added by this property rule.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "io-channels", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^axis@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents a joystick axis bound to the given ADC channel. For each entry in the io-channels list, one axis subnode with a matching reg property must be specified.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 1023
Index of an io-channels list entry bound to this axis.
linux,code — required here
EV_ABS specific event code generated by the axis.
abs-range — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items)
Item 1
minimum value
Item 2
maximum value
Minimum and maximum values produced by the axis. For an ABS_X axis this will be the left-most and right-most inclination of the joystick. If min > max, it is left to userspace to treat the axis as inverted. This property is interpreted as two signed 32 bit values.
abs-fuzz — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Amount of noise in the input value. Omitting this property indicates the axis is precise.
abs-flat — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Axial "deadzone", or area around the center position, where the axis is considered to be at rest. Omitting this property indicates the axis always returns to exactly the center position.
Required in this object (required): "reg", "linux,code", "abs-range"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/iio/adc/ingenic,adc.h>
#include <dt-bindings/input/input.h>
joystick: adc-joystick {
compatible = "adc-joystick";
io-channels = <&adc INGENIC_ADC_TOUCH_XP>,
<&adc INGENIC_ADC_TOUCH_YP>;
#address-cells = <1>;
#size-cells = <0>;
axis@0 {
reg = <0>;
linux,code = <ABS_X>;
abs-range = <3300 0>;
abs-fuzz = <4>;
abs-flat = <200>;
};
axis@1 {
reg = <1>;
linux,code = <ABS_Y>;
abs-range = <0 3300>;
abs-fuzz = <4>;
abs-flat = <200>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019-2020 Artur Rojek
ADC attached resistor ladder buttons
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/adc-keys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "adc-keys"
io-channels — required here #
Maximum number of items (maxItems): 1
io-channel-names — required here #
Exact value (const): "buttons"
keyup-threshold-microvolt — required here #
Voltage above or equal to which all the keys are considered up.
poll-interval — not listed as required here #
true — No constraints added by this property rule.
autorepeat — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^button- — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Each button (key) is represented as a sub-node.
Properties and child nodes (properties) #
label — not listed as required here
true — No constraints added by this property rule.
linux,code — required here
true — No constraints added by this property rule.
press-threshold-microvolt — required here
Voltage above or equal to which this key is considered pressed. No two values of press-threshold-microvolt may be the same. All values of press-threshold-microvolt must be less than keyup-threshold-microvolt.
Required in this object (required): "linux,code", "press-threshold-microvolt"
Required in this object (required): "compatible", "io-channels", "io-channel-names", "keyup-threshold-microvolt"
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>
// +--------------------------------+------------------------+
// | 2.000.000 <= value | no key pressed |
// +--------------------------------+------------------------+
// | 1.500.000 <= value < 2.000.000 | KEY_VOLUMEUP pressed |
// +--------------------------------+------------------------+
// | 1.000.000 <= value < 1.500.000 | KEY_VOLUMEDOWN pressed |
// +--------------------------------+------------------------+
// | 500.000 <= value < 1.000.000 | KEY_ENTER pressed |
// +--------------------------------+------------------------+
// | value < 500.000 | no key pressed |
// +--------------------------------+------------------------+
adc-keys {
compatible = "adc-keys";
io-channels = <&lradc 0>;
io-channel-names = "buttons";
keyup-threshold-microvolt = <2000000>;
button-up {
label = "Volume Up";
linux,code = <KEY_VOLUMEUP>;
press-threshold-microvolt = <1500000>;
};
button-down {
label = "Volume Down";
linux,code = <KEY_VOLUMEDOWN>;
press-threshold-microvolt = <1000000>;
};
button-enter {
label = "Enter";
linux,code = <KEY_ENTER>;
press-threshold-microvolt = <500000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Analog Devices ADP5588 Keypad Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/adi,adp5588.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nuno Sá <nuno.sa@analog.com>"
Analog Devices Mobile I/O Expander and QWERTY Keypad Controller https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Rule 2 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adp5587", "adi,adp5588"
reg — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Supply Voltage Input
reset-gpios — not listed as required here #
If specified, it will be asserted during driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
This property applies if either keypad,num-rows lower than 8 or keypad,num-columns lower than 10.
#gpio-cells — not listed as required here #
Exact value (const): 2
interrupt-controller — not listed as required here #
This property applies if either keypad,num-rows lower than 8 or keypad,num-columns lower than 10. This property is optional if keypad,num-rows or keypad,num-columns are not specified as the device is then configured to be used purely for gpio during which interrupts may or may not be utilized.
#interrupt-cells — not listed as required here #
Exact value (const): 2
adi,unlock-keys — not listed as required here #
Specifies a maximum of 2 keys that can be used to unlock the keypad. If this property is set, the keyboard will be locked and only unlocked after these keys are pressed. If only one key is set, a double click is needed to unlock the keypad. The value of this property cannot be bigger or equal than keypad,num-rows * keypad,num-columns.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Property dependencies (dependencies) #
keypad,num-rows — applies when this property is present #
Also requires: "linux,keymap", "keypad,num-columns"
keypad,num-columns — applies when this property is present #
Also requires: "linux,keymap", "keypad,num-rows"
linux,keymap — applies when this property is present #
Also requires: "keypad,num-rows", "keypad,num-columns", "interrupts"
interrupt-controller — applies when this property is present #
Also requires: "interrupts"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
keys@34 {
compatible = "adi,adp5588";
reg = <0x34>;
vcc-supply = <&vcc>;
interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio>;
reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
keypad,num-rows = <1>;
keypad,num-columns = <9>;
linux,keymap = <
MATRIX_KEY(0x00, 0x00, KEY_1)
MATRIX_KEY(0x00, 0x01, KEY_2)
MATRIX_KEY(0x00, 0x02, KEY_3)
MATRIX_KEY(0x00, 0x03, KEY_4)
MATRIX_KEY(0x00, 0x04, KEY_5)
MATRIX_KEY(0x00, 0x05, KEY_6)
MATRIX_KEY(0x00, 0x06, KEY_7)
MATRIX_KEY(0x00, 0x07, KEY_8)
MATRIX_KEY(0x00, 0x08, KEY_9)
>;
};
};
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
gpio@34 {
compatible = "adi,adp5588";
reg = <0x34>;
#gpio-cells = <2>;
gpio-controller;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A10 LRADC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/allwinner,sun4i-a10-lradc-keys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun4i-a10-lradc-keys"
Rule 2
Exact value (
const):"allwinner,sun8i-a83t-r-lradc"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,suniv-f1c100s-lradc","allwinner,sun50i-a64-lradc"Item 2
Exact value (
const):"allwinner,sun8i-a83t-r-lradc"
Rule 4
Exact value (
const):"allwinner,sun50i-r329-lradc"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun50i-h616-lradc","allwinner,sun20i-d1-lradc"Item 2
Exact value (
const):"allwinner,sun50i-r329-lradc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vref-supply — required here #
Regulator for the LRADC reference voltage
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^button-[0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Properties and child nodes (properties) #
label — required here
Descriptive name of the key
linux,code — required here
true — No constraints added by this property rule.
channel — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
ADC Channel this key is attached to
voltage — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Voltage in microvolts at LRADC input when this key is pressed
Required in this object (required): "label", "linux,code", "channel", "voltage"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "vref-supply"
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 not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
lradc: lradc@1c22800 {
compatible = "allwinner,sun4i-a10-lradc-keys";
reg = <0x01c22800 0x100>;
interrupts = <31>;
vref-supply = <®_vcc3v0>;
button-191 {
label = "Volume Up";
linux,code = <115>;
channel = <0>;
voltage = <191274>;
};
button-392 {
label = "Volume Down";
linux,code = <114>;
channel = <0>;
voltage = <392644>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Dell Wyse 3020 a.k.a. "Ariel" Power Button
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id):
Schema dialect ($schema):
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):
Rule 2 #
Shared schema rule (
$ref):
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):
Item 2
Exact value (
const):
reg — required here #
Maximum number of items (maxItems):
interrupts — required here #
Maximum number of items (maxItems):
spi-max-frequency — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): , ,
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
power-button@0 {
compatible = "dell,wyse-ariel-ec-input", "ene,kb3930-input";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <60 IRQ_TYPE_EDGE_RISING>;
spi-max-frequency = <33000000>;
};
};
Source notes #
Annotations retained from the schema source
Atmel capacitive touch device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/atmel,captouch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dharma balasubiramani <dharma.b@microchip.com>"
Atmel capacitive touch device, typically an Atmel touch sensor connected to AtmegaXX MCU running firmware based on Qtouch library.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "atmel,captouch"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
linux,keycodes — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "reg", "interrupts", "linux,keycodes"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touch@51 {
compatible = "atmel,captouch";
reg = <0x51>;
interrupt-parent = <&tlmm>;
interrupts = <67 IRQ_TYPE_EDGE_FALLING>;
linux,keycodes = <BTN_0>, <BTN_1>,
<BTN_2>, <BTN_3>,
<BTN_4>, <BTN_5>,
<BTN_6>, <BTN_7>;
autorepeat;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Atmel maXTouch touchscreen/touchpad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/atmel,maxtouch.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nick Dyer <nick@shmanahar.org>", "Linus Walleij <linusw@kernel.org>"
Atmel maXTouch touchscreen or touchpads such as the mXT244 and similar devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Shared schema rule (
$ref):touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "atmel,maxtouch"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdda-supply — not listed as required here #
Optional regulator for the AVDD analog voltage.
vdd-supply — not listed as required here #
Optional regulator for the VDD digital voltage.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Optional GPIO specifier for the touchscreen's reset pin (active low). The line must be flagged with GPIO_ACTIVE_LOW.
wake-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Optional GPIO specifier for the touchscreen's wake pin (active low). The line must be flagged with GPIO_ACTIVE_LOW.
linux,gpio-keymap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
When enabled, the SPT_GPIOPWN_T19 object sends messages on GPIO bit changes. An array of up to 8 entries can be provided indicating the Linux keycode mapped to each bit of the status byte, starting at the LSB. Linux keycodes are defined in <dt-bindings/input/input.h>.
Note: the numbering of the GPIOs and the bit they start at varies between maXTouch devices. You must either refer to the documentation, or experiment to determine which bit corresponds to which input. Use KEY_RESERVED for unused padding values.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
atmel,wakeup-method — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The WAKE line is an active-low input that is used to wake up the touch controller from deep-sleep mode before communication with the controller could be started. This optional feature used to minimize current consumption when the controller is in deep sleep mode. This feature is relevant only to some controller families, like mXT1386 controller for example.
The WAKE pin can be connected in one of the following ways: 1) left permanently low 2) connected to the I2C-compatible SCL pin 3) connected to a GPIO pin on the host
Allowed values (enum): 0, 1, 2
Default value (default): 0
wakeup-source — not listed as required here #
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/atmel-maxtouch.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@4a {
compatible = "atmel,maxtouch";
reg = <0x4a>;
interrupt-parent = <&gpio>;
interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
vdda-supply = <&ab8500_ldo_aux2_reg>;
vdd-supply = <&ab8500_ldo_aux5_reg>;
atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 86: ATMEL_MXT_WAKEUP_NONE
Line 87: ATMEL_MXT_WAKEUP_I2C_SCL
Line 88: ATMEL_MXT_WAKEUP_GPIO
Awinic AW86927 LRA Haptic IC
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/awinic,aw86927.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Griffin Kroah-Hartman <griffin.kroah@fairphone.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "awinic,aw86927"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reset-gpios", "interrupts"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
vibrator@5a {
compatible = "awinic,aw86927";
reg = <0x5a>;
interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Azoteq IQS7222A/B/C/D Capacitive Touch Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
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):0Maximum 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):0Maximum 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):0Maximum 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):0Maximum 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):0Maximum 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
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):0Maximum 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):0Maximum 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 hereRule 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 expressionProperties 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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel-([0-9]|1[0-9])$— name matches this regular expressionProperties 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 hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^cycle-[0-9]$— name matches this regular expressionProperties 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 expressionProperties 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 hereRule 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 expressionProperties matching a name pattern (
patternProperties)
^event-(prox|touch)$— name matches this regular expressionProperties 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 hereRule 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 expressionProperties matching a name pattern (
patternProperties)
^event-(prox|touch)$— name matches this regular expressionProperties and child nodes (
properties)
azoteq,gpio-select— not listed as required hereMaximum number of items (
maxItems):1Array item rules (
items)Maximum value (
maximum):0
^slider-[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
azoteq,slider-size— not listed as required hereMultiple of (
multipleOf):16Minimum value (
minimum):16Maximum value (
maximum):4080
azoteq,top-speed— not listed as required hereMultiple of (
multipleOf):4Maximum value (
maximum):1020Properties matching a name pattern (
patternProperties)
^event-(press|tap|(swipe|flick)-(pos|neg))$— name matches this regular expressionProperties and child nodes (
properties)
azoteq,gpio-select— not listed as required hereMaximum number of items (
maxItems):1Array item rules (
items)Maximum value (
maximum):0When the condition does not match (
else) #Properties matching a name pattern (
patternProperties)
^slider-[0-1]$— name matches this regular expressionProperties matching a name pattern (
patternProperties)
^event-(press|tap|(swipe|flick)-(pos|neg))$— name matches this regular expressionProperties 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)
Cirrus Logic CS40L50 Advanced Haptic Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/cirrus,cs40l50.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "James Ogletree <jogletre@opensource.cirrus.com>"
CS40L50 is a haptic driver with waveform memory, integrated DSP, and closed-loop algorithms.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cirrus,cs40l50"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
vdd-a-supply — not listed as required here #
Power supply for internal analog circuits.
vdd-p-supply — not listed as required here #
Power supply for always-on circuits.
vdd-io-supply — required here #
Power supply for digital input/output.
vdd-b-supply — not listed as required here #
Power supply for the boost converter.
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios", "vdd-io-supply"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
haptic-driver@34 {
compatible = "cirrus,cs40l50";
reg = <0x34>;
interrupt-parent = <&gpio>;
interrupts = <113 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio 112 GPIO_ACTIVE_LOW>;
vdd-io-supply = <&vreg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Cirrus ep93xx keypad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/cirrus,ep9307-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#
The KPP is designed to interface with a keypad matrix with 2-point contact or 3-point contact keys. The KPP is designed to simplify the software task of scanning a keypad matrix. The KPP is capable of detecting, debouncing, and decoding one or multiple keys pressed simultaneously on a keypad.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"cirrus,ep9307-keypad"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9312-keypad","cirrus,ep9315-keypad"Item 2
Exact value (
const):"cirrus,ep9307-keypad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
debounce-delay-ms — not listed as required here #
Time in microseconds that key must be pressed or released for state change interrupt to trigger.
cirrus,prescale — not listed as required here #
row/column counter pre-scaler load value
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint16
Maximum value (maximum): 1023
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
keypad@800f0000 {
compatible = "cirrus,ep9307-keypad";
reg = <0x800f0000 0x0c>;
interrupt-parent = <&vic0>;
interrupts = <29>;
clocks = <&eclk EP93XX_CLK_KEYPAD>;
pinctrl-names = "default";
pinctrl-0 = <&keypad_default_pins>;
linux,keymap = <KEY_UP>,
<KEY_DOWN>,
<KEY_VOLUMEDOWN>,
<KEY_HOME>,
<KEY_RIGHT>,
<KEY_LEFT>,
<KEY_ENTER>,
<KEY_VOLUMEUP>,
<KEY_F6>,
<KEY_F8>,
<KEY_F9>,
<KEY_F10>,
<KEY_F1>,
<KEY_F2>,
<KEY_F3>,
<KEY_POWER>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cypress All Points Addressable (APA) I2C Touchpad / Trackpad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/cypress,cyapa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cypress,cyapa"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
vcc-supply — not listed as required here #
3.3V power
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
trackpad@67 {
reg = <0x67>;
compatible = "cypress,cyapa";
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpx1>;
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Samsung TM2 touch key controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/cypress,tm2-touchkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
Touch key controllers similar to the TM2 can be found in a wide range of Samsung devices. They are implemented using many different MCUs, but use a similar I2C protocol.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cypress,tm2-touchkey", "cypress,midas-touchkey", "cypress,aries-touchkey", "coreriver,tc360-touchkey"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
vdd-supply — not listed as required here #
Optional regulator for LED voltage, 3.3V.
vcc-supply — not listed as required here #
Optional regulator for MCU, 1.8V-3.3V (depending on MCU).
vddio-supply — not listed as required here #
Optional regulator that provides digital I/O voltage, e.g. for pulling up the interrupt line or the I2C pins.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Required in this object (required): "compatible", "reg", "interrupts"
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>;
touchkey@20 {
compatible = "cypress,tm2-touchkey";
reg = <0x20>;
interrupt-parent = <&gpa3>;
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
vcc-supply = <&ldo32_reg>;
vdd-supply = <&ldo33_reg>;
linux,keycodes = <KEY_MENU KEY_BACK>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Cypress StreetFighter touchkey controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/cypress-sf.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yassine Oudjana <y.oudjana@protonmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "cypress,sf3155"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
avdd-supply — required here #
Regulator for AVDD analog voltage
vdd-supply — required here #
Regulator for VDD digital voltage
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "reg", "interrupts", "avdd-supply", "vdd-supply"
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>;
touchkey@28 {
compatible = "cypress,sf3155";
reg = <0x28>;
interrupt-parent = <&msmgpio>;
interrupts = <77 IRQ_TYPE_EDGE_FALLING>;
avdd-supply = <&vreg_l6a_1p8>;
vdd-supply = <&vdd_3v2_tp>;
linux,keycodes = <KEY_BACK KEY_MENU>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Dialog Semiconductor DA7280 Low Power High-Definition Haptic Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/dlg,da7280.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Roy Im <roy.im.opensource@diasemi.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "dlg,da7280"
reg — required here #
Maximum number of items (maxItems): 1
I2C address of the device.
interrupts — required here #
Maximum number of items (maxItems): 1
dlg,actuator-type — required here #
Allowed values (enum): "LRA", "ERM-bar", "ERM-coin"
dlg,const-op-mode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Haptic operation mode for FF_CONSTANT
dlg,periodic-op-mode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Haptic operation mode for FF_PERIODIC. The default value is 1 for both of the operation modes. For more details, please see the datasheet
dlg,nom-microvolt — required here #
Minimum value (minimum): 0
Maximum value (maximum): 6000000
Nominal actuator voltage rating
dlg,abs-max-microvolt — required here #
Minimum value (minimum): 0
Maximum value (maximum): 6000000
Absolute actuator maximum voltage rating
dlg,imax-microamp — required here #
Minimum value (minimum): 0
Maximum value (maximum): 252000
Default value (default): 130000
Actuator max current rating
dlg,impd-micro-ohms — required here #
Minimum value (minimum): 0
Maximum value (maximum): 1500000000
Impedance of the actuator
pwms — not listed as required here #
Maximum number of items (maxItems): 1
dlg,ps-seq-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
The PS_SEQ_ID(pattern ID in waveform memory inside chip) to play back when RTWM-MODE is enabled
dlg,ps-seq-loop — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
The PS_SEQ_LOOP, Number of times the pre-stored sequence pointed to by PS_SEQ_ID or GPI(N)_SEQUENCE_ID is repeated
dlg,gpi0-seq-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
the GPI0_SEQUENCE_ID, pattern to play when gpi0 is triggered
dlg,gpi1-seq-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
the GPI1_SEQUENCE_ID, pattern to play when gpi1 is triggered
dlg,gpi2-seq-id — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
the GPI2_SEQUENCE_ID, pattern to play when gpi2 is triggered
dlg,gpi0-mode — not listed as required here #
Allowed values (enum): "Single-pattern", "Multi-pattern"
Pattern mode for gpi0
dlg,gpi1-mode — not listed as required here #
Allowed values (enum): "Single-pattern", "Multi-pattern"
Pattern mode for gpi1
dlg,gpi2-mode — not listed as required here #
Allowed values (enum): "Single-pattern", "Multi-pattern"
Pattern mode for gpi2
dlg,gpi0-polarity — not listed as required here #
Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"
gpi0 polarity, Haptic will work by this edge option in case of ETWM mode
dlg,gpi1-polarity — not listed as required here #
Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"
gpi1 polarity, Haptic will work by this edge option in case of ETWM mode
dlg,gpi2-polarity — not listed as required here #
Allowed values (enum): "Rising-edge", "Falling-edge", "Both-edge"
gpi2 polarity, Haptic will work by this edge option in case of ETWM mode
dlg,resonant-freq-hz — not listed as required here #
Minimum value (minimum): 50
Maximum value (maximum): 300
Default value (default): 205
dlg,bemf-sens-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable for internal loop computations
dlg,freq-track-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable for resonant frequency tracking
dlg,acc-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable for active acceleration
dlg,rapid-stop-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable for rapid stop
dlg,amp-pid-enable — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Enable for the amplitude PID
dlg,mem-array — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 100
Customized waveform memory (patterns) data downloaded to the device during initialization. Each entry value must be included between 0 and 255.
Required in this object (required): "compatible", "reg", "interrupts", "dlg,actuator-type", "dlg,const-op-mode", "dlg,periodic-op-mode", "dlg,nom-microvolt", "dlg,abs-max-microvolt", "dlg,imax-microamp", "dlg,impd-micro-ohms"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
haptics@4a {
compatible = "dlg,da7280";
reg = <0x4a>;
interrupt-parent = <&gpio6>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
dlg,actuator-type = "LRA";
dlg,const-op-mode = <1>;
dlg,periodic-op-mode = <1>;
dlg,nom-microvolt = <2000000>;
dlg,abs-max-microvolt = <2000000>;
dlg,imax-microamp = <170000>;
dlg,resonant-freq-hz = <180>;
dlg,impd-micro-ohms = <10500000>;
dlg,freq-track-enable;
dlg,rapid-stop-enable;
dlg,mem-array = <0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 25: Linear Resonance Actuator type
Line 26: Bar type Eccentric Rotating Mass
Line 27: Coin type Eccentric Rotating Mass
Line 32: Direct register override (DRO) mode triggered by i2c (default)
Line 33: PWM data source mode controlled by PWM duty
Line 40: Register triggered waveform memory(RTWM) mode, the pattern
Line 41: assigned to the PS_SEQ_ID played as much times as PS_SEQ_LOOP
Line 42: Edge triggered waveform memory(ETWM) mode, external GPI(N)
Line 43: control are required to enable/disable and it needs to keep
Line 44: device enabled by sending magnitude (X > 0),
Line 45: the pattern is assigned to the GPI(N)_SEQUENCE_ID below
Dialog DA9061/62/63 OnKey Module
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/dlg,da9062-onkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
This module is part of the DA9061/DA9062/DA9063. For more details about entire DA906{1,2,3} chips see Documentation/devicetree/bindings/mfd/dlg,da9063.yaml
This module provides the KEY_POWER event.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"dlg,da9062-onkey","dlg,da9063-onkey"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"dlg,da9061-onkey"Item 2
Exact value (
const):"dlg,da9062-onkey"
dlg,disable-key-power — not listed as required here #
Value type (type): "boolean"
Disable power-down using a long key-press. If this entry exists the OnKey driver will remove support for the KEY_POWER key press when triggered using a long press of the OnKey.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Elantech I2C Touchpad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/elan,ekth3000.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "elan,ekth3000"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
Value type (type): "boolean"
touchpad can be used as a wakeup source
vcc-supply — not listed as required here #
a phandle for the regulator supplying 3.3V power
elan,trackpoint — not listed as required here #
Value type (type): "boolean"
touchpad can support a trackpoint
elan,clickpad — not listed as required here #
Value type (type): "boolean"
touchpad is a clickpad (the entire surface is a button)
elan,middle-button — not listed as required here #
Value type (type): "boolean"
touchpad has a physical middle button
elan,x_traces — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
number of antennas on the x axis
elan,y_traces — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
number of antennas on the y axis
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-x-mm — not listed as required here #
true — No constraints added by this property rule.
touchscreen-y-mm — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchpad@15 {
compatible = "elan,ekth3000";
reg = <0x15>;
interrupt-parent = <&gpio4>;
interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Elan I2C-HID touchscreen controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/elan,ekth6915.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Douglas Anderson <dianders@chromium.org>"
Supports the Elan eKTH6915 and other I2C-HID touchscreen controllers. These touchscreen controller use the i2c-hid protocol with a reset GPIO.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"elan,ekth6915"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"elan,ekth8d18"Item 2
Exact value (
const):"elan,ekth6a12nay"
Rule 3
reg — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
panel — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Reset GPIO; not all touchscreens using eKTH6915 hook this up.
no-reset-on-power-off — not listed as required here #
Value type (type): "boolean"
Reset line is wired so that it can (and should) be left deasserted when the power supply is off.
vcc33-supply — required here #
The 3.3V supply to the touchscreen.
vccio-supply — not listed as required here #
The IO supply to the touchscreen. Need not be specified if this is the same as the 3.3V supply.
Required in this object (required): "compatible", "reg", "interrupts", "vcc33-supply"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@10 {
compatible = "elan,ekth5015m", "elan,ekth6915";
reg = <0x10>;
interrupt-parent = <&tlmm>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
vcc33-supply = <&pp3300_ts>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
FocalTech FT8112 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/focaltech,ft8112.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Daniel Peng <Daniel_Peng@pegatron.corp-partner.google.com>"
Supports the FocalTech FT8112 touchscreen controller. This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "focaltech,ft8112"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
panel — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vcc33-supply — required here #
true — No constraints added by this property rule.
vccio-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "vcc33-supply"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@38 {
compatible = "focaltech,ft8112";
reg = <0x38>;
interrupt-parent = <&pio>;
interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&pio 126 GPIO_ACTIVE_LOW>;
vcc33-supply = <&pp3300_tchscr_x>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale MPR121 capacitive touch sensor controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/fsl,mpr121-touchkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
The MPR121 supports up to 12 completely independent electrodes/capacitance sensing inputs in which 8 are multifunctional for LED driving and GPIO. https://www.nxp.com/docs/en/data-sheet/MPR121.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,mpr121-touchkey"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
vdd-supply — required here #
true — No constraints added by this property rule.
linux,keycodes — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 12
wakeup-source — not listed as required here #
Use any event on keypad as wakeup event.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "vdd-supply", "linux,keycodes"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
// Example with interrupts
#include "dt-bindings/input/input.h"
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchkey@5a {
compatible = "fsl,mpr121-touchkey";
reg = <0x5a>;
interrupt-parent = <&gpio1>;
interrupts = <28 2>;
autorepeat;
vdd-supply = <&ldo4_reg>;
linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
<KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,
<KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
};
};
// Example with polling
#include "dt-bindings/input/input.h"
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchkey@5a {
compatible = "fsl,mpr121-touchkey";
reg = <0x5a>;
poll-interval = <20>;
autorepeat;
vdd-supply = <&ldo4_reg>;
linux,keycodes = <KEY_0>, <KEY_1>, <KEY_2>, <KEY_3>,
<KEY_4>, <KEY_5>, <KEY_6>, <KEY_7>,
<KEY_8>, <KEY_9>, <KEY_A>, <KEY_B>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
i.MX SCU Client Device Node - SCU Key Based on SCU Message Protocol
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/fsl,scu-key.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dong Aisheng <aisheng.dong@nxp.com>"
i.MX SCU Client Device Node Client nodes are maintained as children of the relevant IMX-SCU device node.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fsl,imx8qxp-sc-key"
Item 2
Exact value (
const):"fsl,imx-sc-key"
linux,keycodes — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "linux,keycodes"
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>
keys {
compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
linux,keycodes = <KEY_POWER>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Goodix GT7375P touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/goodix,gt7375p.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Douglas Anderson <dianders@chromium.org>"
Supports the Goodix GT7375P touchscreen. This touchscreen uses the i2c-hid protocol but has some non-standard power sequencing required.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"goodix,gt7375p"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"goodix,gt7986u"Item 2
Exact value (
const):"goodix,gt7375p"
reg — required here #
interrupts — required here #
Maximum number of items (maxItems): 1
panel — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — required here #
true — No constraints added by this property rule.
vdd-supply — required here #
The 3.3V supply to the touchscreen.
mainboard-vddio-supply — not listed as required here #
The supply on the main board needed to power up IO signals going to the touchscreen. This supply need not go to the touchscreen itself as long as it allows the main board to make signals compatible with what the touchscreen is expecting for its IO rails.
goodix,no-reset-during-suspend — not listed as required here #
Set this to true to enforce the driver to not assert the reset GPIO during suspend. Due to potential touchscreen hardware flaw, back-powering could happen in suspend if the power supply is on and with active-low reset GPIO asserted. This property is used to avoid the back-powering issue.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios", "vdd-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
ap_ts: touchscreen@5d {
compatible = "goodix,gt7375p";
reg = <0x5d>;
interrupt-parent = <&tlmm>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
vdd-supply = <&pp3300_ts>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Goodix GT7986U SPI HID Touchscreen
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/goodix,gt7986u-spifw.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Charles Wang <charles.goodix@gmail.com>"
Supports the Goodix GT7986U touchscreen. This touch controller reports data packaged according to the HID protocol over the SPI bus, but it is incompatible with Microsoft's HID-over-SPI protocol.
NOTE: these bindings are distinct from the bindings used with the GT7986U when the chip is running I2C firmware. This is because there's not a single device that talks over both I2C and SPI but rather distinct touchscreens that happen to be built with the same ASIC but that are distinct products running distinct firmware.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "goodix,gt7986u-spifw"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — required here #
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "reset-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@0 {
compatible = "goodix,gt7986u-spifw";
reg = <0>;
interrupt-parent = <&gpio>;
interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
spi-max-frequency = <10000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ChromeOS EC Keyboard
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/google,cros-ec-keyb.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Simon Glass <sjg@chromium.org>", "Benson Leung <bleung@chromium.org>"
Google's ChromeOS EC Keyboard is a simple matrix keyboard implemented on a separate EC (Embedded Controller) device. It provides a message for reading key scans from the EC. These are then converted into keycodes for processing by the kernel. This device also supports switches/buttons like power and volume buttons.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
ChromeOS EC with only buttons/switches
Exact value (
const):"google,cros-ec-keyb-switches"
Rule 2
ChromeOS EC with keyboard and possibly buttons/switches
Exact value (
const):"google,cros-ec-keyb"
google,needs-ghost-filter — not listed as required here #
Enable a ghost filter for the matrix keyboard. This is recommended if the EC does not have its own logic or hardware for this.
Value type (type): "boolean"
function-row-physmap — 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): 15
An ordered u32 array describing the rows/columns (in the scan matrix) of top row keys from physical left (KEY_F1) to right. Each entry encodes the row/column as: (((row) & 0xFF) << 24) | (((column) & 0xFF) << 16) where the lower 16 bits are reserved. This property is specified only when the keyboard has a custom design for the top row keys.
Property dependencies (dependencies) #
function-row-physmap — applies when this property is present #
Also requires: "linux,keymap"
google,needs-ghost-filter — applies when this property is present #
Also requires: "linux,keymap"
Required in this object (required): "compatible"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"google,cros-ec-keyb"
When the condition matches (then) #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#Required in this object (
required):"keypad,num-rows","keypad,num-columns","linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
keyboard-controller {
compatible = "google,cros-ec-keyb";
keypad,num-rows = <8>;
keypad,num-columns = <13>;
google,needs-ghost-filter;
function-row-physmap = <
MATRIX_KEY(0x00, 0x02, 0) /* T1 */
MATRIX_KEY(0x03, 0x02, 0) /* T2 */
MATRIX_KEY(0x02, 0x02, 0) /* T3 */
MATRIX_KEY(0x01, 0x02, 0) /* T4 */
MATRIX_KEY(0x03, 0x04, 0) /* T5 */
MATRIX_KEY(0x02, 0x04, 0) /* T6 */
MATRIX_KEY(0x01, 0x04, 0) /* T7 */
MATRIX_KEY(0x02, 0x09, 0) /* T8 */
MATRIX_KEY(0x01, 0x09, 0) /* T9 */
MATRIX_KEY(0x00, 0x04, 0) /* T10 */
>;
/*
* Keymap entries take the form of 0xRRCCKKKK where
* RR=Row CC=Column KKKK=Key Code
* The values below are for a US keyboard layout and
* are taken from the Linux driver. Note that the
* 102ND key is not used for US keyboards.
*/
linux,keymap = <
/* CAPSLCK F1 B F10 */
0x0001003a 0x0002003b 0x00030030 0x00040044
/* N = R_ALT ESC */
0x00060031 0x0008000d 0x000a0064 0x01010001
/* F4 G F7 H */
0x0102003e 0x01030022 0x01040041 0x01060023
/* ' F9 BKSPACE L_CTRL */
0x01080028 0x01090043 0x010b000e 0x0200001d
/* TAB F3 T F6 */
0x0201000f 0x0202003d 0x02030014 0x02040040
/* ] Y 102ND [ */
0x0205001b 0x02060015 0x02070056 0x0208001a
/* F8 GRAVE F2 5 */
0x02090042 0x03010029 0x0302003c 0x03030006
/* F5 6 - \ */
0x0304003f 0x03060007 0x0308000c 0x030b002b
/* R_CTRL A D F */
0x04000061 0x0401001e 0x04020020 0x04030021
/* S K J ; */
0x0404001f 0x04050025 0x04060024 0x04080027
/* L ENTER Z C */
0x04090026 0x040b001c 0x0501002c 0x0502002e
/* V X , M */
0x0503002f 0x0504002d 0x05050033 0x05060032
/* L_SHIFT / . SPACE */
0x0507002a 0x05080035 0x05090034 0x050B0039
/* 1 3 4 2 */
0x06010002 0x06020004 0x06030005 0x06040003
/* 8 7 0 9 */
0x06050009 0x06060008 0x0608000b 0x0609000a
/* L_ALT DOWN RIGHT Q */
0x060a0038 0x060b006c 0x060c006a 0x07010010
/* E R W I */
0x07020012 0x07030013 0x07040011 0x07050017
/* U R_SHIFT P O */
0x07060016 0x07070036 0x07080019 0x07090018
/* UP LEFT */
0x070b0067 0x070c0069>;
};
/* No matrix keyboard, just buttons/switches */
keyboard-controller {
compatible = "google,cros-ec-keyb-switches";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Android Goldfish Events Keypad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/google,goldfish-events-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kuan-Wei Chiu <visitorckw@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Android goldfish events keypad device generated by android emulator.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "google,goldfish-events-keypad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
keypad@9040000 {
compatible = "google,goldfish-events-keypad";
reg = <0x9040000 0x1000>;
interrupts = <5>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
GPIO controlled beeper
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-beeper.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabio Estevam <festevam@denx.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-beeper"
gpios — required here #
Maximum number of items (maxItems): 1
GPIO that drives the beeper.
Required in this object (required): "compatible", "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>
beeper {
compatible = "gpio-beeper";
gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
GPIO attached keys
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-keys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "gpio-keys", "gpio-keys-polled"
autorepeat — not listed as required here #
true — No constraints added by this property rule.
label — not listed as required here #
Name of entire device
poll-interval — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$ — name matches this regular expression #
Shared schema rule ($ref): input.yaml#
Properties and child nodes (properties) #
gpios — not listed as required here
Maximum number of items (maxItems): 1
interrupts — not listed as required here
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Optional key interrupt or wakeup interrupt
Rule 2
Array item rules (
items)Item 1
Key interrupt
Item 2
Wakeup interrupt
interrupt-names — not listed as required here
Optional interrupt names, can be used to specify a separate dedicated wake-up interrupt in addition to the gpio irq
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"irq"Item 2
Exact value (
const):"wakeup"
label — not listed as required here
Descriptive name of the key.
linux,code — required here
Key / Axis code to emit.
linux,input-type — not listed as required here
Default value (default): 1
linux,input-value — not listed as required here
If linux,input-type is EV_ABS or EV_REL then this value is sent for events this button generates when pressed. EV_ABS/EV_REL axis will generate an event with a value of 0 when all buttons with linux,input-type == type and linux,code == axis are released. This value is interpreted as a signed 32 bit value, e.g. to make a button generate a value of -1 use:
linux,input-value = <0xffffffff>; /* -1 */
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
debounce-interval — not listed as required here
Debouncing interval time in milliseconds. If not specified defaults to 5.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 5
wakeup-source — not listed as required here
Button can wake-up the system.
wakeup-event-action — not listed as required here
Specifies whether the key should wake the system when asserted, when deasserted, or both. This property is only valid for keys that wake up the system (e.g., when the "wakeup-source" property is also provided).
Supported values are defined in linux-event-codes.h:
EV_ACT_ANY - both asserted and deasserted
EV_ACT_ASSERTED - asserted
EV_ACT_DEASSERTED - deasserted
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
linux,can-disable — not listed as required here
Indicates that button is connected to dedicated (not shared) interrupt which can be disabled to suppress events from the button.
Value type (type): "boolean"
Required in this object (required): "linux,code"
At least one of these rules must match (anyOf) #
Rule 1
Rule 2
Rule 3
All of these rules must match (allOf) #
Rule 1
Condition (
if)Properties and child nodes (
properties)
interrupts— required hereMinimum number of items (
minItems):2When the condition matches (
then)Properties and child nodes (
properties)
interrupt-names— required hereMinimum number of items (
minItems):2
Property dependencies (dependencies) #
wakeup-event-action — applies when this property is present
Also requires: "wakeup-source"
linux,input-value — applies when this property is present
Also requires: "gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"gpio-keys-polled"When the condition matches (
then) #When the condition does not match (
else) #Properties and child nodes (
properties)
poll-interval— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
gpio-keys {
compatible = "gpio-keys";
autorepeat;
key-up {
label = "GPIO Key UP";
linux,code = <103>;
gpios = <&gpio1 0 1>;
};
key-down {
label = "GPIO Key DOWN";
linux,code = <108>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
};
key-wakeup {
label = "GPIO Key WAKEUP";
linux,code = <143>;
interrupts-extended = <&intc 2 IRQ_TYPE_EDGE_FALLING>,
<&intc_wakeup 0 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "irq", "wakeup";
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 59: EV_KEY
GPIO matrix keypad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-matrix-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marek.vasut@gmail.com>"
GPIO driven matrix keypad is used to interface a SoC with a matrix keypad. The matrix keypad supports multiple row and column lines, a key can be placed at each intersection of a unique row and a unique column. The matrix keypad can sense a key-press and key-release by means of GPIO lines and report the event using GPIO interrupts to the cpu.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-matrix-keypad"
row-gpios — required here #
List of GPIOs used as row lines. The gpio specifier for this property depends on the gpio controller to which these row lines are connected.
col-gpios — required here #
List of GPIOs used as column lines. The gpio specifier for this property depends on the gpio controller to which these column lines are connected.
linux,keymap — required here #
true — No constraints added by this property rule.
linux,no-autorepeat — not listed as required here #
Value type (type): "boolean"
Do not enable autorepeat feature.
gpio-activelow — not listed as required here #
Value type (type): "boolean"
Force GPIO polarity to active low. In the absence of this property GPIOs are treated as active high.
debounce-delay-ms — not listed as required here #
Debounce interval in milliseconds.
Default value (default): 0
col-scan-delay-us — not listed as required here #
Delay, measured in microseconds, that is needed before we can scan keypad after activating column gpio.
Default value (default): 0
all-cols-on-delay-us — not listed as required here #
Delay, measured in microseconds, that is needed after activating all column gpios.
Default value (default): 0
drive-inactive-cols — not listed as required here #
Value type (type): "boolean"
Drive inactive columns during scan, default is to turn inactive columns into inputs.
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "row-gpios", "col-gpios", "linux,keymap"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
matrix-keypad {
compatible = "gpio-matrix-keypad";
debounce-delay-ms = <5>;
col-scan-delay-us = <2>;
row-gpios = <&gpio2 25 0
&gpio2 26 0
&gpio2 27 0>;
col-gpios = <&gpio2 21 0
&gpio2 22 0>;
linux,keymap = <0x0000008B
0x0100009E
0x02000069
0x0001006A
0x0101001C
0x0201006C>;
wakeup-source;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
GPIO attached mouse
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-mouse.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This simply uses standard GPIO handles to define a simple mouse connected to 5-7 GPIO lines.
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-mouse"
scan-interval-ms — required here #
Maximum number of items (maxItems): 1
up-gpios — required here #
Maximum number of items (maxItems): 1
down-gpios — required here #
Maximum number of items (maxItems): 1
left-gpios — required here #
Maximum number of items (maxItems): 1
right-gpios — required here #
Maximum number of items (maxItems): 1
button-left-gpios — not listed as required here #
Maximum number of items (maxItems): 1
button-middle-gpios — not listed as required here #
Maximum number of items (maxItems): 1
button-right-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "scan-interval-ms", "up-gpios", "down-gpios", "left-gpios", "right-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>
gpio-mouse {
compatible = "gpio-mouse";
scan-interval-ms = <50>;
up-gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
down-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
left-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
right-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
button-left-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
button-middle-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
button-right-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
GPIO vibrator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/gpio-vibrator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Luca Weiss <luca@z3ntu.xyz>"
Registers a GPIO device as vibrator, where the on/off capability is controlled by a GPIO.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-vibrator"
enable-gpios — required here #
Maximum number of items (maxItems): 1
vcc-supply — not listed as required here #
Regulator that provides power
Required in this object (required): "compatible", "enable-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>
vibrator {
compatible = "gpio-vibrator";
enable-gpios = <&msmgpio 86 GPIO_ACTIVE_HIGH>;
vcc-supply = <&pm8941_l18>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
HID over I2C Devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/hid-over-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Benjamin Tissoires <benjamin.tissoires@redhat.com>", "Jiri Kosina <jkosina@suse.cz>"
HID over I2C provides support for various Human Interface Devices over the I2C bus. These devices can be for example touchpads, keyboards, touch screens or sensors.
The specification has been written by Microsoft and is currently available here: https://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx
If this binding is used, the kernel module i2c-hid will handle the communication with the device and the generic hid core layer will handle the protocol.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"hid-over-i2c"
Rule 2
Just "hid-over-i2c" alone is allowed, but not recommended.
Exact value (
const):"hid-over-i2c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
hid-descr-addr — not listed as required here #
HID descriptor address
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
panel — not listed as required here #
true — No constraints added by this property rule.
post-power-on-delay-ms — not listed as required here #
Time required by the device after enabling its regulators or powering it on, before it is ready for communication.
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.
vdd-supply — not listed as required here #
3.3V supply
vddl-supply — not listed as required here #
1.8V supply
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
hid@2c {
compatible = "hid-over-i2c";
reg = <0x2c>;
hid-descr-addr = <0x0020>;
interrupts = <3 2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
IBM Operation Panel
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ibm,op-panel.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eddie James <eajames@linux.ibm.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
The IBM Operation Panel provides a simple interface to control the connected server. It has a display and three buttons: two directional arrows and one 'Enter' button.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ibm,op-panel"
reg — required here #
Maximum number of items (maxItems): 1
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/input/input.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
ibm-op-panel@62 {
compatible = "ibm,op-panel";
reg = <(0x62 | I2C_OWN_SLAVE_ADDRESS)>;
linux,keycodes = <KEY_UP>, <KEY_DOWN>, <KEY_ENTER>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Ilitek ILI2901 touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ilitek,ili2901.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jiri Kosina <jkosina@suse.com>"
Supports the Ilitek ILI2901 touchscreen controller. This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ilitek,ili2901"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
panel — not listed as required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vcc33-supply — required here #
true — No constraints added by this property rule.
vccio-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "vcc33-supply"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@41 {
compatible = "ilitek,ili2901";
reg = <0x41>;
interrupt-parent = <&tlmm>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
reset-gpios = <&tlmm 8 GPIO_ACTIVE_LOW>;
vcc33-supply = <&pp3300_ts>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Ilitek ili9882t touchscreen controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ilitek,ili9882t.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Cong Yang <yangcong5@huaqin.corp-partner.google.com>"
Supports the Ilitek ili9882t touchscreen controller. This touchscreen controller uses the i2c-hid protocol with a reset GPIO.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ilitek,ili9882t"
reg — required here #
Exact value (const): 65
interrupts — required here #
Maximum number of items (maxItems): 1
panel — required here #
true — No constraints added by this property rule.
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Reset GPIO.
vccio-supply — required here #
The 1.8V supply to the touchscreen.
Required in this object (required): "compatible", "reg", "interrupts", "panel", "vccio-supply"
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/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen: touchscreen@41 {
compatible = "ilitek,ili9882t";
reg = <0x41>;
interrupt-parent = <&pio>;
interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
panel = <&panel>;
reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>;
vccio-supply = <&mt6366_vio18_reg>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale i.MX Keypad Port(KPP)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/imx-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liu Ying <gnuiyl@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#
The KPP is designed to interface with a keypad matrix with 2-point contact or 3-point contact keys. The KPP is designed to simplify the software task of scanning a keypad matrix. The KPP is capable of detecting, debouncing, and decoding one or multiple keys pressed simultaneously on a keypad.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx21-kpp"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-kpp","fsl,imx27-kpp","fsl,imx31-kpp","fsl,imx35-kpp","fsl,imx51-kpp","fsl,imx53-kpp","fsl,imx50-kpp","fsl,imx6q-kpp","fsl,imx6sx-kpp","fsl,imx6sl-kpp","fsl,imx6sll-kpp","fsl,imx6ul-kpp","fsl,imx7d-kpp"Item 2
Exact value (
const):"fsl,imx21-kpp"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
keypad@73f94000 {
compatible = "fsl,imx51-kpp", "fsl,imx21-kpp";
reg = <0x73f94000 0x4000>;
interrupts = <60>;
clocks = <&clks 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_kpp_1>;
linux,keymap = <0x00000067 /* KEY_UP */
0x0001006c /* KEY_DOWN */
0x00020072 /* KEY_VOLUMEDOWN */
0x00030066 /* KEY_HOME */
0x0100006a /* KEY_RIGHT */
0x01010069 /* KEY_LEFT */
0x0102001c /* KEY_ENTER */
0x01030073 /* KEY_VOLUMEUP */
0x02000040 /* KEY_F6 */
0x02010042 /* KEY_F8 */
0x02020043 /* KEY_F9 */
0x02030044 /* KEY_F10 */
0x0300003b /* KEY_F1 */
0x0301003c /* KEY_F2 */
0x0302003d /* KEY_F3 */
0x03030074>; /* KEY_POWER */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Input Devices Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/input.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Torokhov <dmitry.torokhov@gmail.com>"
Properties and child nodes (properties) #
autorepeat — not listed as required here #
Enable autorepeat when key is pressed and held down.
Value type (type): "boolean"
linux,keycodes — not listed as required here #
Specifies an array of numeric keycode values to be used for reporting button presses.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):767
linux,code — not listed as required here #
Specifies a single numeric keycode value to be used for reporting button/switch events. Specify KEY_RESERVED (0) to opt out of event reporting.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 767
linux,input-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3, 5
Specifies whether the event is to be interpreted as a key, relative, absolute, or switch.
poll-interval — not listed as required here #
Poll interval time in milliseconds.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
power-off-time-sec — not listed as required here #
Duration in seconds which the key should be kept pressed for device to power off automatically. Device with key pressed shutdown feature can specify this property.
reset-time-sec — not listed as required here #
Duration in seconds which the key should be kept pressed for device to reset automatically. Device with key pressed reset feature can specify this property.
Property dependencies (dependencies) #
linux,input-type — applies when this property is present #
Also requires: "linux,code"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 37: EV_KEY
Line 38: EV_REL
Line 39: EV_ABS
Line 40: EV_SW
Azoteq IQS269A Capacitive Touch Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
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)
Azoteq IQS626A Capacitive Touch Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/iqs626a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jeff LaBundy <jeff@labundy.com>"
The Azoteq IQS626A is a 14-channel capacitive touch controller that features additional Hall-effect and inductive sensing capabilities.
Link to datasheet: https://www.azoteq.com/
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):touchscreen/touchscreen.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "azoteq,iqs626a"
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,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 (ULP channel 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-enable — not listed as required here #
Value type (type): "boolean"
Permits the device to automatically enter ultra-low-power mode from low- power mode.
azoteq,ulp-update — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 3
Specifies the rate at which the trackpad, generic and Hall channels are updated during ultra-low-power mode as follows: 0: 8 1: 13 2: 28 3: 54 4: 89 5: 135 6: 190 7: 256
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,gpio3-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 1
Selects the channel or group of channels for which the GPIO3 pin represents touch state as follows: 0: None 1: ULP channel 2: Trackpad 3: Trackpad 4: Generic channel 0 5: Generic channel 1 6: Generic channel 2 7: Hall channel
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,thresh-extend — not listed as required here #
Value type (type): "boolean"
Multiplies all touch and deep-touch thresholds by 4.
azoteq,tracking-enable — not listed as required here #
Value type (type): "boolean"
Enables all associated channels to track their respective reference channels.
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,rate-np-ms — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 255
Default value (default): 150
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): 150
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): 0
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 before moving from normal-power mode to low-power mode, or (if 'azoteq,ulp-enable' is present) from low-power mode to ultra-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): 40960
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.
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.
Properties matching a name pattern (patternProperties) #
^ulp-0|generic-[0-2]|hall$ — 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) #
azoteq,ati-exclude — not listed as required here
Value type (type): "boolean"
Prevents the channel from participating in an ATI event that is manually triggered during initialization.
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,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-inactive — 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 how inactive CRX pins are to be terminated as follows: 0: VSS 1: Floating 2: VREG (generic channels only)
azoteq,linearize — not listed as required here
Value type (type): "boolean"
Enables linearization of the channel's counts (generic and Hall channels) or inverts the polarity of the channel's proximity or touch states (ULP channel).
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,filt-disable — not listed as required here
Value type (type): "boolean"
Disables raw count filtering 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
Specifies the channel's ATI mode as follows: 0: Disabled 1: Semi-partial 2: Partial 3: Full
The default value is a function of the channel and the device's reset user interface (RUI); reference the datasheet for further information about the available RUI options.
azoteq,ati-base — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 75, 100, 150, 200
Specifies the channel's ATI base. The default value is a function of the channel and the device's RUI.
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
Specifies the channel's ATI target. The default value is a function of the channel and the device's RUI.
azoteq,cct-increase — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 16
Default value (default): 0
Specifies the degree to which the channel's charge cycle time is to be increased, with 0 representing no increase. The maximum value is limited to 4 in the case of the ULP channel, and the property is un- available entirely in the case of the Hall channel.
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): 0
Specifies the bias current applied during projected-capacitance sensing as follows: 0: 2.5 uA 1: 5 uA 2: 10 uA 3: 20 uA
This property is unavailable in the case of the Hall channel.
azoteq,sense-freq — 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 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)
This property is unavailable in the case of the Hall channel. The default value is a function of the channel and the device's RUI.
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 (ULP and generic channels only).
azoteq,proj-enable — not listed as required here
Value type (type): "boolean"
Enables projected-capacitance sensing (ULP channel only).
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 (ULP and generic channels only).
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 (ULP and generic channels only).
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 (ULP and generic channels only).
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 (ULP and generic channels only).
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. This property is unavailable in the case of the Hall channel. The default value is a function of the channel and the device's RUI.
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
Specifies the TX pin(s) associated with the channel. This property is unavailable in the case of the Hall channel. The default value is a function of the channel and the device's RUI.
azoteq,local-cap-size — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4
Default value (default): 0
Specifies the capacitance to be added to the channel as follows: 0: 0 pF 1: 0.5 pF 2: 1.0 pF 3: 1.5 pF 4: 2.0 pF
This property is unavailable in the case of the ULP or Hall channels.
azoteq,sense-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 8, 9, 12, 14, 15
Specifies the channel's sensing mode as follows: 0: Self capacitance 1: Projected capacitance 8: Self inductance 9: Mutual inductance 12: External 14: Hall effect 15: Temperature
This property is unavailable in the case of the ULP or Hall channels. The default value is a function of the channel and the device's RUI.
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 (parenthesized 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)
This property is unavailable in the case of the ULP or Hall channels.
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 (generic channels only).
azoteq,comp-disable — not listed as required here
Value type (type): "boolean"
Disables compensation for the channel (generic channels only).
azoteq,static-enable — not listed as required here
Value type (type): "boolean"
Enables the static front-end for the channel (generic channels only).
azoteq,assoc-select — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
Array item rules (items)
Allowed values (
enum):"ulp-0","trackpad-3x2","trackpad-3x3","generic-0","generic-1","generic-2","hall"
Specifies the associated channels for which the channel serves as a reference channel. By default, no channels are selected. This prop- erty is only available for the generic channels.
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). This property is only available for the generic channels.
Properties matching a name pattern (patternProperties) #
^event-(prox|touch|deep)(-alt)?$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents a proximity, touch or deep-touch event reported by the channel in response to a decrease in counts. Node names suffixed with '-alt' instead correspond 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). Proximity events are unavailable in the case of the Hall channel, and deep-touch events are only available for the generic channels. Unless otherwise specified, default values are a function of the channel and the device's RUI.
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
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
Specifies the hysteresis for the event (touch and deep-touch events only).
linux,code — not listed as required here
true — No constraints added by this property rule.
linux,input-type — not listed as required here
Specifies whether the event is to be interpreted as a key (1) or a switch (5). By default, Hall-channel events are interpreted as switches and all others are interpreted as keys.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Property dependencies (dependencies) #
azoteq,assoc-weight — applies when this property is present
Also requires: "azoteq,assoc-select"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
^trackpad-3x[2-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents all channels associated with the trackpad. The channels are collectively active if the trackpad is defined and inactive otherwise.
Properties and child nodes (properties) #
azoteq,ati-exclude — not listed as required here
Value type (type): "boolean"
Prevents the trackpad channels from participating in an ATI event that is manually triggered during initialization.
azoteq,reseed-disable — not listed as required here
Value type (type): "boolean"
Prevents the trackpad channels from being reseeded if the long-term average timeout (defined in 'azoteq,timeout-lta') expires.
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-inactive — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Specifies how inactive CRX pins are to be terminated as follows: 0: VSS 1: Floating
azoteq,linearize — not listed as required here
Value type (type): "boolean"
Inverts the polarity of the trackpad's touch state.
azoteq,dual-direction — not listed as required here
Value type (type): "boolean"
Specifies that the trackpad's 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,filt-disable — not listed as required here
Value type (type): "boolean"
Disables raw count filtering for the trackpad channels.
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): 0
Specifies the trackpad's ATI mode as follows: 0: Disabled 1: Semi-partial 2: Partial 3: Full
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): 0
Specifies the trackpad's ATI target.
azoteq,cct-increase — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 4
Default value (default): 0
Specifies the degree to which the trackpad's charge cycle time is to be increased, with 0 representing no increase.
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): 0
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-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 trackpad'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,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,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 trackpad's touch hysteresis.
azoteq,lta-update — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
Default value (default): 0
Specifies the update rate of the trackpad's long-term average during ultra-low-power mode as follows: 0: 2 1: 4 2: 8 3: 16 4: 32 5: 64 6: 128 7: 255
azoteq,filt-str-trackpad — 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 trackpad coordinate filter strength.
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,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.
linux,keycodes — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
Specifies the numeric keycodes associated with each available gesture in the following order (enter 0 for unused gestures): 0: Positive flick or swipe in X direction 1: Negative flick or swipe in X direction 2: Positive flick or swipe in Y direction 3: Negative flick or swipe in Y direction 4: Tap 5: Hold
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 trackpad) instead of a flick (finger leaves trackpad).
azoteq,timeout-tap-ms — not listed as required here
Multiple of (multipleOf): 16
Minimum value (minimum): 0
Maximum value (maximum): 4080
Default value (default): 0
Specifies the length of time (in ms) within which a trackpad touch must be released in order to be interpreted as a tap.
azoteq,timeout-swipe-ms — not listed as required here
Multiple of (multipleOf): 16
Minimum value (minimum): 0
Maximum value (maximum): 4080
Default value (default): 0
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.
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): 0
Specifies the number of points across which an axial gesture must travel in order to be interpreted as a flick or swipe.
Properties matching a name pattern (patternProperties) #
^channel-[0-8]$ — name matches this regular expression
Value type (type): "object"
Represents a single trackpad 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): 0
Specifies the threshold for the channel.
azoteq,ati-base — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 45
Maximum value (maximum): 300
Default value (default): 45
Specifies the channel's ATI base.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
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 not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this 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,iqs626a";
reg = <0x44>;
interrupt-parent = <&gpio>;
interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
azoteq,rate-np-ms = <16>;
azoteq,rate-lp-ms = <160>;
azoteq,timeout-pwr-ms = <2560>;
azoteq,timeout-lta-ms = <32768>;
ulp-0 {
azoteq,meas-cap-decrease;
azoteq,ati-base = <75>;
azoteq,ati-target = <1024>;
azoteq,rx-enable = <2>, <3>, <4>,
<5>, <6>, <7>;
event-prox {
linux,code = <KEY_POWER>;
};
};
trackpad-3x3 {
azoteq,filt-str-np-cnt = <1>;
azoteq,filt-str-lp-cnt = <1>;
azoteq,hyst = <4>;
azoteq,ati-mode = <3>;
azoteq,ati-target = <512>;
azoteq,proj-bias = <1>;
azoteq,sense-freq = <2>;
linux,keycodes = <KEY_VOLUMEUP>,
<KEY_VOLUMEDOWN>,
<KEY_NEXTSONG>,
<KEY_PREVIOUSSONG>,
<KEY_PLAYPAUSE>,
<KEY_STOPCD>;
azoteq,gesture-swipe;
azoteq,timeout-swipe-ms = <800>;
azoteq,timeout-tap-ms = <400>;
azoteq,thresh-swipe = <40>;
channel-0 {
azoteq,thresh = <35>;
azoteq,ati-base = <195>;
};
channel-1 {
azoteq,thresh = <40>;
azoteq,ati-base = <195>;
};
channel-2 {
azoteq,thresh = <40>;
azoteq,ati-base = <195>;
};
channel-3 {
azoteq,thresh = <38>;
azoteq,ati-base = <195>;
};
channel-4 {
azoteq,thresh = <33>;
azoteq,ati-base = <195>;
};
channel-5 {
azoteq,thresh = <38>;
azoteq,ati-base = <195>;
};
channel-6 {
azoteq,thresh = <35>;
azoteq,ati-base = <195>;
};
channel-7 {
azoteq,thresh = <35>;
azoteq,ati-base = <195>;
};
channel-8 {
azoteq,thresh = <35>;
azoteq,ati-base = <195>;
};
};
/*
* Preserve the default register settings for
* the temperature-tracking channel leveraged
* by reset user interface (RUI) 1.
*
* Scalar properties (e.g. ATI mode) are left
* untouched by simply omitting them; boolean
* properties must be specified explicitly as
* needed.
*/
generic-2 {
azoteq,reseed-disable;
azoteq,meas-cap-decrease;
azoteq,dual-direction;
azoteq,comp-disable;
azoteq,static-enable;
};
hall {
azoteq,reseed-disable;
azoteq,meas-cap-decrease;
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)
Azoteq IQS620A/621/622/624/625 Keys and Switches
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/iqs62x-keys.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 IQS620A, IQS621, IQS622, IQS624 and IQS625 multi-function sensors feature a variety of self-capacitive, mutual-inductive and Hall-effect sens- ing capabilities that can facilitate a variety of contactless key and switch applications.
These functions are collectively represented by a "keys" child node from the parent MFD driver. See Documentation/devicetree/bindings/mfd/iqs62x.yaml for further details and examples. Sensor hardware configuration (self-capacitive vs. mutual-inductive, etc.) is selected based on the device's firmware.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "azoteq,iqs620a-keys", "azoteq,iqs621-keys", "azoteq,iqs622-keys", "azoteq,iqs624-keys", "azoteq,iqs625-keys"
linux,keycodes — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
Specifies the numeric keycodes associated with each available touch or proximity event according to the following table. An 'x' indicates the event is supported for a given device. Specify 0 for unused events.
-------------------------------------------------------------------------
| # | Event | IQS620A | IQS621 | IQS622 | IQS624 | IQS625 |
-------------------------------------------------------------------------
| 0 | CH0 Touch | x | x | x | x | x |
| | Antenna 1 Touch* | x | | | | |
-------------------------------------------------------------------------
| 1 | CH0 Proximity | x | x | x | x | x |
| | Antenna 1 Prox.* | x | | | | |
-------------------------------------------------------------------------
| 2 | CH1 Touch | x | x | x | x | x |
| | Ant. 1 Deep Touch* | x | | | | |
-------------------------------------------------------------------------
| 3 | CH1 Proximity | x | x | x | x | x |
-------------------------------------------------------------------------
| 4 | CH2 Touch | x | | | | |
-------------------------------------------------------------------------
| 5 | CH2 Proximity | x | | | | |
| | Antenna 2 Prox.* | x | | | | |
-------------------------------------------------------------------------
| 6 | Metal (+) Touch** | x | x | | | |
| | Ant. 2 Deep Touch* | x | | | | |
-------------------------------------------------------------------------
| 7 | Metal (+) Prox.** | x | x | | | |
| | Antenna 2 Touch* | x | | | | |
-------------------------------------------------------------------------
| 8 | Metal (-) Touch** | x | x | | | |
-------------------------------------------------------------------------
| 9 | Metal (-) Prox.** | x | x | | | |
-------------------------------------------------------------------------
| 10 | SAR Active*** | x | | x | | |
-------------------------------------------------------------------------
| 11 | SAR Quick Rel.*** | x | | x | | |
-------------------------------------------------------------------------
| 12 | SAR Movement*** | x | | x | | |
-------------------------------------------------------------------------
| 13 | SAR Filter Halt*** | x | | x | | |
-------------------------------------------------------------------------
| 14 | Wheel Up | | | | x | |
-------------------------------------------------------------------------
| 15 | Wheel Down | | | | x | |
-------------------------------------------------------------------------
* Two-channel SAR. Replaces CH0-2 plus metal touch and proximity events
if enabled via firmware.
** "+" and "-" refer to the polarity of a channel's delta (LTA - counts),
where "LTA" is defined as the channel's long-term average.
*** One-channel SAR. Replaces CH0-2 touch and proximity events if enabled
via firmware.
Properties matching a name pattern (patternProperties) #
^hall-switch-(north|south)$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Represents north/south-field Hall-effect sensor touch or proximity events. Note that north/south-field orientation is reversed on the IQS620AXzCSR device due to its flip-chip package.
Properties and child nodes (properties) #
linux,code — required here
true — No constraints added by this property rule.
azoteq,use-prox — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, specifies that Hall-effect sensor reporting should use the device's wide-range proximity threshold instead of its close-range touch threshold (default).
Required in this object (required): "linux,code"
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)Allowed values (
enum):"azoteq,iqs624-keys","azoteq,iqs625-keys"
When the condition matches (then) #
Properties matching a name pattern (
patternProperties) #
^hall-switch-(north|south)$— name matches this regular expression #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "linux,keycodes"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Common Key Matrices on Matrix-connected Key Boards
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/matrix-keymap.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Olof Johansson <olof@lixom.net>"
A simple common binding for matrix-connected key boards. Currently targeted at defining the keys in the scope of linux key codes since that is a stable and standardized interface at this time.
Some users of this binding might choose to specify secondary keymaps for cases where there is a modifier key such as a Fn key. Proposed names for said properties are "linux,fn-keymap" or with another descriptive word for the modifier other from "Fn".
Properties and child nodes (properties) #
linux,keymap — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
An array of packed 1-cell entries containing the equivalent of row,
column and linux key-code. The 32-bit big endian cell is packed as:
row << 24 | column << 16 | key-code
keypad,num-rows — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of row lines connected to the keypad controller.
keypad,num-columns — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of column lines connected to the keypad controller.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
keypad {
/* ... */
linux,keymap = < 0x00030012
0x0102003a >;
keypad,num-rows = <2>;
keypad,num-columns = <8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Onkey driver for MAX77650 PMIC from Maxim Integrated.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/max77650-onkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>"
This module is part of the MAX77650 MFD device. For more details see Documentation/devicetree/bindings/mfd/max77650.yaml.
The onkey controller is represented as a sub-node of the PMIC node on the device tree.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max77650-onkey"
linux,code — not listed as required here #
Default value (default): 116
maxim,onkey-slide — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The system's button is a slide switch, not the default push button.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 27: KEY_POWER
Mediatek's Keypad Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mattijs Korpershoek <mkorpershoek@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#
Mediatek's Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a key-press and key-release and report the event using a interrupt to the cpu.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"mediatek,mt6779-keypad"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6873-keypad","mediatek,mt8183-keypad","mediatek,mt8365-keypad","mediatek,mt8516-keypad"Item 2
Exact value (
const):"mediatek,mt6779-keypad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"kpd"
wakeup-source — not listed as required here #
use any event on keypad as wakeup event
Value type (type): "boolean"
debounce-delay-ms — not listed as required here #
Maximum value (maximum): 256
Default value (default): 16
mediatek,keys-per-group — not listed as required here #
each (row, column) group has multiple keys
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Maximum value (maximum): 2
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
keyboard@10010000 {
compatible = "mediatek,mt6779-keypad";
reg = <0 0x10010000 0 0x1000>;
interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_FALLING>;
clocks = <&clk26m>;
clock-names = "kpd";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MediaTek PMIC Keys
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen Zhong <chen.zhong@mediatek.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
There are two key functions provided by MT6397, MT6323 and other MediaTek PMICs: pwrkey and homekey. The key functions are defined as the subnode of the function node provided by the PMIC that is defined as a Multi-Function Device (MFD).
For MediaTek MT6323/MT6397 PMIC bindings see Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt6323-keys", "mediatek,mt6328-keys", "mediatek,mt6331-keys", "mediatek,mt6357-keys", "mediatek,mt6358-keys", "mediatek,mt6359-keys", "mediatek,mt6397-keys"
power-off-time-sec — not listed as required here #
true — No constraints added by this property rule.
mediatek,long-press-mode — not listed as required here #
Key long-press force shutdown setting 0 - disabled 1 - pwrkey 2 - pwrkey+homekey
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Maximum value (maximum): 2
Properties matching a name pattern (patternProperties) #
^((power|home)|(key-[a-z0-9-]+|[a-z0-9-]+-key))$ — name matches this regular expression #
Shared schema rule ($ref): input.yaml#
Properties and child nodes (properties) #
interrupts — not listed as required here
Minimum number of items (minItems): 1
Array item rules (items)
Item 1
Key press interrupt
Item 2
Key release interrupt
interrupt-names — not listed as required here
true — No constraints added by this property rule.
linux,keycodes — required here
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "linux,keycodes"
Condition (if) #
Properties and child nodes (
properties)
interrupt-names— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"powerkey"
When the condition matches (then) #
Properties and child nodes (
properties)
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"powerkey"Item 2
Exact value (
const):"powerkey_r"
When the condition does not match (else) #
Properties and child nodes (
properties)
interrupt-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"homekey"Item 2
Exact value (
const):"homekey_r"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Microchip CAP11xx based capacitive touch sensors
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/microchip,cap11xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Microchip CAP1xxx Family of RightTouchTM multiple-channel capacitive touch controllers and LED drivers. The device communication via I2C only.
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "microchip,cap1106", "microchip,cap1126", "microchip,cap1188", "microchip,cap1203", "microchip,cap1206", "microchip,cap1293", "microchip,cap1298"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
interrupts — required here #
Maximum number of items (maxItems): 1
Property describing the interrupt line the device's ALERT#/CM_IRQ# pin is connected to. The device only has one interrupt source.
autorepeat — not listed as required here #
Enables the Linux input system's autorepeat feature on the input device.
linux,keycodes — not listed as required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 8
Specifies an array of numeric keycode values to be used for the channels. If this property is omitted, KEY_A, KEY_B, etc are used as defaults. The number of entries must correspond to the number of channels.
microchip,sensor-gain — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Allowed values (enum): 1, 2, 4, 8
Defines the gain of the sensor circuitry. This effectively controls the sensitivity, as a smaller delta capacitance is required to generate the same delta count values.
microchip,irq-active-high — not listed as required here #
Value type (type): "boolean"
By default the interrupt pin is active low open drain. This property allows using the active high push-pull output.
microchip,sensitivity-delta-sense — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 32
Allowed values (enum): 1, 2, 4, 8, 16, 32, 64, 128
Controls the sensitivity multiplier of a touch detection. Higher value means more sensitive settings. At the more sensitive settings, touches are detected for a smaller delta capacitance corresponding to a "lighter" touch.
microchip,signal-guard — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 8
Array item rules (items) #
0 - off 1 - on The signal guard isolates the signal from virtual grounds. If enabled then the behavior of the channel is changed to signal guard. The number of entries must correspond to the number of channels.
microchip,input-threshold — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 8
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):127
Specifies the delta threshold that is used to determine if a touch has been detected. A higher value means a larger difference in capacitance is required for a touch to be registered, making the touch sensor less sensitive. The number of entries must correspond to the number of channels.
microchip,calib-sensitivity — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 8
Array item rules (items) #
Specifies an array of numeric values that controls the gain used by the calibration routine to enable sensor inputs to be more sensitive for proximity detection. Gain is based on touch pad capacitance range 1 - 5-50pF 2 - 0-25pF 4 - 0-12.5pF The number of entries must correspond to the number of channels.
Properties matching a name pattern (patternProperties) #
^led@[0-7]$ — name matches this regular expression #
Value type (type): "object"
CAP11xx LEDs
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties and child nodes (properties) #
reg — required here
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
label — not listed as required here
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here
true — No constraints added by this property rule.
default-state — 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):input.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,cap1106","microchip,cap1203","microchip,cap1206","microchip,cap1293","microchip,cap1298"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-7]$— name matches this regular expression
false— Not permitted by this property rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"microchip,cap1106","microchip,cap1126","microchip,cap1188","microchip,cap1203","microchip,cap1206"When the condition matches (
then) #Properties and child nodes (
properties)
microchip,signal-guard— not listed as required here
false— Not permitted by this property rule.
microchip,calib-sensitivity— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
touch@28 {
compatible = "microchip,cap1188";
interrupt-parent = <&gpio1>;
interrupts = <0 0>;
reg = <0x28>;
autorepeat;
microchip,sensor-gain = <2>;
microchip,sensitivity-delta-sense = <16>;
microchip,input-threshold = <21>, <18>, <46>, <46>, <46>, <21>;
linux,keycodes = <103>, /* KEY_UP */
<106>, /* KEY_RIGHT */
<108>, /* KEY_DOWN */
<105>, /* KEY_LEFT */
<109>, /* KEY_PAGEDOWN */
<104>; /* KEY_PAGEUP */
#address-cells = <1>;
#size-cells = <0>;
led@0 {
label = "cap11xx:green:usr0";
reg = <0>;
};
led@1 {
label = "cap11xx:green:usr1";
reg = <1>;
};
led@2 {
label = "cap11xx:green:alive";
reg = <2>;
linux,default-trigger = "heartbeat";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP LPC32xx Key Scan Interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/nxp,lpc3220-key.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nxp,lpc3220-key"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
nxp,debounce-delay-ms — required here #
Debounce delay in ms
nxp,scan-delay-ms — required here #
Repeated scan period in ms
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "nxp,debounce-delay-ms", "nxp,scan-delay-ms", "linux,keymap"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/lpc32xx-clock.h>
key@40050000 {
compatible = "nxp,lpc3220-key";
reg = <0x40050000 0x1000>;
clocks = <&clk LPC32XX_CLK_KEY>;
interrupt-parent = <&sic1>;
interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
keypad,num-rows = <1>;
keypad,num-columns = <1>;
nxp,debounce-delay-ms = <3>;
nxp,scan-delay-ms = <34>;
linux,keymap = <0x00000002>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Pine64 PinePhone keyboard
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/pine64,pinephone-keyboard.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
A keyboard accessory is available for the Pine64 PinePhone and PinePhone Pro. It connects via I2C, providing a raw scan matrix, a flashing interface, and a subordinate I2C bus for communication with a battery charger IC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pine64,pinephone-keyboard"
reg — required here #
Exact value (const): 21
interrupts — required here #
Maximum number of items (maxItems): 1
vbat-supply — not listed as required here #
Supply for the keyboard MCU
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
i2c — not listed as required here #
Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#
Required in this object (required): "compatible", "reg", "interrupts"
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>;
keyboard@15 {
compatible = "pine64,pinephone-keyboard";
reg = <0x15>;
interrupt-parent = <&r_pio>;
interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */
i2c {
#address-cells = <1>;
#size-cells = <0>;
charger@75 {
reg = <0x75>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
PWM beeper
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/pwm-beeper.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pwm-beeper"
pwms — required here #
Maximum number of items (maxItems): 1
amp-supply — not listed as required here #
an amplifier for the beeper
beeper-hz — not listed as required here #
bell frequency in Hz
Minimum value (minimum): 10
Maximum value (maximum): 10000
Required in this object (required): "compatible", "pwms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
beeper {
compatible = "pwm-beeper";
pwms = <&pwm0>;
amp-supply = <&beeper_amp>;
beeper-hz = <1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
PWM vibrator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/pwm-vibrator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
Registers a PWM device as vibrator. It is expected, that the vibrator's strength increases based on the duty cycle of the enable PWM channel (100% duty cycle meaning strongest vibration, 0% meaning no vibration). The binding supports an optional direction PWM channel, that can be driven at fixed duty cycle. If available this is can be used to increase the vibration effect of some devices.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pwm-vibrator"
pwm-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"enable"
Item 2
Exact value (
const):"direction"
Minimum number of items (minItems): 1
pwms — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
enable-gpios — not listed as required here #
true — No constraints added by this property rule.
vcc-supply — not listed as required here #
true — No constraints added by this property rule.
direction-duty-cycle-ns — not listed as required here #
Duty cycle of the direction PWM channel in nanoseconds, defaults to 50% of the channel's period.
Required in this object (required): "compatible", "pwm-names", "pwms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
vibrator {
compatible = "pwm-vibrator";
pwms = <&pwm9 0 1000000000 0>,
<&pwm8 0 1000000000 0>;
pwm-names = "enable", "direction";
direction-duty-cycle-ns = <1000000000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm PM8921 PMIC KeyPad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8921-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dmitry Baryshkov <dmitry.baryshkov@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,pm8058-keypad", "qcom,pm8921-keypad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
key sense
Item 2
key stuck
wakeup-source — not listed as required here #
Value type (type): "boolean"
use any event on keypad as wakeup event
linux,keypad-wakeup — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
legacy version of the wakeup-source property
debounce — not listed as required here #
Time in microseconds that key must be pressed or released for state change interrupt to trigger.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
scan-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
time in microseconds to pause between successive scans of the matrix array
row-hold — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
time in nanoseconds to pause between scans of each row in the matrix array.
Required in this object (required): "compatible", "reg", "interrupts", "linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
keypad@148 {
compatible = "qcom,pm8921-keypad";
reg = <0x148>;
interrupt-parent = <&pmicintc>;
interrupts = <74 IRQ_TYPE_EDGE_RISING>, <75 IRQ_TYPE_EDGE_RISING>;
linux,keymap = <
MATRIX_KEY(0, 0, KEY_VOLUMEUP)
MATRIX_KEY(0, 1, KEY_VOLUMEDOWN)
MATRIX_KEY(0, 2, KEY_CAMERA_FOCUS)
MATRIX_KEY(0, 3, KEY_CAMERA)
>;
keypad,num-rows = <1>;
keypad,num-columns = <5>;
debounce = <15>;
scan-delay = <32>;
row-hold = <91500>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm PM8921 PMIC Power Key
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8921-pwrkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8921-pwrkey","qcom,pm8058-pwrkey"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pm8921-pwrkey"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
key release
Item 2
key press
debounce — not listed as required here #
Time in microseconds that key must be pressed or released for state change interrupt to trigger.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pull-up — not listed as required here #
Presence of this property indicates that the KPDPWR_N pin should be configured for pull up.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ssbi {
#address-cells = <1>;
#size-cells = <0>;
pmic@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
pwrkey@1c {
compatible = "qcom,pm8921-pwrkey";
reg = <0x1c>;
interrupt-parent = <&pmicint>;
interrupts = <50 IRQ_TYPE_EDGE_RISING>, <51 IRQ_TYPE_EDGE_RISING>;
debounce = <15625>;
pull-up;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm PM8941 PMIC Power Key
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Courtney Cavin <courtney.cavin@sonymobile.com>", "Vinod Koul <vkoul@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8941-pwrkey","qcom,pm8941-resin","qcom,pmk8350-pwrkey","qcom,pmk8350-resin"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"qcom,pmm8654au-pwrkey"Item 2
Exact value (
const):"qcom,pmk8350-pwrkey"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"qcom,pmm8654au-resin"Item 2
Exact value (
const):"qcom,pmk8350-resin"
interrupts — required here #
Maximum number of items (maxItems): 1
debounce — not listed as required here #
Time in microseconds that key must be pressed or released for state change interrupt to trigger.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
bias-pull-up — not listed as required here #
Presence of this property indicates that the KPDPWR_N pin should be configured for pull up.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
wakeup-source — not listed as required here #
Button can wake-up the system. Only applicable for 'resin', 'pwrkey' always wakes the system by default.
linux,code — not listed as required here #
The input key-code associated with the power key. Use the linux event codes defined in include/dt-bindings/input/linux-event-codes.h. When property is omitted KEY_POWER is assumed.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,pm8941-pwrkey","qcom,pmk8350-pwrkey"When the condition matches (
then) #Properties and child nodes (
properties)
wakeup-source— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm PM8xxx PMIC Vibrator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8xxx-vib.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8058-vib","qcom,pm8916-vib","qcom,pm8921-vib","qcom,pmi632-vib"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,pm6150-vib","qcom,pm7250b-vib","qcom,pm7325b-vib","qcom,pm7550ba-vib"Item 2
Exact value (
const):"qcom,pmi632-vib"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
pmic {
#address-cells = <1>;
#size-cells = <0>;
vibrator@4a {
compatible = "qcom,pm8058-vib";
reg = <0x4a>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Regulator Haptic
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/regulator-haptic.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jaewon Kim <jaewon02.kim@samsung.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "regulator-haptic"
haptic-supply — required here #
Power supply to the haptic motor
max-microvolt — required here #
The maximum voltage value supplied to the haptic motor
min-microvolt — required here #
The minimum voltage value supplied to the haptic motor
Required in this object (required): "compatible", "haptic-supply", "max-microvolt", "min-microvolt"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
haptics {
compatible = "regulator-haptic";
haptic-supply = <&motor_regulator>;
max-microvolt = <2700000>;
min-microvolt = <1100000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Rotary encoder
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/rotary-encoder.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
See Documentation/input/devices/rotary-encoder.rst for more information.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rotary-encoder"
gpios — required here #
Minimum number of items (minItems): 2
linux,axis — not listed as required here #
Default value (default): 0
the input subsystem axis to map to this rotary encoder. Defaults to 0 (ABS_X / REL_X)
rotary-encoder,steps — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 24
Number of steps in a full turnaround of the encoder. Only relevant for absolute axis. Defaults to 24 which is a typical value for such devices.
rotary-encoder,relative-axis — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
register a relative axis rather than an absolute one. Relative axis will only generate +1/-1 events on the input device, hence no steps need to be passed.
rotary-encoder,rollover — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Automatic rollover when the rotary value becomes greater than the specified steps or smaller than 0. For absolute axis only.
rotary-encoder,steps-per-period — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 1
Allowed values (enum): 1, 2, 4
Number of steps (stable states) per period. The values have the following meaning: 1: Full-period mode (default) 2: Half-period mode 4: Quarter-period mode
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
rotary-encoder,encoding — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
the method used to encode steps.
Allowed values (enum): "gray", "binary"
rotary-encoder,half-period — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Deprecated (deprecated): true
Makes the driver work on half-period mode. This property is deprecated. Instead, a 'steps-per-period ' value should be used, such as "rotary-encoder,steps-per-period = <2>".
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
rotary {
compatible = "rotary-encoder";
gpios = <&gpio 19 1>, <&gpio 20 0>; /* GPIO19 is inverted */
linux,axis = <0>; /* REL_X */
rotary-encoder,encoding = "gray";
rotary-encoder,relative-axis;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Samsung SoC series Keypad Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/samsung,s3c6410-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Samsung SoC Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a key-press and key-release and report the event using a interrupt to the cpu.
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,s3c6410-keypad", "samsung,s5pv210-keypad"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"keypad"
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
linux,input-no-autorepeat — not listed as required here #
Value type (type): "boolean"
Do no enable autorepeat feature.
linux,input-wakeup — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
samsung,keypad-num-columns — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of column lines connected to the keypad controller.
samsung,keypad-num-rows — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of row lines connected to the keypad controller.
Properties matching a name pattern (patternProperties) #
^key-[0-9a-z]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Each key connected to the keypad controller is represented as a child node to the keypad controller device node.
Properties and child nodes (properties) #
keypad,column — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The column number to which the key is connected.
keypad,row — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The row number to which the key is connected.
linux,code — required here
true — No constraints added by this property rule.
Required in this object (required): "keypad,column", "keypad,row", "linux,code"
Required in this object (required): "compatible", "reg", "interrupts", "samsung,keypad-num-columns", "samsung,keypad-num-rows"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
keypad@100a0000 {
compatible = "samsung,s5pv210-keypad";
reg = <0x100a0000 0x100>;
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clock CLK_KEYIF>;
clock-names = "keypad";
samsung,keypad-num-rows = <2>;
samsung,keypad-num-columns = <8>;
linux,input-no-autorepeat;
wakeup-source;
key-1 {
keypad,row = <0>;
keypad,column = <3>;
linux,code = <2>;
};
key-2 {
keypad,row = <0>;
keypad,column = <4>;
linux,code = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Spreadtrum SC27xx PMIC Vibrator
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/sprd,sc27xx-vibrator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sprd,sc2721-vibrator", "sprd,sc2730-vibrator", "sprd,sc2731-vibrator"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2020 Unisoc Inc.
Synaptics RMI4 compliant devices
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/syna,rmi4.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jason A. Donenfeld <Jason@zx2c4.com>", "Matthias Schiffer <matthias.schiffer@ew.tq-group.com>", "Vincent Huang <vincent.huang@tw.synaptics.com>"
The Synaptics RMI4 (Register Mapped Interface 4) core is able to support RMI4 devices using different transports (I2C, SPI) and different functions (e.g. Function 1, 2D sensors using Function 11 or 12).
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "syna,rmi4-i2c", "syna,rmi4-spi"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Active low signal
spi-cpha — not listed as required here #
true — No constraints added by this property rule.
spi-cpol — not listed as required here #
true — No constraints added by this property rule.
syna,reset-delay-ms — not listed as required here #
Delay to wait after resetting the device.
syna,startup-delay-ms — not listed as required here #
Delay to wait after powering on the device.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
vio-supply — not listed as required here #
true — No constraints added by this property rule.
rmi4-f01@1 — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Function 1
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
syna,nosleep-mode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
If set the device will run at full power without sleeping. nosleep has 3 modes, 0 will not change the default setting, 1 will disable nosleep (allow sleeping), and 2 will enable nosleep (disabling sleep).
syna,wakeup-threshold — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Defines the amplitude of the disturbance to the background capacitance that will cause the device to wake from dozing.
syna,doze-holdoff-ms — not listed as required here
The delay to wait after the last finger lift and the first doze cycle.
syna,doze-interval-ms — not listed as required here
The time period that the device sleeps between finger activity.
Required in this object (required): "reg"
rmi4-f1a@1a — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Shared schema rule ($ref): input.yaml#
RMI4 Function 1A is for capacitive keys.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
linux,keycodes — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Required in this object (required): "reg"
Properties matching a name pattern (patternProperties) #
^rmi4-f1[12]@1[12]$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Shared schema rule ($ref): /schemas/input/touchscreen/touchscreen.yaml#
RMI4 Function 11 and Function 12 are for 2D touch position sensing.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
syna,clip-x-low — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value for X.
syna,clip-y-low — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value for Y.
syna,clip-x-high — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value for X.
syna,clip-y-high — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value for Y.
syna,offset-x — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Add an offset to X.
syna,offset-y — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Add an offset to Y.
syna,delta-x-threshold — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum distance on the X axis required to generate an interrupt in reduced reporting mode.
syna,delta-y-threshold — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum distance on the Y axis required to generate an interrupt in reduced reporting mode.
syna,sensor-type — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Sensor type: 1 for touchscreen 2 for touchpad.
syna,disable-report-mask — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Mask for disabling posiiton reporting. Used to disable reporing absolute position data.
syna,rezero-wait-ms — not listed as required here
Time to wait after issuing a rezero command.
Required in this object (required): "reg"
^rmi4-f[0-9a-f]+@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Other functions, not documented yet.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
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#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"syna,rmi4-i2c"When the condition matches (
then) #Properties and child nodes (
properties)
spi-rx-delay-us— not listed as required here
false— Not permitted by this property rule.
spi-tx-delay-us— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
syna,reset-delay-ms— not listed as required here
false— Not permitted by this property rule.
syna,startup-delay-ms— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@20 {
compatible = "syna,rmi4-i2c";
reg = <0x20>;
interrupt-parent = <&gpx1>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
syna,startup-delay-ms = <100>;
vdd-supply = <&tsp_vdd>;
vio-supply = <&ldo32_reg>;
pinctrl-0 = <&touch_irq>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f12@12 {
reg = <0x12>;
syna,sensor-type = <1>;
};
rmi4-f1a@1a {
reg = <0x1a>;
linux,keycodes = <KEY_BACK KEY_HOME KEY_MENU>;
};
};
};
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@0 {
compatible = "syna,rmi4-spi";
reg = <0x0>;
interrupt-parent = <&gpx1>;
interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <4000000>;
spi-rx-delay-us = <30>;
spi-cpha;
spi-cpol;
#address-cells = <1>;
#size-cells = <0>;
rmi4-f01@1 {
reg = <0x1>;
syna,nosleep-mode = <1>;
};
rmi4-f11@11 {
reg = <0x11>;
touchscreen-inverted-y;
syna,sensor-type = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Texas Instruments - drv260x Haptics driver family
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ti,drv260x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,drv2604", "ti,drv2605", "ti,drv2605l"
reg — required here #
Maximum number of items (maxItems): 1
vbat-supply — not listed as required here #
Power supply to the haptic motor
mode — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Power up mode of the chip (defined in include/dt-bindings/input/ti-drv260x.h)
DRV260X_LRA_MODE
Linear Resonance Actuator mode (Piezoelectric)
DRV260X_LRA_NO_CAL_MODE
This is a LRA Mode but there is no calibration sequence during init.
And the device is configured for real time playback mode (RTP mode).
DRV260X_ERM_MODE
Eccentric Rotating Mass mode (Rotary vibrator)
Allowed values (enum): 0, 1, 2
library-sel — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
These are ROM based waveforms pre-programmed into the IC. This should be set to set the library to use at power up. (defined in include/dt-bindings/input/ti-drv260x.h)
DRV260X_LIB_EMPTY - Do not use a pre-programmed library DRV260X_ERM_LIB_A - Pre-programmed Library DRV260X_ERM_LIB_B - Pre-programmed Library DRV260X_ERM_LIB_C - Pre-programmed Library DRV260X_ERM_LIB_D - Pre-programmed Library DRV260X_ERM_LIB_E - Pre-programmed Library DRV260X_ERM_LIB_F - Pre-programmed Library DRV260X_LIB_LRA - Pre-programmed LRA Library
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7
enable-gpio — not listed as required here #
Maximum number of items (maxItems): 1
Deprecated (deprecated): true
enable-gpios — required here #
Maximum number of items (maxItems): 1
vib-rated-mv — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The rated voltage of the actuator in millivolts. If this is not set then the value will be defaulted to 3200 mV.
Default value (default): 3200
vib-overdrive-mv — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The overdrive voltage of the actuator in millivolts. If this is not set then the value will be defaulted to 3200 mV.
Default value (default): 3200
Required in this object (required): "compatible", "reg", "enable-gpios", "mode", "library-sel"
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/ti-drv260x.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
haptics@5a {
compatible = "ti,drv2605l";
reg = <0x5a>;
vbat-supply = <&vbat>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
mode = <DRV260X_LRA_MODE>;
library-sel = <DRV260X_LIB_LRA>;
vib-rated-mv = <3200>;
vib-overdrive-mv = <3200>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 25: TODO: Deprecate 'mode' in favor of differently named property
Texas Instruments - drv266x Haptics driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ti,drv266x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Product Page:
http://www.ti.com/product/drv2665
http://www.ti.com/product/drv2667
Maintainers (maintainers): "Anshul Dalal <anshulusr@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,drv2665", "ti,drv2667"
reg — required here #
Maximum number of items (maxItems): 1
vbat-supply — required here #
Required supply regulator
Required in this object (required): "compatible", "reg", "vbat-supply"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
haptics@59 {
compatible = "ti,drv2667";
reg = <0x59>;
vbat-supply = <&vbat>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI-NSPIRE Keypad
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ti,nspire-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,nspire-keypad"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
scan-interval — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
How often to scan in us. Based on a APB speed of 33MHz, the maximum and minimum delay time is ~2000us and ~500us respectively
row-delay — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
How long to wait between scanning each row in us.
active-low — not listed as required here #
Specify that the keypad is active low.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "scan-interval", "row-delay", "linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
keypad@900e0000 {
compatible = "ti,nspire-keypad";
reg = <0x900e0000 0x1000>;
interrupts = <16>;
clocks = <&apb_pclk>;
scan-interval = <1000>;
row-delay = <200>;
linux,keymap = <
MATRIX_KEY(0, 0, KEY_ENTER)
MATRIX_KEY(0, 1, KEY_ENTER)
MATRIX_KEY(0, 4, KEY_SPACE)
MATRIX_KEY(0, 5, KEY_Z)
MATRIX_KEY(0, 6, KEY_Y)
MATRIX_KEY(0, 7, KEY_0)
>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TI TCA8418 I2C/SMBus keypad scanner
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ti,tca8418.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tca8418"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
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>;
keypad@34 {
compatible = "ti,tca8418";
reg = <0x34>;
interrupt-parent = <&gpio5>;
interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
keypad,num-rows = <4>;
keypad,num-columns = <4>;
linux,keymap = < MATRIX_KEY(0x00, 0x01, BTN_0)
MATRIX_KEY(0x00, 0x00, BTN_1)
MATRIX_KEY(0x01, 0x01, BTN_2)
MATRIX_KEY(0x01, 0x00, BTN_3)
MATRIX_KEY(0x02, 0x00, BTN_4)
MATRIX_KEY(0x00, 0x03, BTN_5)
MATRIX_KEY(0x00, 0x02, BTN_6)
MATRIX_KEY(0x01, 0x03, BTN_7)
MATRIX_KEY(0x01, 0x02, BTN_8)
MATRIX_KEY(0x02, 0x02, BTN_9)
>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TWL4030-family Keypad Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id): "http://devicetree.org/schemas/input/ti,twl4030-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Peter Ujfalusi <peter.ujfalusi@gmail.com>"
TWL4030's Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a key-press and key-release and report the event using a interrupt to the cpu.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):matrix-keymap.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,twl4030-keypad"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "interrupts", "keypad,num-rows", "keypad,num-columns", "linux,keymap"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/input/input.h>
keypad {
compatible = "ti,twl4030-keypad";
interrupts = <1>;
keypad,num-rows = <8>;
keypad,num-columns = <8>;
linux,keymap = <
/* row 0 */
MATRIX_KEY(0, 0, KEY_1)
MATRIX_KEY(0, 1, KEY_2)
MATRIX_KEY(0, 2, KEY_3)
/* ...and so on for a full 8x8 matrix... */
/* row 7 */
MATRIX_KEY(7, 6, KEY_Y)
MATRIX_KEY(7, 7, KEY_Z)
>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Zodiac Inflight Innovations RAVE Supervisory Processor Power Button
Peios Kernel / Hardware and drivers / Device-tree binding reference / Input bindings
Schema identifier ($id):
Schema dialect ($schema):
Properties and child nodes (properties) #
compatible — required here #
Exact value (const):
Required in this object (required):
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
pwrbutton {
compatible = "zii,rave-sp-pwrbutton";
};