# Re: \[PATCH v2\] input: touchscreen: add OF match table for ads7846

- From: Thomas Chou \<hidden\>
- Date: 2011-06-14 06:22:14 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2011/06/8916936
- Thread: https://ratatoskr.run/linux-input/2011/06/8916935/t.md

```text
On 06/14/2011 09:45 AM, Barry Song wrote:
> The current ads7846 has no OF match table. The method used is by applying a heuristic (of_modalias_node) which tries to name the device in a way that will match an existing device driver.
> This patch adds explicit OF match table for ads7846, then the normal device tree match behaviour will always work.
> It has been tested on PRIMA2 EVB board of CSR with a SPI's child node like the below:
> ts@0 {
>          compatible = "ti,ads7845";
>          reg =<0x0>;
>          spi-max-frequency =<31250>;
>          interrupts =<90>;
> };
>

Hi Barry,

Thank you very much for your help. Could we add an option for gpio pendown, like this?

- gpios : should specify GPIO used for pendown.

If interrupt node is not present in this node, gpio_to_irq of the pen
down GPIO will be used.

Best regards,
Thomas
```
