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: touchscreen: convert tsc2007.txt to yaml format

Convert tsc2007.txt to yaml format.

Additional changes:
- add pendown-gpio property to match existed dts.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250529193241.793678-1-Frank.Li@nxp.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Frank Li and committed by
Dmitry Torokhov
45601c66 54e626d0

+75 -39
+75
Documentation/devicetree/bindings/input/touchscreen/ti.tsc2007.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.tsc2007.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments tsc2007 touchscreen controller 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + const: ti,tsc2007 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + ti,x-plate-ohms: 23 + description: X-plate resistance in ohms. 24 + 25 + gpios: true 26 + 27 + pendown-gpio: true 28 + 29 + ti,max-rt: 30 + $ref: /schemas/types.yaml#/definitions/uint32 31 + description: maximum pressure. 32 + 33 + ti,fuzzx: 34 + $ref: /schemas/types.yaml#/definitions/uint32 35 + description: 36 + specifies the absolute input fuzz x value. 37 + If set, it will permit noise in the data up to +- the value given to the fuzz 38 + parameter, that is used to filter noise from the event stream. 39 + 40 + ti,fuzzy: 41 + $ref: /schemas/types.yaml#/definitions/uint32 42 + description: specifies the absolute input fuzz y value. 43 + 44 + ti,fuzzz: 45 + $ref: /schemas/types.yaml#/definitions/uint32 46 + description: specifies the absolute input fuzz z value. 47 + 48 + ti,poll-period: 49 + $ref: /schemas/types.yaml#/definitions/uint32 50 + description: 51 + how much time to wait (in milliseconds) before reading again the 52 + values from the tsc2007. 53 + 54 + required: 55 + - compatible 56 + - reg 57 + - ti,x-plate-ohms 58 + 59 + additionalProperties: false 60 + 61 + examples: 62 + - | 63 + i2c { 64 + #address-cells = <1>; 65 + #size-cells = <0>; 66 + 67 + touch@49 { 68 + compatible = "ti,tsc2007"; 69 + reg = <0x49>; 70 + interrupt-parent = <&gpio4>; 71 + interrupts = <0x0 0x8>; 72 + gpios = <&gpio4 0 0>; 73 + ti,x-plate-ohms = <180>; 74 + }; 75 + };
-39
Documentation/devicetree/bindings/input/touchscreen/tsc2007.txt
··· 1 - * Texas Instruments tsc2007 touchscreen controller 2 - 3 - Required properties: 4 - - compatible: must be "ti,tsc2007". 5 - - reg: I2C address of the chip. 6 - - ti,x-plate-ohms: X-plate resistance in ohms. 7 - 8 - Optional properties: 9 - - gpios: the interrupt gpio the chip is connected to (through the penirq pin). 10 - The penirq pin goes to low when the panel is touched. 11 - (see GPIO binding[1] for more details). 12 - - interrupts: (gpio) interrupt to which the chip is connected 13 - (see interrupt binding[0]). 14 - - ti,max-rt: maximum pressure. 15 - - ti,fuzzx: specifies the absolute input fuzz x value. 16 - If set, it will permit noise in the data up to +- the value given to the fuzz 17 - parameter, that is used to filter noise from the event stream. 18 - - ti,fuzzy: specifies the absolute input fuzz y value. 19 - - ti,fuzzz: specifies the absolute input fuzz z value. 20 - - ti,poll-period: how much time to wait (in milliseconds) before reading again the 21 - values from the tsc2007. 22 - 23 - [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 24 - [1]: Documentation/devicetree/bindings/gpio/gpio.txt 25 - 26 - Example: 27 - &i2c1 { 28 - /* ... */ 29 - tsc2007@49 { 30 - compatible = "ti,tsc2007"; 31 - reg = <0x49>; 32 - interrupt-parent = <&gpio4>; 33 - interrupts = <0x0 0x8>; 34 - gpios = <&gpio4 0 0>; 35 - ti,x-plate-ohms = <180>; 36 - }; 37 - 38 - /* ... */ 39 - };