[PATCH 05/14] ARM: at91: add pinctrl support
From: Stephen Warren <hidden>
Date: 2012-08-22 15:34:48
Also in:
linux-devicetree
On 08/15/2012 08:38 AM, Linus Walleij wrote:
(Hm maybe I should've read this patch first, well whatever.) On Fri, Aug 10, 2012 at 3:02 PM, Jean-Christophe PLAGNIOL-VILLARD [off-list ref] wrote:quoted
This is also include the gpio controller as the IP share both. Each soc will have to describe the SoC limitation and pin configuration via DT.
quoted
+++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
quoted
+Required properties for iomux controller: +- compatible: "atmel,at91rm9200-pinctrl" +- atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be + configured in this periph mode. All the periph and bank need to be describe.Can you please be more elaborate on this mux-mask, like what each bit means and why the bits are arranged like that and what it means on the AT91 platform.... I was first reading the .dts and was like ?woot? so I go to the bindings doc and I read this and I'm still like ?woot?..
Yes, I'm a little confused what this is, and wouldn't have a clue how to fill it in.
quoted
+static int at91_dt_node_to_map(struct pinctrl_dev *pctldev, + struct device_node *np, + struct pinctrl_map **map, unsigned *num_maps)DT parse code, looks nice but would request Stephen to have a look at it.
I think it looks reasonable; I don't see any obvious issues at a quick glance.