Merge tag 'iommu-updates-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / pinctrl / mscc,ocelot-pinctrl.txt
1 Microsemi Ocelot pin controller Device Tree Bindings
2 ----------------------------------------------------
3
4 Required properties:
5  - compatible           : Should be "mscc,ocelot-pinctrl"
6  - reg                  : Address and length of the register set for the device
7  - gpio-controller      : Indicates this device is a GPIO controller
8  - #gpio-cells          : Must be 2.
9                           The first cell is the pin number and the
10                           second cell specifies GPIO flags, as defined in
11                           <dt-bindings/gpio/gpio.h>.
12  - gpio-ranges          : Range of pins managed by the GPIO controller.
13
14
15 The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin
16 configuration documented in pinctrl-bindings.txt.
17
18 The following generic properties are supported:
19  - function
20  - pins
21
22 Example:
23         gpio: pinctrl@71070034 {
24                 compatible = "mscc,ocelot-pinctrl";
25                 reg = <0x71070034 0x28>;
26                 gpio-controller;
27                 #gpio-cells = <2>;
28                 gpio-ranges = <&gpio 0 0 22>;
29
30                 uart_pins: uart-pins {
31                                 pins = "GPIO_6", "GPIO_7";
32                                 function = "uart";
33                 };
34
35                 uart2_pins: uart2-pins {
36                                 pins = "GPIO_12", "GPIO_13";
37                                 function = "uart2";
38                 };
39         };