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
32 Optional regulator for the AVDD analog voltage.
36 Optional regulator for the VDD digital voltage.
41 Optional GPIO specifier for the touchscreen's reset pin
42 (active low). The line must be flagged with
48 Optional GPIO specifier for the touchscreen's wake pin
49 (active low). The line must be flagged with
53 $ref: /schemas/types.yaml#/definitions/uint32-array
55 When enabled, the SPT_GPIOPWN_T19 object sends messages
56 on GPIO bit changes. An array of up to 8 entries can be provided
57 indicating the Linux keycode mapped to each bit of the status byte,
58 starting at the LSB. Linux keycodes are defined in
59 <dt-bindings/input/input.h>.
61 Note: the numbering of the GPIOs and the bit they start at varies
62 between maXTouch devices. You must either refer to the documentation,
63 or experiment to determine which bit corresponds to which input. Use
64 KEY_RESERVED for unused padding values.
71 $ref: /schemas/types.yaml#/definitions/uint32
73 The WAKE line is an active-low input that is used to wake up the touch
74 controller from deep-sleep mode before communication with the controller
75 could be started. This optional feature used to minimize current
76 consumption when the controller is in deep sleep mode. This feature is
77 relevant only to some controller families, like mXT1386 controller for
80 The WAKE pin can be connected in one of the following ways:
81 1) left permanently low
82 2) connected to the I2C-compatible SCL pin
83 3) connected to a GPIO pin on the host
85 - 0 # ATMEL_MXT_WAKEUP_NONE
86 - 1 # ATMEL_MXT_WAKEUP_I2C_SCL
87 - 2 # ATMEL_MXT_WAKEUP_GPIO
98 additionalProperties: false
102 #include <dt-bindings/interrupt-controller/irq.h>
103 #include <dt-bindings/input/atmel-maxtouch.h>
104 #include <dt-bindings/gpio/gpio.h>
106 #address-cells = <1>;
109 compatible = "atmel,maxtouch";
111 interrupt-parent = <&gpio>;
112 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
113 reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
114 vdda-supply = <&ab8500_ldo_aux2_reg>;
115 vdd-supply = <&ab8500_ldo_aux5_reg>;
116 atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;