colibri-vf50-ts.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. * Toradex Colibri VF50 Touchscreen driver
  2. Required Properties:
  3. - compatible must be toradex,vf50-touchscreen
  4. - io-channels: adc channels being used by the Colibri VF50 module
  5. - xp-gpios: FET gate driver for input of X+
  6. - xm-gpios: FET gate driver for input of X-
  7. - yp-gpios: FET gate driver for input of Y+
  8. - ym-gpios: FET gate driver for input of Y-
  9. - interrupts: pen irq interrupt for touch detection
  10. - pinctrl-names: "idle", "default", "gpios"
  11. - pinctrl-0: pinctrl node for pen/touch detection state pinmux
  12. - pinctrl-1: pinctrl node for X/Y and pressure measurement (ADC) state pinmux
  13. - pinctrl-2: pinctrl node for gpios functioning as FET gate drivers
  14. - vf50-ts-min-pressure: pressure level at which to stop measuring X/Y values
  15. Example:
  16. touchctrl: vf50_touchctrl {
  17. compatible = "toradex,vf50-touchscreen";
  18. io-channels = <&adc1 0>,<&adc0 0>,
  19. <&adc0 1>,<&adc1 2>;
  20. xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  21. xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
  22. yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  23. ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  24. interrupt-parent = <&gpio0>;
  25. interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
  26. pinctrl-names = "idle","default","gpios";
  27. pinctrl-0 = <&pinctrl_touchctrl_idle>;
  28. pinctrl-1 = <&pinctrl_touchctrl_default>;
  29. pinctrl-2 = <&pinctrl_touchctrl_gpios>;
  30. vf50-ts-min-pressure = <200>;
  31. };