| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/input/ilitek,ili9882t.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Ilitek ili9882t touchscreen controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Cong Yang <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
Supports the Ilitek ili9882t touchscreen controller. |
| 14 |
This touchscreen controller uses the i2c-hid protocol with a reset GPIO. |
| 15 |
|
| 16 |
allOf: |
| 17 |
- $ref: /schemas/input/touchscreen/touchscreen.yaml# |
| 18 |
|
| 19 |
properties: |
| 20 |
compatible: |
| 21 |
const: ilitek,ili9882t |
| 22 |
|
| 23 |
reg: |
| 24 |
const: 0x41 |
| 25 |
|
| 26 |
interrupts: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
panel: true |
| 30 |
|
| 31 |
reset-gpios: |
| 32 |
maxItems: 1 |
| 33 |
description: Reset GPIO. |
| 34 |
|
| 35 |
vccio-supply: |
| 36 |
description: The 1.8V supply to the touchscreen. |
| 37 |
|
| 38 |
required: |
| 39 |
- compatible |
| 40 |
- reg |
| 41 |
- interrupts |
| 42 |
- panel |
| 43 |
- vccio-supply |
| 44 |
|
| 45 |
additionalProperties: false |
| 46 |
|
| 47 |
examples: |
| 48 |
- | |
| 49 |
#include <dt-bindings/gpio/gpio.h> |
| 50 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 51 |
|
| 52 |
i2c { |
| 53 |
#address-cells = <1>; |
| 54 |
#size-cells = <0>; |
| 55 |
|
| 56 |
touchscreen: touchscreen@41 { |
| 57 |
compatible = "ilitek,ili9882t"; |
| 58 |
reg = <0x41>; |
| 59 |
|
| 60 |
interrupt-parent = <&pio>; |
| 61 |
interrupts = <12 IRQ_TYPE_LEVEL_LOW>; |
| 62 |
|
| 63 |
panel = <&panel>; |
| 64 |
reset-gpios = <&pio 60 GPIO_ACTIVE_LOW>; |
| 65 |
vccio-supply = <&mt6366_vio18_reg>; |
| 66 |
}; |
| 67 |
}; |