brintos

brintos / linux-shallow public Read only

0
0
Text · 2.1 KiB · 90ebd4f Raw
97 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---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 controller8 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    oneOf:21      - enum:22          - melfas,mms11423          - melfas,mms134s24          - melfas,mms13625          - melfas,mms15226          - melfas,mms345l27      - items:28          - enum:29              - melfas,mms25230          - const: melfas,mms11431 32  reg:33    description: I2C address34 35  clock-frequency:36    description: I2C client clock frequency, defined for host37    minimum: 10000038    maximum: 40000039 40  interrupts:41    maxItems: 142 43  avdd-supply:44    description: Analog power supply regulator on AVDD pin45 46  vdd-supply:47    description: Digital power supply regulator on VDD pin48 49  touchscreen-size-x: true50  touchscreen-size-y: true51  touchscreen-fuzz-x: true52  touchscreen-fuzz-y: true53  touchscreen-fuzz-pressure: true54  touchscreen-inverted-x: true55  touchscreen-inverted-y: true56  touchscreen-swapped-x-y: true57  touchscreen-max-pressure: true58 59  linux,keycodes:60    description: Keycodes for the touch keys61    minItems: 162    maxItems: 1563 64additionalProperties: false65 66required:67  - compatible68  - reg69  - interrupts70  - touchscreen-size-x71  - touchscreen-size-y72 73examples:74  - |75    #include <dt-bindings/interrupt-controller/irq.h>76    i2c {77      #address-cells = <1>;78      #size-cells = <0>;79      touchscreen@48 {80        compatible = "melfas,mms114";81        reg = <0x48>;82        interrupt-parent = <&gpio>;83        interrupts = <39 IRQ_TYPE_EDGE_FALLING>;84        avdd-supply = <&ldo1_reg>;85        vdd-supply = <&ldo2_reg>;86        touchscreen-size-x = <720>;87        touchscreen-size-y = <1280>;88        touchscreen-fuzz-x = <10>;89        touchscreen-fuzz-y = <10>;90        touchscreen-fuzz-pressure = <10>;91        touchscreen-inverted-x;92        touchscreen-inverted-y;93      };94    };95 96...97