Atmel maXTouch touchscreen/touchpad
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