18c2ecf20Sopenharmony_ciMicrosemi Ocelot pin controller Device Tree Bindings
28c2ecf20Sopenharmony_ci----------------------------------------------------
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciRequired properties:
58c2ecf20Sopenharmony_ci - compatible		: Should be "mscc,ocelot-pinctrl",
68c2ecf20Sopenharmony_ci			  "mscc,jaguar2-pinctrl" or "microchip,sparx5-pinctrl"
78c2ecf20Sopenharmony_ci - reg			: Address and length of the register set for the device
88c2ecf20Sopenharmony_ci - gpio-controller	: Indicates this device is a GPIO controller
98c2ecf20Sopenharmony_ci - #gpio-cells		: Must be 2.
108c2ecf20Sopenharmony_ci			  The first cell is the pin number and the
118c2ecf20Sopenharmony_ci			  second cell specifies GPIO flags, as defined in
128c2ecf20Sopenharmony_ci			  <dt-bindings/gpio/gpio.h>.
138c2ecf20Sopenharmony_ci - gpio-ranges		: Range of pins managed by the GPIO controller.
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ciThe ocelot-pinctrl driver uses the generic pin multiplexing and generic pin
178c2ecf20Sopenharmony_ciconfiguration documented in pinctrl-bindings.txt.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciThe following generic properties are supported:
208c2ecf20Sopenharmony_ci - function
218c2ecf20Sopenharmony_ci - pins
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciExample:
248c2ecf20Sopenharmony_ci	gpio: pinctrl@71070034 {
258c2ecf20Sopenharmony_ci		compatible = "mscc,ocelot-pinctrl";
268c2ecf20Sopenharmony_ci		reg = <0x71070034 0x28>;
278c2ecf20Sopenharmony_ci		gpio-controller;
288c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
298c2ecf20Sopenharmony_ci		gpio-ranges = <&gpio 0 0 22>;
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci		uart_pins: uart-pins {
328c2ecf20Sopenharmony_ci				pins = "GPIO_6", "GPIO_7";
338c2ecf20Sopenharmony_ci				function = "uart";
348c2ecf20Sopenharmony_ci		};
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci		uart2_pins: uart2-pins {
378c2ecf20Sopenharmony_ci				pins = "GPIO_12", "GPIO_13";
388c2ecf20Sopenharmony_ci				function = "uart2";
398c2ecf20Sopenharmony_ci		};
408c2ecf20Sopenharmony_ci	};
41