melfas,mms114.yaml 2.1 KB

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