diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-09-27 12:07:25 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-09-27 12:07:25 -0400 |
commit | 35a041e77ab5faad7916b8f77fae0b34b9fa7878 (patch) | |
tree | d1ea4e68087d5d4b1c64e1aa6f5833aadfe41645 /Documentation | |
parent | e33fd70baea1032a62b1a2a051ea4c07a1aaa402 (diff) | |
parent | c9e854cf940fbc09846c255895efceb3bc9bf095 (diff) |
Merge branch 'lantiq' of git://dev.phrozen.org/mips-next into mips-for-linux-next
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/lantiq,falcon-pinumx.txt | 83 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pinctrl/lantiq,xway-pinumx.txt | 97 |
2 files changed, 180 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/lantiq,falcon-pinumx.txt b/Documentation/devicetree/bindings/pinctrl/lantiq,falcon-pinumx.txt new file mode 100644 index 000000000000..daa768956069 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/lantiq,falcon-pinumx.txt | |||
@@ -0,0 +1,83 @@ | |||
1 | Lantiq FALCON pinmux controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "lantiq,pinctrl-falcon" | ||
5 | - reg: Should contain the physical address and length of the gpio/pinmux | ||
6 | register range | ||
7 | |||
8 | Please refer to pinctrl-bindings.txt in this directory for details of the | ||
9 | common pinctrl bindings used by client devices, including the meaning of the | ||
10 | phrase "pin configuration node". | ||
11 | |||
12 | Lantiq's pin configuration nodes act as a container for an abitrary number of | ||
13 | subnodes. Each of these subnodes represents some desired configuration for a | ||
14 | pin, a group, or a list of pins or groups. This configuration can include the | ||
15 | mux function to select on those group(s), and two pin configuration parameters: | ||
16 | pull-up and open-drain | ||
17 | |||
18 | The name of each subnode is not important as long as it is unique; all subnodes | ||
19 | should be enumerated and processed purely based on their content. | ||
20 | |||
21 | Each subnode only affects those parameters that are explicitly listed. In | ||
22 | other words, a subnode that lists a mux function but no pin configuration | ||
23 | parameters implies no information about any pin configuration parameters. | ||
24 | Similarly, a pin subnode that describes a pullup parameter implies no | ||
25 | information about e.g. the mux function. | ||
26 | |||
27 | We support 2 types of nodes. | ||
28 | |||
29 | Definition of mux function groups: | ||
30 | |||
31 | Required subnode-properties: | ||
32 | - lantiq,groups : An array of strings. Each string contains the name of a group. | ||
33 | Valid values for these names are listed below. | ||
34 | - lantiq,function: A string containing the name of the function to mux to the | ||
35 | group. Valid values for function names are listed below. | ||
36 | |||
37 | Valid values for group and function names: | ||
38 | |||
39 | mux groups: | ||
40 | por, ntr, ntr8k, hrst, mdio, bootled, asc0, spi, spi cs0, spi cs1, i2c, | ||
41 | jtag, slic, pcm, asc1 | ||
42 | |||
43 | functions: | ||
44 | rst, ntr, mdio, led, asc, spi, i2c, jtag, slic, pcm | ||
45 | |||
46 | |||
47 | Definition of pin configurations: | ||
48 | |||
49 | Required subnode-properties: | ||
50 | - lantiq,pins : An array of strings. Each string contains the name of a pin. | ||
51 | Valid values for these names are listed below. | ||
52 | |||
53 | Optional subnode-properties: | ||
54 | - lantiq,pull: Integer, representing the pull-down/up to apply to the pin. | ||
55 | 0: none, 1: down | ||
56 | - lantiq,drive-current: Boolean, enables drive-current | ||
57 | - lantiq,slew-rate: Boolean, enables slew-rate | ||
58 | |||
59 | Example: | ||
60 | pinmux0 { | ||
61 | compatible = "lantiq,pinctrl-falcon"; | ||
62 | pinctrl-names = "default"; | ||
63 | pinctrl-0 = <&state_default>; | ||
64 | |||
65 | state_default: pinmux { | ||
66 | asc0 { | ||
67 | lantiq,groups = "asc0"; | ||
68 | lantiq,function = "asc"; | ||
69 | }; | ||
70 | ntr { | ||
71 | lantiq,groups = "ntr8k"; | ||
72 | lantiq,function = "ntr"; | ||
73 | }; | ||
74 | i2c { | ||
75 | lantiq,groups = "i2c"; | ||
76 | lantiq,function = "i2c"; | ||
77 | }; | ||
78 | hrst { | ||
79 | lantiq,groups = "hrst"; | ||
80 | lantiq,function = "rst"; | ||
81 | }; | ||
82 | }; | ||
83 | }; | ||
diff --git a/Documentation/devicetree/bindings/pinctrl/lantiq,xway-pinumx.txt b/Documentation/devicetree/bindings/pinctrl/lantiq,xway-pinumx.txt new file mode 100644 index 000000000000..b5469db1d7ad --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/lantiq,xway-pinumx.txt | |||
@@ -0,0 +1,97 @@ | |||
1 | Lantiq XWAY pinmux controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: "lantiq,pinctrl-xway" or "lantiq,pinctrl-xr9" | ||
5 | - reg: Should contain the physical address and length of the gpio/pinmux | ||
6 | register range | ||
7 | |||
8 | Please refer to pinctrl-bindings.txt in this directory for details of the | ||
9 | common pinctrl bindings used by client devices, including the meaning of the | ||
10 | phrase "pin configuration node". | ||
11 | |||
12 | Lantiq's pin configuration nodes act as a container for an abitrary number of | ||
13 | subnodes. Each of these subnodes represents some desired configuration for a | ||
14 | pin, a group, or a list of pins or groups. This configuration can include the | ||
15 | mux function to select on those group(s), and two pin configuration parameters: | ||
16 | pull-up and open-drain | ||
17 | |||
18 | The name of each subnode is not important as long as it is unique; all subnodes | ||
19 | should be enumerated and processed purely based on their content. | ||
20 | |||
21 | Each subnode only affects those parameters that are explicitly listed. In | ||
22 | other words, a subnode that lists a mux function but no pin configuration | ||
23 | parameters implies no information about any pin configuration parameters. | ||
24 | Similarly, a pin subnode that describes a pullup parameter implies no | ||
25 | information about e.g. the mux function. | ||
26 | |||
27 | We support 2 types of nodes. | ||
28 | |||
29 | Definition of mux function groups: | ||
30 | |||
31 | Required subnode-properties: | ||
32 | - lantiq,groups : An array of strings. Each string contains the name of a group. | ||
33 | Valid values for these names are listed below. | ||
34 | - lantiq,function: A string containing the name of the function to mux to the | ||
35 | group. Valid values for function names are listed below. | ||
36 | |||
37 | Valid values for group and function names: | ||
38 | |||
39 | mux groups: | ||
40 | exin0, exin1, exin2, jtag, ebu a23, ebu a24, ebu a25, ebu clk, ebu cs1, | ||
41 | ebu wait, nand ale, nand cs1, nand cle, spi, spi_cs1, spi_cs2, spi_cs3, | ||
42 | spi_cs4, spi_cs5, spi_cs6, asc0, asc0 cts rts, stp, nmi , gpt1, gpt2, | ||
43 | gpt3, clkout0, clkout1, clkout2, clkout3, gnt1, gnt2, gnt3, req1, req2, | ||
44 | req3 | ||
45 | |||
46 | additional mux groups (XR9 only): | ||
47 | mdio, nand rdy, nand rd, exin3, exin4, gnt4, req4 | ||
48 | |||
49 | functions: | ||
50 | spi, asc, cgu, jtag, exin, stp, gpt, nmi, pci, ebu, mdio | ||
51 | |||
52 | |||
53 | |||
54 | Definition of pin configurations: | ||
55 | |||
56 | Required subnode-properties: | ||
57 | - lantiq,pins : An array of strings. Each string contains the name of a pin. | ||
58 | Valid values for these names are listed below. | ||
59 | |||
60 | Optional subnode-properties: | ||
61 | - lantiq,pull: Integer, representing the pull-down/up to apply to the pin. | ||
62 | 0: none, 1: down, 2: up. | ||
63 | - lantiq,open-drain: Boolean, enables open-drain on the defined pin. | ||
64 | |||
65 | Valid values for XWAY pin names: | ||
66 | Pinconf pins can be referenced via the names io0-io31. | ||
67 | |||
68 | Valid values for XR9 pin names: | ||
69 | Pinconf pins can be referenced via the names io0-io55. | ||
70 | |||
71 | Example: | ||
72 | gpio: pinmux@E100B10 { | ||
73 | compatible = "lantiq,pinctrl-xway"; | ||
74 | pinctrl-names = "default"; | ||
75 | pinctrl-0 = <&state_default>; | ||
76 | |||
77 | #gpio-cells = <2>; | ||
78 | gpio-controller; | ||
79 | reg = <0xE100B10 0xA0>; | ||
80 | |||
81 | state_default: pinmux { | ||
82 | stp { | ||
83 | lantiq,groups = "stp"; | ||
84 | lantiq,function = "stp"; | ||
85 | }; | ||
86 | pci { | ||
87 | lantiq,groups = "gnt1"; | ||
88 | lantiq,function = "pci"; | ||
89 | }; | ||
90 | conf_out { | ||
91 | lantiq,pins = "io4", "io5", "io6"; /* stp */ | ||
92 | lantiq,open-drain; | ||
93 | lantiq,pull = <0>; | ||
94 | }; | ||
95 | }; | ||
96 | }; | ||
97 | |||