silead_gsl1680.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. * GSL 1680 touchscreen controller
  2. Required properties:
  3. - compatible : Must be one of the following, depending on the model:
  4. "silead,gsl1680"
  5. "silead,gsl1688"
  6. "silead,gsl3670"
  7. "silead,gsl3675"
  8. "silead,gsl3692"
  9. - reg : I2C slave address of the chip (0x40)
  10. - interrupts : interrupt specification for the gsl1680 interrupt
  11. - power-gpios : Specification for the pin connected to the gsl1680's
  12. shutdown input. This needs to be driven high to take the
  13. gsl1680 out of its low power state
  14. - touchscreen-size-x : See touchscreen.txt
  15. - touchscreen-size-y : See touchscreen.txt
  16. Optional properties:
  17. - firmware-name : File basename (string) for board specific firmware
  18. - touchscreen-inverted-x : See touchscreen.txt
  19. - touchscreen-inverted-y : See touchscreen.txt
  20. - touchscreen-swapped-x-y : See touchscreen.txt
  21. - silead,max-fingers : maximum number of fingers the touchscreen can detect
  22. - silead,home-button : Boolean, set to true on devices which have a
  23. capacitive home-button build into the touchscreen
  24. - vddio-supply : regulator phandle for controller VDDIO
  25. - avdd-supply : regulator phandle for controller AVDD
  26. Example:
  27. i2c@00000000 {
  28. gsl1680: touchscreen@40 {
  29. compatible = "silead,gsl1680";
  30. reg = <0x40>;
  31. interrupt-parent = <&pio>;
  32. interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
  33. power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>;
  34. touchscreen-size-x = <480>;
  35. touchscreen-size-y = <800>;
  36. touchscreen-inverted-x;
  37. touchscreen-swapped-x-y;
  38. silead,max-fingers = <5>;
  39. };
  40. };