chipone_icn8318.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. * ChipOne icn8318 I2C touchscreen controller
  2. Required properties:
  3. - compatible : "chipone,icn8318"
  4. - reg : I2C slave address of the chip (0x40)
  5. - interrupt-parent : a phandle pointing to the interrupt controller
  6. serving the interrupt for this chip
  7. - interrupts : interrupt specification for the icn8318 interrupt
  8. - wake-gpios : GPIO specification for the WAKE input
  9. - touchscreen-size-x : horizontal resolution of touchscreen (in pixels)
  10. - touchscreen-size-y : vertical resolution of touchscreen (in pixels)
  11. Optional properties:
  12. - pinctrl-names : should be "default"
  13. - pinctrl-0: : a phandle pointing to the pin settings for the
  14. control gpios
  15. - touchscreen-fuzz-x : horizontal noise value of the absolute input
  16. device (in pixels)
  17. - touchscreen-fuzz-y : vertical noise value of the absolute input
  18. device (in pixels)
  19. - touchscreen-inverted-x : X axis is inverted (boolean)
  20. - touchscreen-inverted-y : Y axis is inverted (boolean)
  21. - touchscreen-swapped-x-y : X and Y axis are swapped (boolean)
  22. Swapping is done after inverting the axis
  23. Example:
  24. i2c@00000000 {
  25. /* ... */
  26. chipone_icn8318@40 {
  27. compatible = "chipone,icn8318";
  28. reg = <0x40>;
  29. interrupt-parent = <&pio>;
  30. interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&ts_wake_pin_p66>;
  33. wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
  34. touchscreen-size-x = <800>;
  35. touchscreen-size-y = <480>;
  36. touchscreen-inverted-x;
  37. touchscreen-swapped-x-y;
  38. };
  39. /* ... */
  40. };