Merge tag 'docs-5.0-fixes' of git://git.lwn.net/linux
[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" or
6                                 "mscc,jaguar2-pinctrl"
7  - reg                  : Address and length of the register set for the device
8  - gpio-controller      : Indicates this device is a GPIO controller
9  - #gpio-cells          : Must be 2.
10                           The first cell is the pin number and the
11                           second cell specifies GPIO flags, as defined in
12                           <dt-bindings/gpio/gpio.h>.
13  - gpio-ranges          : Range of pins managed by the GPIO controller.
14
15
16 The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin
17 configuration documented in pinctrl-bindings.txt.
18
19 The following generic properties are supported:
20  - function
21  - pins
22
23 Example:
24         gpio: pinctrl@71070034 {
25                 compatible = "mscc,ocelot-pinctrl";
26                 reg = <0x71070034 0x28>;
27                 gpio-controller;
28                 #gpio-cells = <2>;
29                 gpio-ranges = <&gpio 0 0 22>;
30
31                 uart_pins: uart-pins {
32                                 pins = "GPIO_6", "GPIO_7";
33                                 function = "uart";
34                 };
35
36                 uart2_pins: uart2-pins {
37                                 pins = "GPIO_12", "GPIO_13";
38                                 function = "uart2";
39                 };
40         };