chipone_icn8318.txt 1.4 KB

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