zinitix,bt400.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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/zinitix,bt400.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Zinitix BT4xx and BT5xx series touchscreen controller
  7. description: The Zinitix BT4xx and BT5xx series of touchscreen controllers
  8. are Korea-produced touchscreens with embedded microcontrollers. The
  9. BT4xx series was produced 2010-2013 and the BT5xx series 2013-2014.
  10. maintainers:
  11. - Michael Srba <Michael.Srba@seznam.cz>
  12. - Linus Walleij <linus.walleij@linaro.org>
  13. allOf:
  14. - $ref: touchscreen.yaml#
  15. - $ref: ../input.yaml#
  16. properties:
  17. $nodename:
  18. pattern: "^touchscreen(@.*)?$"
  19. compatible:
  20. enum:
  21. - zinitix,bt402
  22. - zinitix,bt403
  23. - zinitix,bt404
  24. - zinitix,bt412
  25. - zinitix,bt413
  26. - zinitix,bt431
  27. - zinitix,bt432
  28. - zinitix,bt531
  29. - zinitix,bt532
  30. - zinitix,bt538
  31. - zinitix,bt541
  32. - zinitix,bt548
  33. - zinitix,bt554
  34. - zinitix,at100
  35. reg:
  36. description: I2C address on the I2C bus
  37. clock-frequency:
  38. description: I2C client clock frequency, defined for host when using
  39. the device on the I2C bus
  40. minimum: 0
  41. maximum: 400000
  42. interrupts:
  43. description: Interrupt to host
  44. maxItems: 1
  45. vcca-supply:
  46. description: Analog power supply regulator on the VCCA pin
  47. vdd-supply:
  48. description: Digital power supply regulator on the VDD pin.
  49. In older device trees this can be the accidental name for the analog
  50. supply on the VCCA pin, and in that case the deprecated vddo-supply is
  51. used for the digital power supply.
  52. vddo-supply:
  53. description: Deprecated name for the digital power supply, use vdd-supply
  54. as this reflects the real name of the pin. If this supply is present,
  55. the vdd-supply represents VCCA instead of VDD. Implementers should first
  56. check for this property, and if it is present assume that the vdd-supply
  57. represents the analog supply.
  58. deprecated: true
  59. reset-gpios:
  60. description: Reset line for the touchscreen, should be tagged
  61. as GPIO_ACTIVE_LOW
  62. zinitix,mode:
  63. description: Mode of reporting touch points. Some modes may not work
  64. with a particular ts firmware for unknown reasons. Available modes are
  65. 1 and 2. Mode 2 is the default and preferred.
  66. $ref: /schemas/types.yaml#/definitions/uint32
  67. enum: [1, 2]
  68. linux,keycodes:
  69. description:
  70. This property specifies an array of keycodes assigned to the
  71. touch-keys that can be present in some touchscreen configurations.
  72. If the touch-keys are enabled, controller firmware will assign some
  73. touch sense lines to those keys.
  74. minItems: 1
  75. maxItems: 8
  76. touchscreen-size-x: true
  77. touchscreen-size-y: true
  78. touchscreen-fuzz-x: true
  79. touchscreen-fuzz-y: true
  80. additionalProperties: false
  81. required:
  82. - compatible
  83. - reg
  84. - interrupts
  85. - touchscreen-size-x
  86. - touchscreen-size-y
  87. examples:
  88. - |
  89. #include <dt-bindings/interrupt-controller/irq.h>
  90. #include <dt-bindings/gpio/gpio.h>
  91. i2c {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. touchscreen@20 {
  95. compatible = "zinitix,bt541";
  96. reg = <0x20>;
  97. interrupt-parent = <&gpio>;
  98. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  99. vcca-supply = <&reg_vcca_tsp>;
  100. vdd-supply = <&reg_vdd_tsp>;
  101. touchscreen-size-x = <540>;
  102. touchscreen-size-y = <960>;
  103. zinitix,mode = <2>;
  104. };
  105. };