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: touchscreen: convert elan,ektf2127 to json-schema

Convert EKTF2127 infrared touchscreen controller binding to DT schema
and add ektf2232 compatible.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240621224022.1620897-2-andreas@kemnade.info
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andreas Kemnade and committed by
Dmitry Torokhov
dfb60401 50717edb

+57 -25
-25
Documentation/devicetree/bindings/input/touchscreen/ektf2127.txt
··· 1 - * Elan eKTF2127 I2C touchscreen controller 2 - 3 - Required properties: 4 - - compatible : "elan,ektf2127" or "elan,ektf2132" 5 - - reg : I2C slave address of the chip (0x40) 6 - - interrupts : interrupt specification for the ektf2127 interrupt 7 - - power-gpios : GPIO specification for the pin connected to the 8 - ektf2127's wake input. This needs to be driven high 9 - to take ektf2127 out of its low power state 10 - 11 - For additional optional properties see: touchscreen.txt 12 - 13 - Example: 14 - 15 - i2c@00000000 { 16 - ektf2127: touchscreen@15 { 17 - compatible = "elan,ektf2127"; 18 - reg = <0x15>; 19 - interrupt-parent = <&pio>; 20 - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING> 21 - power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; 22 - touchscreen-inverted-x; 23 - touchscreen-swapped-x-y; 24 - }; 25 - };
+57
Documentation/devicetree/bindings/input/touchscreen/elan,ektf2127.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/touchscreen/elan,ektf2127.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Elan eKTF2127 I2C touchscreen controller 8 + 9 + maintainers: 10 + - Siebren Vroegindeweij <siebren.vroegindeweij@hotmail.com> 11 + 12 + allOf: 13 + - $ref: touchscreen.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - elan,ektf2127 19 + - elan,ektf2132 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + power-gpios: 28 + maxItems: 1 29 + 30 + required: 31 + - compatible 32 + - reg 33 + - interrupts 34 + - power-gpios 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/gpio/gpio.h> 41 + #include <dt-bindings/interrupt-controller/irq.h> 42 + 43 + i2c { 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + 47 + touchscreen@15 { 48 + compatible = "elan,ektf2127"; 49 + reg = <0x15>; 50 + interrupt-parent = <&pio>; 51 + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; 52 + power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; 53 + touchscreen-inverted-x; 54 + touchscreen-swapped-x-y; 55 + }; 56 + }; 57 + ...