chipone,icn8318.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/input/touchscreen/chipone,icn8318.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ChipOne ICN8318 Touchscreen Controller
  7. maintainers:
  8. - Dmitry Torokhov <dmitry.torokhov@gmail.com>
  9. allOf:
  10. - $ref: touchscreen.yaml#
  11. properties:
  12. compatible:
  13. const: chipone,icn8318
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. maxItems: 1
  18. wake-gpios:
  19. maxItems: 1
  20. unevaluatedProperties: false
  21. required:
  22. - compatible
  23. - reg
  24. - interrupts
  25. - wake-gpios
  26. - touchscreen-size-x
  27. - touchscreen-size-y
  28. examples:
  29. - |
  30. #include <dt-bindings/gpio/gpio.h>
  31. #include <dt-bindings/interrupt-controller/arm-gic.h>
  32. i2c {
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. touchscreen@40 {
  36. compatible = "chipone,icn8318";
  37. reg = <0x40>;
  38. interrupt-parent = <&pio>;
  39. interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */
  40. pinctrl-names = "default";
  41. pinctrl-0 = <&ts_wake_pin_p66>;
  42. wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
  43. touchscreen-size-x = <800>;
  44. touchscreen-size-y = <480>;
  45. touchscreen-inverted-x;
  46. touchscreen-swapped-x-y;
  47. };
  48. };
  49. ...