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/melfas,mms114.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Melfas MMS114 family touchscreen controller
8
9maintainers:
10  - Linus Walleij <linus.walleij@linaro.org>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  $nodename:
17    pattern: "^touchscreen(@.*)?$"
18
19  compatible:
20    items:
21      - enum:
22          - melfas,mms114
23          - melfas,mms134s
24          - melfas,mms136
25          - melfas,mms152
26          - melfas,mms345l
27
28  reg:
29    description: I2C address
30
31  clock-frequency:
32    description: I2C client clock frequency, defined for host
33    minimum: 100000
34    maximum: 400000
35
36  interrupts:
37    maxItems: 1
38
39  avdd-supply:
40    description: Analog power supply regulator on AVDD pin
41
42  vdd-supply:
43    description: Digital power supply regulator on VDD pin
44
45  touchscreen-size-x: true
46  touchscreen-size-y: true
47  touchscreen-fuzz-x: true
48  touchscreen-fuzz-y: true
49  touchscreen-fuzz-pressure: true
50  touchscreen-inverted-x: true
51  touchscreen-inverted-y: true
52  touchscreen-swapped-x-y: true
53  touchscreen-max-pressure: true
54
55  linux,keycodes:
56    description: Keycodes for the touch keys
57    minItems: 1
58    maxItems: 15
59
60additionalProperties: false
61
62required:
63  - compatible
64  - reg
65  - interrupts
66  - touchscreen-size-x
67  - touchscreen-size-y
68
69examples:
70  - |
71    #include <dt-bindings/interrupt-controller/irq.h>
72    i2c {
73      #address-cells = <1>;
74      #size-cells = <0>;
75      touchscreen@48 {
76        compatible = "melfas,mms114";
77        reg = <0x48>;
78        interrupt-parent = <&gpio>;
79        interrupts = <39 IRQ_TYPE_EDGE_FALLING>;
80        avdd-supply = <&ldo1_reg>;
81        vdd-supply = <&ldo2_reg>;
82        touchscreen-size-x = <720>;
83        touchscreen-size-y = <1280>;
84        touchscreen-fuzz-x = <10>;
85        touchscreen-fuzz-y = <10>;
86        touchscreen-fuzz-pressure = <10>;
87        touchscreen-inverted-x;
88        touchscreen-inverted-y;
89      };
90    };
91
92...
93