162306a36Sopenharmony_ci* Marvell SoC pinctrl core driver for mpp
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThe pinctrl driver enables Marvell SoCs to configure the multi-purpose pins
462306a36Sopenharmony_ci(mpp) to a specific function. For each SoC family there is a SoC specific
562306a36Sopenharmony_cidriver using this core driver.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciPlease refer to pinctrl-bindings.txt in this directory for details of the
862306a36Sopenharmony_cicommon pinctrl bindings used by client devices, including the meaning of the
962306a36Sopenharmony_ciphrase "pin configuration node".
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciA Marvell SoC pin configuration node is a node of a group of pins which can
1262306a36Sopenharmony_cibe used for a specific device or function. Each node requires one or more
1362306a36Sopenharmony_cimpp pins or group of pins and a mpp function common to all pins.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciRequired properties for pinctrl driver:
1662306a36Sopenharmony_ci- compatible: "marvell,<soc>-pinctrl"
1762306a36Sopenharmony_ci  Please refer to each marvell,<soc>-pinctrl.txt binding doc for supported SoCs.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciRequired properties for pin configuration node:
2062306a36Sopenharmony_ci- marvell,pins: string array of mpp pins or group of pins to be muxed.
2162306a36Sopenharmony_ci- marvell,function: string representing a function to mux to for all
2262306a36Sopenharmony_ci    marvell,pins given in this pin configuration node. The function has to be
2362306a36Sopenharmony_ci    common for all marvell,pins. Please refer to marvell,<soc>-pinctrl.txt for
2462306a36Sopenharmony_ci    valid pin/pin group names and available function names for each SoC.
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciExamples:
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciuart1: serial@12100 {
2962306a36Sopenharmony_ci	compatible = "ns16550a";
3062306a36Sopenharmony_ci	reg = <0x12100 0x100>;
3162306a36Sopenharmony_ci	reg-shift = <2>;
3262306a36Sopenharmony_ci	interrupts = <7>;
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci	pinctrl-0 = <&pmx_uart1_sw>;
3562306a36Sopenharmony_ci	pinctrl-names = "default";
3662306a36Sopenharmony_ci};
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_cipinctrl: pinctrl@d0200 {
3962306a36Sopenharmony_ci	compatible = "marvell,dove-pinctrl";
4062306a36Sopenharmony_ci	reg = <0xd0200 0x14>, <0xd0440 0x04>, <0xd802c 0x08>;
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_ci	pmx_uart1_sw: pmx-uart1-sw {
4362306a36Sopenharmony_ci		marvell,pins = "mpp_uart1";
4462306a36Sopenharmony_ci		marvell,function = "uart1";
4562306a36Sopenharmony_ci	};
4662306a36Sopenharmony_ci};
47