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: tsc2005: Convert to YAML schema

Convert the TI TSC2004/TSC2005 DT bindings to YAML schema.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210620210708.100147-1-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Marek Vasut and committed by
Dmitry Torokhov
247141f5 62e4fe9f

+128 -64
+128
Documentation/devicetree/bindings/input/touchscreen/ti,tsc2005.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/ti,tsc2005.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments TSC2004 and TSC2005 touchscreen controller bindings 8 + 9 + maintainers: 10 + - Marek Vasut <marex@denx.de> 11 + - Michael Welling <mwelling@ieee.org> 12 + 13 + properties: 14 + $nodename: 15 + pattern: "^touchscreen(@.*)?$" 16 + 17 + compatible: 18 + enum: 19 + - ti,tsc2004 20 + - ti,tsc2005 21 + 22 + reg: 23 + maxItems: 1 24 + description: | 25 + I2C address when used on the I2C bus, or the SPI chip select index 26 + when used on the SPI bus 27 + 28 + interrupts: 29 + maxItems: 1 30 + 31 + reset-gpios: 32 + maxItems: 1 33 + description: GPIO specifier for the controller reset line 34 + 35 + spi-max-frequency: 36 + description: TSC2005 SPI bus clock frequency. 37 + maximum: 25000000 38 + 39 + ti,x-plate-ohms: 40 + description: resistance of the touchscreen's X plates in ohm (defaults to 280) 41 + 42 + ti,esd-recovery-timeout-ms: 43 + description: | 44 + if the touchscreen does not respond after the configured time 45 + (in milli seconds), the driver will reset it. This is disabled 46 + by default. 47 + 48 + vio-supply: 49 + description: Regulator specifier 50 + 51 + touchscreen-fuzz-pressure: true 52 + touchscreen-fuzz-x: true 53 + touchscreen-fuzz-y: true 54 + touchscreen-max-pressure: true 55 + touchscreen-size-x: true 56 + touchscreen-size-y: true 57 + 58 + allOf: 59 + - $ref: touchscreen.yaml# 60 + - if: 61 + properties: 62 + compatible: 63 + contains: 64 + const: ti,tsc2004 65 + then: 66 + properties: 67 + spi-max-frequency: false 68 + 69 + additionalProperties: false 70 + 71 + required: 72 + - compatible 73 + - reg 74 + - interrupts 75 + 76 + examples: 77 + - | 78 + #include <dt-bindings/interrupt-controller/irq.h> 79 + #include <dt-bindings/gpio/gpio.h> 80 + i2c { 81 + #address-cells = <1>; 82 + #size-cells = <0>; 83 + touchscreen@48 { 84 + compatible = "ti,tsc2004"; 85 + reg = <0x48>; 86 + vio-supply = <&vio>; 87 + 88 + reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; 89 + interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>; 90 + 91 + touchscreen-fuzz-x = <4>; 92 + touchscreen-fuzz-y = <7>; 93 + touchscreen-fuzz-pressure = <2>; 94 + touchscreen-size-x = <4096>; 95 + touchscreen-size-y = <4096>; 96 + touchscreen-max-pressure = <2048>; 97 + 98 + ti,x-plate-ohms = <280>; 99 + ti,esd-recovery-timeout-ms = <8000>; 100 + }; 101 + }; 102 + - | 103 + #include <dt-bindings/interrupt-controller/irq.h> 104 + #include <dt-bindings/gpio/gpio.h> 105 + spi { 106 + #address-cells = <1>; 107 + #size-cells = <0>; 108 + touchscreen@0 { 109 + compatible = "ti,tsc2005"; 110 + spi-max-frequency = <6000000>; 111 + reg = <0>; 112 + 113 + vio-supply = <&vio>; 114 + 115 + reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ 116 + interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */ 117 + 118 + touchscreen-fuzz-x = <4>; 119 + touchscreen-fuzz-y = <7>; 120 + touchscreen-fuzz-pressure = <2>; 121 + touchscreen-size-x = <4096>; 122 + touchscreen-size-y = <4096>; 123 + touchscreen-max-pressure = <2048>; 124 + 125 + ti,x-plate-ohms = <280>; 126 + ti,esd-recovery-timeout-ms = <8000>; 127 + }; 128 + };
-64
Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt
··· 1 - * Texas Instruments tsc2004 and tsc2005 touchscreen controllers 2 - 3 - Required properties: 4 - - compatible : "ti,tsc2004" or "ti,tsc2005" 5 - - reg : Device address 6 - - interrupts : IRQ specifier 7 - - spi-max-frequency : Maximum SPI clocking speed of the device 8 - (for tsc2005) 9 - 10 - Optional properties: 11 - - vio-supply : Regulator specifier 12 - - reset-gpios : GPIO specifier for the controller reset line 13 - - ti,x-plate-ohms : integer, resistance of the touchscreen's X plates 14 - in ohm (defaults to 280) 15 - - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after 16 - the configured time (in milli seconds), the driver 17 - will reset it. This is disabled by default. 18 - - properties defined in touchscreen.txt 19 - 20 - Example: 21 - 22 - &i2c3 { 23 - tsc2004@48 { 24 - compatible = "ti,tsc2004"; 25 - reg = <0x48>; 26 - vio-supply = <&vio>; 27 - 28 - reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; 29 - interrupts-extended = <&gpio1 27 IRQ_TYPE_EDGE_RISING>; 30 - 31 - touchscreen-fuzz-x = <4>; 32 - touchscreen-fuzz-y = <7>; 33 - touchscreen-fuzz-pressure = <2>; 34 - touchscreen-size-x = <4096>; 35 - touchscreen-size-y = <4096>; 36 - touchscreen-max-pressure = <2048>; 37 - 38 - ti,x-plate-ohms = <280>; 39 - ti,esd-recovery-timeout-ms = <8000>; 40 - }; 41 - } 42 - 43 - &mcspi1 { 44 - tsc2005@0 { 45 - compatible = "ti,tsc2005"; 46 - spi-max-frequency = <6000000>; 47 - reg = <0>; 48 - 49 - vio-supply = <&vio>; 50 - 51 - reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */ 52 - interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */ 53 - 54 - touchscreen-fuzz-x = <4>; 55 - touchscreen-fuzz-y = <7>; 56 - touchscreen-fuzz-pressure = <2>; 57 - touchscreen-size-x = <4096>; 58 - touchscreen-size-y = <4096>; 59 - touchscreen-max-pressure = <2048>; 60 - 61 - ti,x-plate-ohms = <280>; 62 - ti,esd-recovery-timeout-ms = <8000>; 63 - }; 64 - }