diff options
| -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 | } | ||
