Thread (1 message) 1 message, 1 author, 2013-03-07

[PATCH 2/2] pinctrl: imx: use pin_func_ids to search the pinctrl item.

From: Linus Walleij <hidden>
Date: 2013-03-07 03:25:28
Also in: linux-devicetree

Possibly related (same subject, not in this thread)

On Mon, Mar 4, 2013 at 3:18 AM, Dong Aisheng [off-list ref] wrote:
On 1 March 2013 21:07, Linus Walleij [off-list ref] wrote:
quoted
On Wed, Feb 27, 2013 at 3:35 AM, Huang Shijie [off-list ref] wrote:
quoted
The uart may works in DTE mode or DCE mode. The customer can sets the different
modes by the pinctrl. But the pinctrl items for DTE or DCE may share the
same Pad id, such as:
  MX6Q_PAD_EIM_D27__UART2_RXD_DTE and MX6Q_PAD_EIM_D27__WEIM_WEIM_D_27
  share the same MX6Q_PAD_EIM_D27 pad id.

The current code only search the pinctrl items by pad id. So if there two
pinctrl items shares the same pad id, the current code only use the first one,
even you tell the system to use the second one in the DTS file.

This patch adds a new field pin_func_ids to imx_pin_group{}, and uses the
pin_func_ids as the index to search the pinctrl items. In this way, we can
avoid the issue.

Signed-off-by: Huang Shijie <redacted>
Dong/Shawn: what about this patch?
We do not need this patch anymore since we've changed the binding a bit.
OK ignoring this then.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help