Merge branch 'stable-3.18' of git://git.infradead.org/users/pcmoore/selinux into...
[cascardo/linux.git] / Documentation / devicetree / bindings / pinctrl / allwinner,sunxi-pinctrl.txt
1 * Allwinner A1X Pin Controller
2
3 The pins controlled by sunXi pin controller are organized in banks,
4 each bank has 32 pins.  Each pin has 7 multiplexing functions, with
5 the first two functions being GPIO in and out. The configuration on
6 the pins includes drive strength and pull-up.
7
8 Required properties:
9 - compatible: Should be one of the followings (depending on you SoC):
10   "allwinner,sun4i-a10-pinctrl"
11   "allwinner,sun5i-a10s-pinctrl"
12   "allwinner,sun5i-a13-pinctrl"
13   "allwinner,sun6i-a31-pinctrl"
14   "allwinner,sun6i-a31-r-pinctrl"
15   "allwinner,sun7i-a20-pinctrl"
16   "allwinner,sun8i-a23-pinctrl"
17   "allwinner,sun8i-a23-r-pinctrl"
18 - reg: Should contain the register physical address and length for the
19   pin controller.
20
21 Please refer to pinctrl-bindings.txt in this directory for details of the
22 common pinctrl bindings used by client devices.
23
24 A pinctrl node should contain at least one subnodes representing the
25 pinctrl groups available on the machine. Each subnode will list the
26 pins it needs, and how they should be configured, with regard to muxer
27 configuration, drive strength and pullups. If one of these options is
28 not set, its actual value will be unspecified.
29
30 Required subnode-properties:
31
32 - allwinner,pins: List of strings containing the pin name.
33 - allwinner,function: Function to mux the pins listed above to.
34
35 Optional subnode-properties:
36 - allwinner,drive: Integer. Represents the current sent to the pin
37     0: 10 mA
38     1: 20 mA
39     2: 30 mA
40     3: 40 mA
41 - allwinner,pull: Integer.
42     0: No resistor
43     1: Pull-up resistor
44     2: Pull-down resistor
45
46 Examples:
47
48 pinctrl@01c20800 {
49         compatible = "allwinner,sun5i-a13-pinctrl";
50         reg = <0x01c20800 0x400>;
51         #address-cells = <1>;
52         #size-cells = <0>;
53
54         uart1_pins_a: uart1@0 {
55                 allwinner,pins = "PE10", "PE11";
56                 allwinner,function = "uart1";
57                 allwinner,drive = <0>;
58                 allwinner,pull = <0>;
59         };
60
61         uart1_pins_b: uart1@1 {
62                 allwinner,pins = "PG3", "PG4";
63                 allwinner,function = "uart1";
64                 allwinner,drive = <0>;
65                 allwinner,pull = <0>;
66         };
67 };