aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt')
-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}