Re: [PATCH] gpio: dt-bindings: document the concept of GPIO banks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Mar 31, 2016 at 4:52 PM, Neil Armstrong <narmstrong@xxxxxxxxxxxx> wrote:
> On 03/31/2016 04:48 PM, Rob Herring wrote:

>>>> We generally avoid indexing blocks in DT.
>>
>> Which is a global number space that might not work in all cases. I
>> don't think gpio should be using aliases either. If you need to
>> describe the connections between nodes, then keep that between nodes.
>
> Couldn't we use gpio-ranges ?

GPIO ranges are normally for cross-referencing GPIO blocks to
pin controllers but in essence, yes we *could*.

But what people will do is to use that backwards to calculate
the bank ID.

They would just get the GPIO base offset from the
range and /32 to get the bank ID. All over the place...
Also for GPIO controllers without pin control back-ends.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux