All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Chou <thomas@wytron.com.tw>
To: Baohua Song <Baohua.Song@csr.com>
Cc: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	DL-SHA-APBU Linux <DL-SHA-APBULinux@internal.csr.com>,
	Junyi Zhang <Junyi.Zhang@csr.com>,
	Grant Likely <grant.likely@secretlab.ca>
Subject: Re: [PATCH v2] input: touchscreen: add OF match table for ads7846
Date: Wed, 15 Jun 2011 12:01:35 +0800	[thread overview]
Message-ID: <4DF82E9F.60501@wytron.com.tw> (raw)
In-Reply-To: <5EB3BFCD089AD643B9BB63439F5FD5E937BB39A1@SHAASIEXM01.ASIA.ROOT.PRI>

On 06/14/2011 02:38 PM, Baohua Song wrote:
>> 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.
> 
> I disagree... An optional gpio node doesn't make sense here. The result of gpio_to_irq is still an interrupt, then we can place the result in interrupt node.
> And the ads7846 driver required an interrupt node but not a gpio node since we don't find any of_get_gpio() in this driver.
> BTW, it even doesn’t make sense to call function gpio_to_irq in a driver like ads7846. on the contrary, drivers/input/keyboard/gpio_keys.c is really an good user of gpio_to_irq.

Hi Barry,

The classical platform data is seldom used when device tree is passed.
So it would be better to disable platform data passing to verify device
tree support.

Without platform data passing, we don't have pdata and
pdata->get_pendown_state func for ads7846_setup_pendown(). The
ads7846_probe() will need updates on this.

Passing gpio for pendown might be a possible solution, as device tree
supports "gpios" node. We could use of_get_gpio_flags() to retrieve it.

I sent an earlier work of mine on this back in Feb. to you.

Best regards,
Thomas

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-06-15  4:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14  1:45 [PATCH v2] input: touchscreen: add OF match table for ads7846 Barry Song
2011-06-14  6:15 ` Thomas Chou
2011-06-14  6:38   ` Baohua Song
2011-06-15  4:01     ` Thomas Chou [this message]
2011-06-15  5:20       ` Baohua Song

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DF82E9F.60501@wytron.com.tw \
    --to=thomas@wytron.com.tw \
    --cc=Baohua.Song@csr.com \
    --cc=DL-SHA-APBULinux@internal.csr.com \
    --cc=Junyi.Zhang@csr.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.