Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linux
[drm/drm-misc.git] / Documentation / devicetree / bindings / input / touchscreen / neonode,zforce.yaml
blobc2ee89b76ea138a045f607edb83cf6b7b08fa905
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#
7 title: Neonode infrared touchscreen controller
9 maintainers:
10   - Heiko Stuebner <heiko@sntech.de>
12 allOf:
13   - $ref: touchscreen.yaml#
15 properties:
16   compatible:
17     const: neonode,zforce
19   reg:
20     maxItems: 1
22   interrupts:
23     maxItems: 1
25   reset-gpios:
26     maxItems: 1
28   irq-gpios:
29     maxItems: 1
31   x-size:
32     deprecated: true
33     $ref: /schemas/types.yaml#/definitions/uint32
35   y-size:
36     deprecated: true
37     $ref: /schemas/types.yaml#/definitions/uint32
39   vdd-supply: true
41 required:
42   - compatible
43   - reg
44   - interrupts
45   - reset-gpios
47 unevaluatedProperties: false
49 examples:
50   - |
51     #include <dt-bindings/interrupt-controller/irq.h>
53     i2c {
54         #address-cells = <1>;
55         #size-cells = <0>;
57         touchscreen@50 {
58             compatible = "neonode,zforce";
59             reg = <0x50>;
60             interrupts = <2 0>;
61             vdd-supply = <&reg_zforce_vdd>;
63             reset-gpios = <&gpio5 9 0>; /* RST */
64             irq-gpios = <&gpio5 6 0>; /* IRQ, optional */
66             touchscreen-min-x = <0>;
67             touchscreen-size-x = <800>;
68             touchscreen-min-y = <0>;
69             touchscreen-size-y = <600>;
70         };
71     };
72 ...