[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4FA30805.5050804@wwwdotorg.org>
Date: Thu, 03 May 2012 16:34:45 -0600
From: Stephen Warren <swarren@...dotorg.org>
To: Tony Lindgren <tony@...mide.com>
CC: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com>,
Linus Walleij <linus.walleij@...aro.org>,
linux-omap@...r.kernel.org, Stephen Warren <swarren@...dia.com>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] pinctrl: Add generic pinctrl-simple driver that supports
omap2+ padconf
On 05/03/2012 09:27 AM, Tony Lindgren wrote:
> Hi,
>
> * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@...osoft.com> [120503 00:16]:
>>
>> I really like it
>>
>> I was working on something simillar
>>
>> but can we split the group management so we can use it on other
>> bindings
>
> Hmm I'm not sure I follow on the group management splitting, can you specify
> what you have in mind here?
>
> If you mean moving more things into pinctrl fwk, then yeah I'd assume that
> will happen eventually and drivers like this will end up becoming more minimal.
Jean-Christophe, forgive me if I'm putting words in your mouth, but I
assume the following is what you mean:
There are two pieces of data required by the pinctrl subsystem:
a) The set of pins, functions, and groups that exist.
b) The specific function to select for each pin/group on a given board.
Item (a) can be represented in the pinctrl driver (e.g. as in the Tegra
driver), or can be represented in device tree in order to avoid large
tables in the driver.
Item (b) has to be represented in device tree, since the whole point is
that it's board-specific.
For all DT bindings I've seen that choose to represent (a) in the DT
rather than in the driver, the DT represents (b) directly, and (a) is
implicitly extracted/created based on (a).
When I was first thinking about DT bindings for pinctrl, I had hoped
that even if (a) was represented in DT, the DT nodes/properties for (a)
and (b) would be entirely separate, so that the binding for (b) could be
completely common across all SoCs, even though the binding for (a) would
perhaps be different across SoCs (if it existed at all).
So, perhaps Jean-Christophe is talking about splitting up (a) and (b) in
device tree?
Or perhaps Jean-Christophe only refers to the code that creates the
group and function definitions from (b), and not the actual DT binding
itself?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists