1Microsemi Ocelot pin controller Device Tree Bindings 2---------------------------------------------------- 3 4Required properties: 5 - compatible : Should be "mscc,ocelot-pinctrl", 6 "mscc,jaguar2-pinctrl" or "microchip,sparx5-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 16The ocelot-pinctrl driver uses the generic pin multiplexing and generic pin 17configuration documented in pinctrl-bindings.txt. 18 19The following generic properties are supported: 20 - function 21 - pins 22 23Example: 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 }; 41