mstar,msg2638.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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/mstar,msg2638.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MStar msg2638 touchscreen controller
  7. maintainers:
  8. - Vincent Knecht <vincent.knecht@mailoo.org>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - mstar,msg2138
  15. - mstar,msg2638
  16. reg:
  17. const: 0x26
  18. interrupts:
  19. maxItems: 1
  20. reset-gpios:
  21. maxItems: 1
  22. vdd-supply:
  23. description: Power supply regulator for the chip
  24. vddio-supply:
  25. description: Power supply regulator for the I2C bus
  26. touchscreen-size-x: true
  27. touchscreen-size-y: true
  28. linux,keycodes:
  29. minItems: 1
  30. maxItems: 4
  31. additionalProperties: false
  32. required:
  33. - compatible
  34. - reg
  35. - interrupts
  36. - reset-gpios
  37. - touchscreen-size-x
  38. - touchscreen-size-y
  39. examples:
  40. - |
  41. #include <dt-bindings/gpio/gpio.h>
  42. #include <dt-bindings/interrupt-controller/irq.h>
  43. i2c {
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. touchscreen@26 {
  47. compatible = "mstar,msg2638";
  48. reg = <0x26>;
  49. interrupt-parent = <&msmgpio>;
  50. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  51. reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
  52. pinctrl-names = "default";
  53. pinctrl-0 = <&ts_int_reset_default>;
  54. vdd-supply = <&pm8916_l17>;
  55. vddio-supply = <&pm8916_l5>;
  56. touchscreen-size-x = <2048>;
  57. touchscreen-size-y = <2048>;
  58. };
  59. };
  60. ...