colibri-vf50-ts.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. - interrupt-parent: phandle for the interrupt controller
  10. - interrupts: pen irq interrupt for touch detection
  11. - pinctrl-names: "idle", "default", "gpios"
  12. - pinctrl-0: pinctrl node for pen/touch detection state pinmux
  13. - pinctrl-1: pinctrl node for X/Y and pressure measurement (ADC) state pinmux
  14. - pinctrl-2: pinctrl node for gpios functioning as FET gate drivers
  15. - vf50-ts-min-pressure: pressure level at which to stop measuring X/Y values
  16. Example:
  17. touchctrl: vf50_touchctrl {
  18. compatible = "toradex,vf50-touchscreen";
  19. io-channels = <&adc1 0>,<&adc0 0>,
  20. <&adc0 1>,<&adc1 2>;
  21. xp-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  22. xm-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
  23. yp-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  24. ym-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
  25. interrupt-parent = <&gpio0>;
  26. interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
  27. pinctrl-names = "idle","default","gpios";
  28. pinctrl-0 = <&pinctrl_touchctrl_idle>;
  29. pinctrl-1 = <&pinctrl_touchctrl_default>;
  30. pinctrl-2 = <&pinctrl_touchctrl_gpios>;
  31. vf50-ts-min-pressure = <200>;
  32. status = "disabled";
  33. };