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

dt-bindings: input: touchscreen: Add Hynitron cstxxx

Add documentation for the Hynitron cstxxx touchscreen bindings.
Hynitron makes a series of touchscreen controllers, however for
now this is expected to only be compatible with the cst3xx series,
specifically the CST340, CST348, and CST356.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221028202636.14341-3-macroalpha82@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Chris Morgan and committed by
Dmitry Torokhov
86a7d13c 537187c8

+65
+65
Documentation/devicetree/bindings/input/touchscreen/hynitron,cstxxx.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/hynitron,cstxxx.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Hynitron cstxxx series touchscreen controller 8 + 9 + description: | 10 + Bindings for Hynitron cstxxx series multi-touch touchscreen 11 + controllers. 12 + 13 + maintainers: 14 + - Chris Morgan <macromorgan@hotmail.com> 15 + 16 + allOf: 17 + - $ref: touchscreen.yaml# 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - hynitron,cst340 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + interrupts: 28 + maxItems: 1 29 + 30 + reset-gpios: 31 + maxItems: 1 32 + 33 + touchscreen-size-x: true 34 + touchscreen-size-y: true 35 + touchscreen-inverted-x: true 36 + touchscreen-inverted-y: true 37 + touchscreen-swapped-x-y: true 38 + 39 + additionalProperties: false 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - interrupts 45 + - reset-gpios 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/gpio/gpio.h> 50 + #include <dt-bindings/interrupt-controller/arm-gic.h> 51 + i2c { 52 + #address-cells = <1>; 53 + #size-cells = <0>; 54 + touchscreen@1a { 55 + compatible = "hynitron,cst340"; 56 + reg = <0x1a>; 57 + interrupt-parent = <&gpio4>; 58 + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; 59 + reset-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; 60 + touchscreen-size-x = <640>; 61 + touchscreen-size-y = <480>; 62 + }; 63 + }; 64 + 65 + ...