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