f4d9a96f8382d3c93c282793a1a9c92c5e6dbe94
[openwrt.git] / target / linux / mvebu / patches-3.8 / 012-arm_mvebu_add_pin_mux_options_axp.patch
1 The SDIO interface is only available on pins MPP30/31/32/33/34/35 on
2 the various Armada XP variants, so we provide a pin muxing option for
3 this in the Armada XP .dtsi files.
4
5 Even though those muxing options are the same for MV78230, MV78260 and
6 MV78460, we keep them in each .dtsi file, because the number of pins,
7 and therefore the declaration of the pinctrl node, is different for
8 each SoC variant.
9
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 ---
12  arch/arm/boot/dts/armada-xp-mv78230.dtsi |    6 ++++++
13  arch/arm/boot/dts/armada-xp-mv78260.dtsi |    6 ++++++
14  arch/arm/boot/dts/armada-xp-mv78460.dtsi |    6 ++++++
15  3 files changed, 18 insertions(+)
16
17 diff --git a/arch/arm/boot/dts/armada-xp-mv78230.dtsi b/arch/arm/boot/dts/armada-xp-mv78230.dtsi
18 index c45c7b4..3fa9c84 100644
19 --- a/arch/arm/boot/dts/armada-xp-mv78230.dtsi
20 +++ b/arch/arm/boot/dts/armada-xp-mv78230.dtsi
21 @@ -40,6 +40,12 @@
22                 pinctrl {
23                         compatible = "marvell,mv78230-pinctrl";
24                         reg = <0xd0018000 0x38>;
25 +
26 +                       sdio_pins: sdio-pins {
27 +                               marvell,pins = "mpp30", "mpp31", "mpp32",
28 +                                              "mpp33", "mpp34", "mpp35";
29 +                               marvell,function = "sd0";
30 +                       };
31                 };
32  
33                 gpio0: gpio@d0018100 {
34 diff --git a/arch/arm/boot/dts/armada-xp-mv78260.dtsi b/arch/arm/boot/dts/armada-xp-mv78260.dtsi
35 index a2aee57..5a907b3 100644
36 --- a/arch/arm/boot/dts/armada-xp-mv78260.dtsi
37 +++ b/arch/arm/boot/dts/armada-xp-mv78260.dtsi
38 @@ -48,6 +48,12 @@
39                 pinctrl {
40                         compatible = "marvell,mv78260-pinctrl";
41                         reg = <0xd0018000 0x38>;
42 +
43 +                       sdio_pins: sdio-pins {
44 +                               marvell,pins = "mpp30", "mpp31", "mpp32",
45 +                                              "mpp33", "mpp34", "mpp35";
46 +                               marvell,function = "sd0";
47 +                       };
48                 };
49  
50                 gpio0: gpio@d0018100 {
51 diff --git a/arch/arm/boot/dts/armada-xp-mv78460.dtsi b/arch/arm/boot/dts/armada-xp-mv78460.dtsi
52 index da03a12..6dcdc50d 100644
53 --- a/arch/arm/boot/dts/armada-xp-mv78460.dtsi
54 +++ b/arch/arm/boot/dts/armada-xp-mv78460.dtsi
55 @@ -63,6 +63,12 @@
56                 pinctrl {
57                         compatible = "marvell,mv78460-pinctrl";
58                         reg = <0xd0018000 0x38>;
59 +
60 +                       sdio_pins: sdio-pins {
61 +                               marvell,pins = "mpp30", "mpp31", "mpp32",
62 +                                              "mpp33", "mpp34", "mpp35";
63 +                               marvell,function = "sd0";
64 +                       };
65                 };
66  
67                 gpio0: gpio@d0018100 {
68 -- 
69 1.7.9.5