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

dt-bindings: input: touchscreen: st1232: Convert to json-schema

Convert the Sitronix st1232/st1633 touchscreen controller Device Tree
binding documentation to json-schema.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-by: Martin Kepplinger <martink@posteo.de>
Link: https://lore.kernel.org/r/fbba650cff07780c28ad6dd8dbef5cc1451b7762.1623418065.git.geert+renesas@glider.be
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Geert Uytterhoeven and committed by
Dmitry Torokhov
aaf35899 c2d7ed9d

+50 -28
+50
Documentation/devicetree/bindings/input/touchscreen/sitronix,st1232.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/sitronix,st1232.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Sitronix st1232 or st1633 touchscreen controller 8 + 9 + maintainers: 10 + - Bastian Hecht <hechtb@gmail.com> 11 + 12 + allOf: 13 + - $ref: touchscreen.yaml# 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - sitronix,st1232 19 + - sitronix,st1633 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + gpios: 28 + description: A phandle to the reset GPIO 29 + maxItems: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + i2c { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + touchscreen@55 { 45 + compatible = "sitronix,st1232"; 46 + reg = <0x55>; 47 + interrupts = <2 0>; 48 + gpios = <&gpio1 166 0>; 49 + }; 50 + };
-28
Documentation/devicetree/bindings/input/touchscreen/sitronix-st1232.txt
··· 1 - * Sitronix st1232 or st1633 touchscreen controller 2 - 3 - Required properties: 4 - - compatible: must contain one of 5 - * "sitronix,st1232" 6 - * "sitronix,st1633" 7 - - reg: I2C address of the chip 8 - - interrupts: interrupt to which the chip is connected 9 - 10 - Optional properties: 11 - - gpios: a phandle to the reset GPIO 12 - 13 - For additional optional properties see: touchscreen.txt 14 - 15 - Example: 16 - 17 - i2c@00000000 { 18 - /* ... */ 19 - 20 - touchscreen@55 { 21 - compatible = "sitronix,st1232"; 22 - reg = <0x55>; 23 - interrupts = <2 0>; 24 - gpios = <&gpio1 166 0>; 25 - }; 26 - 27 - /* ... */ 28 - };