[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZLFKQbDjDXo+ir=8d8gEd=9dLicuVLEXAF2OoWefKJcA@mail.gmail.com>
Date: Fri, 3 Feb 2017 20:11:33 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Fabrice Gasnier <fabrice.gasnier@...com>
Cc: Jonathan Cameron <jic23@...nel.org>,
Russell King <linux@...linux.org.uk>,
Rob Herring <robh+dt@...nel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Mark Rutland <mark.rutland@....com>,
Benjamin Gaignard <benjamin.gaignard@...aro.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Alexandre TORGUE <alexandre.torgue@...com>,
"linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
Peter Meerwald <pmeerw@...erw.net>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Hartmut Knaack <knaack.h@....de>,
Benjamin Gaignard <benjamin.gaignard@...com>
Subject: Re: [PATCH 3/5] Documentation: dt: iio: document stm32 exti trigger
On Mon, Jan 30, 2017 at 2:57 PM, Fabrice Gasnier <fabrice.gasnier@...com> 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
Powered by blists - more mailing lists