mvebu: add inital support for Marvell Armada XP/370 SoCs
[openwrt.git] / target / linux / mvebu / patches-3.8 / 011-arm_mvebu_add_pin_mux_options_a370.patch
1 The SDIO interface is available either on pins MPP9/11/12/13/14/15 or
2 MPP47/48/49/50/51/52 on the Armada 370. Even though all combinations
3 are potentially possible, those two muxing options are the most
4 probable ones, so we provide those at the SoC level .dtsi file.
5
6 In practice, in turns out the Armada 370 DB board uses the former,
7 while the Armada 370 Mirabox uses the latter.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ---
11  arch/arm/boot/dts/armada-370.dtsi |   12 ++++++++++++
12  1 file changed, 12 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi
15 index 636cf7d..88f9bab 100644
16 --- a/arch/arm/boot/dts/armada-370.dtsi
17 +++ b/arch/arm/boot/dts/armada-370.dtsi
18 @@ -47,6 +47,18 @@
19                 pinctrl {
20                         compatible = "marvell,mv88f6710-pinctrl";
21                         reg = <0xd0018000 0x38>;
22 +
23 +                       sdio_pins1: sdio-pins1 {
24 +                             marvell,pins = "mpp9",  "mpp11", "mpp12",
25 +                                            "mpp13", "mpp14", "mpp15";
26 +                             marvell,function = "sd0";
27 +                       };
28 +
29 +                       sdio_pins2: sdio-pins2 {
30 +                             marvell,pins = "mpp47", "mpp48", "mpp49",
31 +                                            "mpp50", "mpp51", "mpp52";
32 +                             marvell,function = "sd0";
33 +                       };
34                 };
35  
36                 gpio0: gpio@d0018100 {
37 -- 
38 1.7.9.5