Path: blob/master/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml
51658 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 <linusw@kernel.org>1112description: |13Atmel maXTouch touchscreen or touchpads such as the mXT24414and similar devices.1516allOf:17- $ref: input.yaml#18- $ref: touchscreen/touchscreen.yaml#1920properties:21compatible:22const: atmel,maxtouch2324reg:25maxItems: 12627interrupts:28maxItems: 12930vdda-supply:31description:32Optional regulator for the AVDD analog voltage.3334vdd-supply:35description:36Optional regulator for the VDD digital voltage.3738reset-gpios:39maxItems: 140description:41Optional GPIO specifier for the touchscreen's reset pin42(active low). The line must be flagged with43GPIO_ACTIVE_LOW.4445wake-gpios:46maxItems: 147description:48Optional GPIO specifier for the touchscreen's wake pin49(active low). The line must be flagged with50GPIO_ACTIVE_LOW.5152linux,gpio-keymap:53$ref: /schemas/types.yaml#/definitions/uint32-array54description: |55When enabled, the SPT_GPIOPWN_T19 object sends messages56on GPIO bit changes. An array of up to 8 entries can be provided57indicating the Linux keycode mapped to each bit of the status byte,58starting at the LSB. Linux keycodes are defined in59<dt-bindings/input/input.h>.6061Note: the numbering of the GPIOs and the bit they start at varies62between maXTouch devices. You must either refer to the documentation,63or experiment to determine which bit corresponds to which input. Use64KEY_RESERVED for unused padding values.6566linux,keycodes:67minItems: 168maxItems: 86970atmel,wakeup-method:71$ref: /schemas/types.yaml#/definitions/uint3272description: |73The WAKE line is an active-low input that is used to wake up the touch74controller from deep-sleep mode before communication with the controller75could be started. This optional feature used to minimize current76consumption when the controller is in deep sleep mode. This feature is77relevant only to some controller families, like mXT1386 controller for78example.7980The WAKE pin can be connected in one of the following ways:811) left permanently low822) connected to the I2C-compatible SCL pin833) connected to a GPIO pin on the host84enum:85- 0 # ATMEL_MXT_WAKEUP_NONE86- 1 # ATMEL_MXT_WAKEUP_I2C_SCL87- 2 # ATMEL_MXT_WAKEUP_GPIO88default: 08990wakeup-source:91type: boolean9293required:94- compatible95- reg96- interrupts9798unevaluatedProperties: false99100examples:101- |102#include <dt-bindings/interrupt-controller/irq.h>103#include <dt-bindings/input/atmel-maxtouch.h>104#include <dt-bindings/gpio/gpio.h>105i2c {106#address-cells = <1>;107#size-cells = <0>;108touchscreen@4a {109compatible = "atmel,maxtouch";110reg = <0x4a>;111interrupt-parent = <&gpio>;112interrupts = <26 IRQ_TYPE_EDGE_FALLING>;113reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;114vdda-supply = <&ab8500_ldo_aux2_reg>;115vdd-supply = <&ab8500_ldo_aux5_reg>;116atmel,wakeup-method = <ATMEL_MXT_WAKEUP_I2C_SCL>;117};118};119120...121122123