aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBarry Song <Baohua.Song@csr.com>2012-12-14 02:24:01 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-12-25 19:59:52 -0500
commit408f181e0d4210ef7c77e825289d31fac530291c (patch)
tree704c61d090f1cf80b24dfccf4ed3c81ee1fe70df /Documentation
parentb0666ba4745e35adc4e4f25e46c883cc84075ced (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.txt44
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 @@
1CSR SiRFprimaII pinmux controller
2
3Required 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
10Please refer to pinctrl-bindings.txt in this directory for details of the common
11pinctrl bindings used by client devices.
12
13SiRFprimaII's pinmux nodes act as a container for an abitrary number of subnodes.
14Each of these subnodes represents some desired configuration for a group of pins.
15
16Required 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
25For 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
39For a specific board, if it wants to use uart2 without hardware flow control,
40it can add the following to its board-specific .dts file.
41uart2: uart@0xb0070000 {
42 pinctrl-names = "default";
43 pinctrl-0 = <&uart2_noflow_pins_a>;
44}