devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gpio-rcar: DT and IRQ_TYPE_EDGE_BOTH
@ 2013-10-29  8:52 Simon Horman
  2013-10-30  7:04 ` Magnus Damm
  0 siblings, 1 reply; 4+ messages in thread
From: Simon Horman @ 2013-10-29  8:52 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: SH-Linux, devicetree, Magnus Damm

Hi Laurent,

In 7e1092b5a264c4 ("gpio-rcar: Add support for IRQ_TYPE_EDGE_BOTH")
I added a 'has_both_edge_trigger' field to struct gpio_rcar_config.
Setting this adds support IRQ_TYPE_EDGE_BOTH. The motivation for
this was to allow use of the gpio-keys driver on the lager board.

I am now looking at enabling gpio-keys via DT for koelsch and lager
and find myself needing to set has_both_edge_trigger somehow.
I am wondering if you have any ideas on how best to do this.

So far I have two ideas:

1. Expose has_both_edge_trigger as a binding.

2. Set has_both_edge_trigger in the driver if the
   compat string is renesas,gpio-r8a7791 or renesas,gpio-r8a7790
   but not for other supported compat strings (as is currently the case).


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-30 10:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  8:52 gpio-rcar: DT and IRQ_TYPE_EDGE_BOTH Simon Horman
2013-10-30  7:04 ` Magnus Damm
2013-10-30  8:26   ` Simon Horman
2013-10-30 10:20     ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).