[PATCH 05/14] ARM: at91: add pinctrl support
From: Linus Walleij <hidden>
Date: 2012-08-27 23:46:45
Also in:
linux-devicetree
On Sat, Aug 25, 2012 at 1:38 AM, Jean-Christophe PLAGNIOL-VILLARD [off-list ref] wrote:
On 11:49 Thu 23 Aug , Stephen Warren wrote:quoted
On 08/23/2012 01:06 AM, Richard Genoud wrote:
quoted
quoted
Let's take the PioA - peripheral B: 0xffe0399f From the documentation table 4-3, we can extract the column PIO Periperal B for all signals PA0-PA31:...quoted
Each time it's possible to mux a pin to the peripheral B function (ie when there's no "-----") the corresponding bit is set:...quoted
=> this gives 0x399fAh OK. It would be a good idea to briefly describe this process in the binding document I think. I assume this property exists to avoid the kernel driver having to contain tables for each Atmel device; the driver is generic.Yeap I did this exactly for this I do not want to maintain such code for the whole bunch of at91 and this way I add other SoC with just via dtsi without touching c code I think other driver should do so too
I'm following it now I think, after some discussion here at the kernel summit I have come to the conclusion that the real problem with readability comes from a shortcoming in the device tree compiler, that it cannot handle macros and defines (no preprocessor) so it's currently hard to make it more readable. But that's not the implementers fault so I'm OK with this looking like this for the moment. Yours, Linus Walleij