Path: blob/master/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Atmel maXTouch touchscreen/touchpad78maintainers:9- Nick Dyer <nick@shmanahar.org>10- Linus Walleij <linus.walleij@linaro.org>1112description: |13Atmel maXTouch touchscreen or touchpads such as the mXT24414and similar devices.1516allOf:17- $ref: input.yaml#1819properties:20compatible:21const: atmel,maxtouch2223reg:24maxItems: 12526interrupts:27maxItems: 12829vdda-supply:30description:31Optional regulator for the AVDD analog voltage.3233vdd-supply:34description:35Optional regulator for the VDD digital voltage.3637reset-gpios:38maxItems: 139description:40Optional GPIO specifier for the touchscreen's reset pin41(active low). The line must be flagged with42GPIO_ACTIVE_LOW.4344wake-gpios:45maxItems: 146description:47Optional GPIO specifier for the touchscreen's wake pin48(active low). The line must be flagged with49GPIO_ACTIVE_LOW.5051linux,gpio-keymap:52$ref: /schemas/types.yaml#/definitions/uint32-array53description: |54When enabled, the SPT_GPIOPWN_T19 object sends messages55on GPIO bit changes. An array of up to 8 entries can be provided56indicating the Linux keycode mapped to each bit of the status byte,57starting at the LSB. Linux keycodes are defined in58<dt-bindings/input/input.h>.5960Note: the numbering of the GPIOs and the bit they start at varies61between maXTouch devices. You must either refer to the documentation,62or experiment to determine which bit corresponds to which input. Use63KEY_RESERVED for unused padding values.6465linux,keycodes:66minItems: 167maxItems: 86869atmel,wakeup-method:70$ref: /schemas/types.yaml#/definitions/uint3271description: |72The WAKE line is an active-low input that is used to wake up the touch73controller from deep-sleep mode before communication with the controller74could be started. This optional feature used to minimize current75consumption when the controller is in deep sleep mode. This feature is76relevant only to some controller families, like mXT1386 controller for77example.7879The WAKE pin can be connected in one of the following ways:801) left permanently low812) connected to the I2C-compatible SCL pin823) connected to a GPIO pin on the host83enum:84- 0 # ATMEL_MXT_WAKEUP_NONE85- 1 # ATMEL_MXT_WAKEUP_I2C_SCL86- 2 # ATMEL_MXT_WAKEUP_GPIO87default: 08889wakeup-source:90type: boolean9192required:93- compatible94- reg95- interrupts9697additionalProperties: false9899examples:100- |101#include <dt-bindings/interrupt-controller/irq.h>102#include <dt-bindings/input/atmel-maxtouch.h>103#include <dt-bindings/gpio/gpio.h>104i2c {105#address-cells = <1>;106#size-cells = <0>;107touchscreen@4a {108compatible = "atmel,maxtouch";109reg = <0x4a>;110interrupt-parent = <&gpio>;111interrupts = <26 IRQ_TYPE_EDGE_FALLING>;112reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;113vdda-supply = <&ab8500_ldo_aux2_reg>;114vdd-supply = <&ab8500_ldo_aux5_reg>;115atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;116};117};118119...120121122