Debian Codegraph @

Documentation/devicetree/bindings/input/touchscreen/melfas,mip4_ts.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/melfas,mip4_ts.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: MELFAS MIP4 Touchscreen
8
9 maintainers:
10 - Ariel D'Alessandro <[email protected]>
11
12 properties:
13 compatible:
14 const: melfas,mip4_ts
15
16 reg:
17 description: I2C address of the chip (0x48 or 0x34)
18 maxItems: 1
19
20 interrupts:
21 maxItems: 1
22
23 ce-gpios:
24 description:
25 GPIO connected to the CE (chip enable) pin of the chip (active high)
26 maxItems: 1
27
28 required:
29 - compatible
30 - reg
31 - interrupts
32
33 additionalProperties: false
34
35 examples:
36 - |
37 #include <dt-bindings/gpio/gpio.h>
38 #include <dt-bindings/interrupt-controller/irq.h>
39
40 i2c {
41 #address-cells = <1>;
42 #size-cells = <0>;
43
44 touchscreen@34 {
45 compatible = "melfas,mip4_ts";
46 reg = <0x34>;
47
48 interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
49 ce-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
50
51 pinctrl-0 = <&touchscreen_default>;
52 pinctrl-names = "default";
53 };
54 };
55
56 ...