1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Atmel maXTouch touchscreen/touchpad
10 - Nick Dyer <nick@shmanahar.org>
11 - Linus Walleij <linus.walleij@linaro.org>
14 Atmel maXTouch touchscreen or touchpads such as the mXT244
29 Optional regulator for the AVDD analog voltage.
33 Optional regulator for the VDD digital voltage.
38 Optional GPIO specifier for the touchscreen's reset pin
39 (active low). The line must be flagged with
45 Optional GPIO specifier for the touchscreen's wake pin
46 (active low). The line must be flagged with
50 $ref: /schemas/types.yaml#/definitions/uint32-array
52 When enabled, the SPT_GPIOPWN_T19 object sends messages
53 on GPIO bit changes. An array of up to 8 entries can be provided
54 indicating the Linux keycode mapped to each bit of the status byte,
55 starting at the LSB. Linux keycodes are defined in
56 <dt-bindings/input/input.h>.
58 Note: the numbering of the GPIOs and the bit they start at varies
59 between maXTouch devices. You must either refer to the documentation,
60 or experiment to determine which bit corresponds to which input. Use
61 KEY_RESERVED for unused padding values.
64 $ref: /schemas/types.yaml#/definitions/uint32
66 The WAKE line is an active-low input that is used to wake up the touch
67 controller from deep-sleep mode before communication with the controller
68 could be started. This optional feature used to minimize current
69 consumption when the controller is in deep sleep mode. This feature is
70 relevant only to some controller families, like mXT1386 controller for
73 The WAKE pin can be connected in one of the following ways:
74 1) left permanently low
75 2) connected to the I2C-compatible SCL pin
76 3) connected to a GPIO pin on the host
78 - 0 # ATMEL_MXT_WAKEUP_NONE
79 - 1 # ATMEL_MXT_WAKEUP_I2C_SCL
80 - 2 # ATMEL_MXT_WAKEUP_GPIO
91 additionalProperties: false
95 #include <dt-bindings/interrupt-controller/irq.h>
96 #include <dt-bindings/input/atmel-maxtouch.h>
97 #include <dt-bindings/gpio/gpio.h>
102 compatible = "atmel,maxtouch";
104 interrupt-parent = <&gpio>;
105 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
106 reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
107 vdda-supply = <&ab8500_ldo_aux2_reg>;
108 vdd-supply = <&ab8500_ldo_aux5_reg>;
109 atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;