1 * Marvell Armada 37xx SoC pin and gpio controller
3 Each Armada 37xx SoC come with two pin and gpio controller one for the
4 south bridge and the other for the north bridge.
6 Inside this set of register the gpio latch allows exposing some
7 configuration of the SoC and especially the clock frequency of the
8 xtal. Hence, this node is a represent as syscon allowing sharing the
9 register between multiple hardware block.
11 GPIO and pin controller:
12 ------------------------
16 Refer to pinctrl-bindings.txt in this directory for details of the
17 common pinctrl bindings used by client devices, including the meaning
18 of the phrase "pin configuration node".
20 Required properties for pinctrl driver:
22 - compatible: "marvell,armada3710-sb-pinctrl", "syscon, "simple-mfd"
24 "marvell,armada3710-nb-pinctrl", "syscon, "simple-mfd"
26 - reg: The first set of register are for pinctrl/gpio and the second
27 set for the interrupt controller
28 - interrupts: list of the interrupt use by the gpio
30 Available groups and functions for the North bridge:
34 - functions jtag, gpio
38 - functions sdio, gpio
42 - functions emmc, gpio
62 - functions pmic, gpio
66 - functions pmic, gpio
90 - functions onewire, gpio
94 - functions uart, gpio
101 - pins 9-10 and 18-19
102 - functions uart, gpio
104 Available groups and functions for the South bridge:
108 - functions drvbus, gpio
112 - functions drvbus, gpio
116 - functions sdio, gpio
120 - functions mii, gpio
124 - functions pcie, gpio
128 - functions pcie, gpio
132 - functions pcie, gpio
136 - functions smi, gpio
140 - functions ptp, gpio
152 - functions mii, mii_err
156 Please refer to gpio.txt in this directory for details of gpio-ranges property
157 and the common GPIO bindings used by client devices.
159 Required properties for gpio driver under the gpio subnode:
160 - interrupts: List of interrupt specifier for the controllers interrupt.
161 - gpio-controller: Marks the device node as a gpio controller.
162 - #gpio-cells: Should be 2. The first cell is the GPIO number and the
163 second cell specifies GPIO flags, as defined in
164 <dt-bindings/gpio/gpio.h>. Only the GPIO_ACTIVE_HIGH and
165 GPIO_ACTIVE_LOW flags are supported.
166 - gpio-ranges: Range of pins managed by the GPIO controller.
168 Xtal Clock bindings for Marvell Armada 37xx SoCs
169 ------------------------------------------------
171 see Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt
175 pinctrl_sb: pinctrl-sb@18800 {
176 compatible = "marvell,armada3710-sb-pinctrl", "syscon", "simple-mfd";
177 reg = <0x18800 0x100>, <0x18C00 0x20>;
180 gpio-ranges = <&pinctrl_sb 0 0 29>;
183 <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
184 <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
185 <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>,
186 <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>,
187 <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
190 rgmii_pins: mii-pins {