diff options
author | Barry Song <Baohua.Song@csr.com> | 2012-12-14 02:24:01 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-12-25 19:59:52 -0500 |
commit | 408f181e0d4210ef7c77e825289d31fac530291c (patch) | |
tree | 704c61d090f1cf80b24dfccf4ed3c81ee1fe70df /Documentation | |
parent | b0666ba4745e35adc4e4f25e46c883cc84075ced (diff) |
pinctrl: sirf: add missing DT-binding document
While sending email to Linus for reviewing:
"pinctrl: sirf: add DT-binding pinmux mapping support"
https://patchwork.kernel.org/patch/1364361/
i have included the devicetree/bindings/pinctrl/pinctrl-sirf.txt
But while sending pull request with commit 056876f6c73406c,
i missed the document.
this patch takes the document back.
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt new file mode 100644 index 000000000000..a2896df702ad --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | CSR SiRFprimaII pinmux controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "sirf,prima2-pinctrl" | ||
5 | - reg : Address range of the pinctrl registers | ||
6 | - interrupts : Interrupts used by every GPIO group | ||
7 | - gpio-controller : Indicates this device is a GPIO controller | ||
8 | - interrupt-controller : Marks the device node as an interrupt controller | ||
9 | |||
10 | Please refer to pinctrl-bindings.txt in this directory for details of the common | ||
11 | pinctrl bindings used by client devices. | ||
12 | |||
13 | SiRFprimaII's pinmux nodes act as a container for an abitrary number of subnodes. | ||
14 | Each of these subnodes represents some desired configuration for a group of pins. | ||
15 | |||
16 | Required subnode-properties: | ||
17 | - sirf,pins : An array of strings. Each string contains the name of a group. | ||
18 | - sirf,function: A string containing the name of the function to mux to the | ||
19 | group. | ||
20 | |||
21 | Valid values for group and function names can be found from looking at the | ||
22 | group and function arrays in driver files: | ||
23 | drivers/pinctrl/pinctrl-sirf.c | ||
24 | |||
25 | For example, pinctrl might have subnodes like the following: | ||
26 | uart2_pins_a: uart2@0 { | ||
27 | uart { | ||
28 | sirf,pins = "uart2grp"; | ||
29 | sirf,function = "uart2"; | ||
30 | }; | ||
31 | }; | ||
32 | uart2_noflow_pins_a: uart2@1 { | ||
33 | uart { | ||
34 | sirf,pins = "uart2_nostreamctrlgrp"; | ||
35 | sirf,function = "uart2_nostreamctrl"; | ||
36 | }; | ||
37 | }; | ||
38 | |||
39 | For a specific board, if it wants to use uart2 without hardware flow control, | ||
40 | it can add the following to its board-specific .dts file. | ||
41 | uart2: uart@0xb0070000 { | ||
42 | pinctrl-names = "default"; | ||
43 | pinctrl-0 = <&uart2_noflow_pins_a>; | ||
44 | } | ||