Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: input: i2c-hid: Introduce Ilitek ili9882t

The ili9882t touch screen chip same as Elan eKTH6915 controller
has a reset gpio. The difference is that ili9882t needs to use
vccio-supply instead of vcc33-supply. Doug's series[1] allows panels
and touchscreens to power on/off together, let's add a phandle for this.

[1]: https://lore.kernel.org/r/20230607215224.2067679-1-dianders@chromium.org

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Cong Yang <yangcong5@huaqin.corp-partner.google.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230802071947.1683318-2-yangcong5@huaqin.corp-partner.google.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

authored by

Cong Yang and committed by
Benjamin Tissoires
7d3b0d9e 1d754604

+67
+67
Documentation/devicetree/bindings/input/ilitek,ili9882t.yaml
··· 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 <yangcong5@huaqin.corp-partner.google.com> 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 + };