linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: richard.genoud@gmail.com (Richard Genoud)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] tty/serial: atmel_serial: Fix device tree documentation
Date: Tue, 15 Apr 2014 10:12:39 +0200	[thread overview]
Message-ID: <534CE9F7.60202@gmail.com> (raw)
In-Reply-To: <20140415080006.GE2255@ldesroches-Latitude-E6320>

On 15/04/2014 10:00, Ludovic Desroches wrote:
> On Tue, Apr 15, 2014 at 09:39:59AM +0200, Richard Genoud wrote:
>> On 14/04/2014 17:22, Ludovic Desroches wrote:
>>> Hi Richard,
>>>
>>> On Mon, Apr 14, 2014 at 04:58:02PM +0200, Richard Genoud wrote:
>>>> RTS pin is an active low pin.
>>>> For now, this doesn't change anything as the ACTIVE_LOW flag is not
>>>> handled in atmel_serial, but it will be in 3.16.
>>>>
>>>> Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
>>>> ---
>>>>  Documentation/devicetree/bindings/serial/atmel-usart.txt | 2 +-
>>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/serial/atmel-usart.txt b/Documentation/devicetree/bindings/serial/atmel-usart.txt
>>>> index 17c1042b2df8..2f7aad71b3c9 100644
>>>> --- a/Documentation/devicetree/bindings/serial/atmel-usart.txt
>>>> +++ b/Documentation/devicetree/bindings/serial/atmel-usart.txt
>>>> @@ -35,7 +35,7 @@ Example:
>>>>  		clock-names = "usart";
>>>>  		atmel,use-dma-rx;
>>>>  		atmel,use-dma-tx;
>>>> -		rts-gpios = <&pioD 15 0>;
>>>> +		rts-gpios = <&pioD 15 GPIO_ACTIVE_LOW>;
>>>
>>> I was told we should not use macros here. If it is still the truth:
>>>
>>> rts-gpios = <&pioD 15 1>;
>>
>> But I'd really like to know if macros are forbidden in DT documentation and why...
>> Because, IMHO, <&pioD 15 1> talks less that <&pioD 15 GPIO_ACTIVE_LOW>.
>> Which is a shame in a documentation.
> 
> I don't remember who told me that but the reason was that device tree
> should not depend on Linux and macros are relative to Linux.
> 
Well, that makes sense, but I thought that include/dt-bindings/ was more
DT relative.

  reply	other threads:[~2014-04-15  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14 14:58 [PATCH] tty/serial: atmel_serial: Fix device tree documentation Richard Genoud
2014-04-14 15:22 ` Ludovic Desroches
2014-04-15  7:14   ` Richard Genoud
2014-04-15  7:39   ` Richard Genoud
2014-04-15  8:00     ` Ludovic Desroches
2014-04-15  8:12       ` Richard Genoud [this message]
2014-04-22 18:42       ` Linus Walleij
2014-04-23  8:18         ` Richard Genoud

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=534CE9F7.60202@gmail.com \
    --to=richard.genoud@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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 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).