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: touchscreen: convert neonode,zforce to json-schema

Convert Neonode infrared touchscreen controller binding to DT schema.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231223221213.774868-2-andreas@kemnade.info
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Andreas Kemnade and committed by
Dmitry Torokhov
ad7ced12 aefebd19

+67 -34
+67
Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.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/neonode,zforce.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Neonode infrared touchscreen controller 8 + 9 + maintainers: 10 + - Heiko Stuebner <heiko@sntech.de> 11 + 12 + properties: 13 + compatible: 14 + const: neonode,zforce 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + reset-gpios: 23 + maxItems: 1 24 + 25 + irq-gpios: 26 + maxItems: 1 27 + 28 + x-size: 29 + $ref: /schemas/types.yaml#/definitions/uint32 30 + 31 + y-size: 32 + $ref: /schemas/types.yaml#/definitions/uint32 33 + 34 + vdd-supply: true 35 + 36 + required: 37 + - compatible 38 + - reg 39 + - interrupts 40 + - reset-gpios 41 + - x-size 42 + - y-size 43 + 44 + unevaluatedProperties: false 45 + 46 + examples: 47 + - | 48 + #include <dt-bindings/interrupt-controller/irq.h> 49 + 50 + i2c { 51 + #address-cells = <1>; 52 + #size-cells = <0>; 53 + 54 + touchscreen@50 { 55 + compatible = "neonode,zforce"; 56 + reg = <0x50>; 57 + interrupts = <2 0>; 58 + vdd-supply = <&reg_zforce_vdd>; 59 + 60 + reset-gpios = <&gpio5 9 0>; /* RST */ 61 + irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ 62 + 63 + x-size = <800>; 64 + y-size = <600>; 65 + }; 66 + }; 67 + ...
-34
Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt
··· 1 - * Neonode infrared touchscreen controller 2 - 3 - Required properties: 4 - - compatible: must be "neonode,zforce" 5 - - reg: I2C address of the chip 6 - - interrupts: interrupt to which the chip is connected 7 - - reset-gpios: reset gpio the chip is connected to 8 - - x-size: horizontal resolution of touchscreen 9 - - y-size: vertical resolution of touchscreen 10 - 11 - Optional properties: 12 - - irq-gpios : interrupt gpio the chip is connected to 13 - - vdd-supply: Regulator controlling the controller supply 14 - 15 - Example: 16 - 17 - i2c@00000000 { 18 - /* ... */ 19 - 20 - zforce_ts@50 { 21 - compatible = "neonode,zforce"; 22 - reg = <0x50>; 23 - interrupts = <2 0>; 24 - vdd-supply = <&reg_zforce_vdd>; 25 - 26 - reset-gpios = <&gpio5 9 0>; /* RST */ 27 - irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ 28 - 29 - x-size = <800>; 30 - y-size = <600>; 31 - }; 32 - 33 - /* ... */ 34 - };