From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751821AbdBCTLh (ORCPT ); Fri, 3 Feb 2017 14:11:37 -0500 Received: from mail-it0-f54.google.com ([209.85.214.54]:34193 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751338AbdBCTLf (ORCPT ); Fri, 3 Feb 2017 14:11:35 -0500 MIME-Version: 1.0 In-Reply-To: <1485784663-19505-4-git-send-email-fabrice.gasnier@st.com> References: <1485784663-19505-1-git-send-email-fabrice.gasnier@st.com> <1485784663-19505-4-git-send-email-fabrice.gasnier@st.com> From: Linus Walleij Date: Fri, 3 Feb 2017 20:11:33 +0100 Message-ID: Subject: Re: [PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger To: Fabrice Gasnier Cc: Jonathan Cameron , Russell King , Rob Herring , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Mark Rutland , Benjamin Gaignard , Lars-Peter Clausen , Alexandre TORGUE , "linux-iio@vger.kernel.org" , Peter Meerwald , Maxime Coquelin , Hartmut Knaack , Benjamin Gaignard Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2017 at 2:57 PM, Fabrice Gasnier wrote: > Add dt documentation for st,stm32-exti-trigger. > EXTi gpio signal can be routed internally as trigger source for various > IPs (e.g. for ADC or DAC conversions). And you say this is done using pin control, elsewhere in the conversation if I understand it correctly? > +Contents of a stm32 exti trigger root node: > +------------------------------------------- > +Required properties: > +- compatible: Should be "st,stm32-exti-trigger" > +- extiN-gpio: optional gpio line that may be used as external trigger source > + (e.g. N may be 0..15. For example, exti11-gpio can trig ADC on stm32f4). > + > +Example: > + triggers { > + compatible = "st,stm32-exti-trigger"; > + exti11-gpio=<&gpioa 11 0>; > + }; So what I do not understand i if this has any stm32-specific behaviour at all, so that compatible-string has any meaning. Should we not rather define compatible = "gpio-trigger"; to be used by everyone? Especially for the device tree? If it's "mostly generic, a bit specific too" it should likely be: compatible = "gpio-trigger", "st,stm32-exit-trigger"; Yours, Linus Walleij