From: Simon Horman Subject: gpio-rcar: DT and IRQ_TYPE_EDGE_BOTH Date: Tue, 29 Oct 2013 17:52:59 +0900 Message-ID: <20131029085258.GE15731@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: linux-sh-owner@vger.kernel.org To: Laurent Pinchart Cc: SH-Linux , devicetree@vger.kernel.org, Magnus Damm List-Id: devicetree@vger.kernel.org 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).