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

dt-bindings: touchscreen: convert zet6223 bindings to json schema

Convert Zeitec ZET6223 touchscreen controller device tree binding to
json-schema.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250918153630.2535208-4-dario.binacchi@amarulasolutions.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Dario Binacchi and committed by
Dmitry Torokhov
7ee0f793 7e52794b

+62 -30
+62
Documentation/devicetree/bindings/input/touchscreen/zeitec,zet6223.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/zeitec,zet6223.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Zeitec ZET6223 touchscreen controller 8 + 9 + description: 10 + Zeitec ZET6223 I2C driven touchscreen controller. 11 + 12 + maintainers: 13 + - Dario Binacchi <dario.binacchi@amarulasolutions.com> 14 + 15 + allOf: 16 + - $ref: touchscreen.yaml# 17 + 18 + properties: 19 + compatible: 20 + enum: 21 + - zeitec,zet6223 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + vio-supply: 30 + description: 1.8V or 3.3V VIO supply. 31 + 32 + vcc-supply: 33 + description: 3.3V VCC supply. 34 + 35 + touchscreen-inverted-x: true 36 + touchscreen-inverted-y: true 37 + touchscreen-size-x: true 38 + touchscreen-size-y: true 39 + touchscreen-swapped-x-y: true 40 + 41 + additionalProperties: false 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - interrupts 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/gpio/gpio.h> 51 + #include <dt-bindings/interrupt-controller/irq.h> 52 + i2c { 53 + #address-cells = <1>; 54 + #size-cells = <0>; 55 + 56 + touchscreen@76 { 57 + compatible = "zeitec,zet6223"; 58 + reg = <0x76>; 59 + interrupt-parent = <&pio>; 60 + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; 61 + }; 62 + };
-30
Documentation/devicetree/bindings/input/touchscreen/zet6223.txt
··· 1 - Zeitec ZET6223 I2C touchscreen controller 2 - 3 - Required properties: 4 - - compatible : "zeitec,zet6223" 5 - - reg : I2C slave address of the chip (0x76) 6 - - interrupts : interrupt specification for the zet6223 interrupt 7 - 8 - Optional properties: 9 - 10 - - vio-supply : Specification for VIO supply (1.8V or 3.3V, 11 - depending on system interface needs). 12 - - vcc-supply : Specification for 3.3V VCC supply. 13 - - touchscreen-size-x : See touchscreen.txt 14 - - touchscreen-size-y : See touchscreen.txt 15 - - touchscreen-inverted-x : See touchscreen.txt 16 - - touchscreen-inverted-y : See touchscreen.txt 17 - - touchscreen-swapped-x-y : See touchscreen.txt 18 - 19 - Example: 20 - 21 - i2c@00000000 { 22 - 23 - zet6223: touchscreen@76 { 24 - compatible = "zeitec,zet6223"; 25 - reg = <0x76>; 26 - interrupt-parent = <&pio>; 27 - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING> 28 - }; 29 - 30 - };