mvebu: add support for the Marvell Armada 370 Reference Design board
[openwrt/openwrt.git] / target / linux / mvebu / patches-3.8 / 014-arm_mvebu_enable_sd_card_slot_a370_db.patch
1 The Armada XP DB evaluation board has one SD card slot, directly
2 connected to the SDIO IP of the SoC, so we add a device tree
3 description for it.
4
5 However, in the default configuration of the board, the SD card slot
6 is not usable: the connector plugged into CON40 must be changed
7 against a different one, provided with the board by the
8 manufacturer. Since such a manual modification of the hardware is
9 needed, we did not enable the SDIO interface by default, and left it
10 to the board user to modify the Device Tree if needed. Since this
11 board is really only an evaluation board for developers and not a
12 final product, it is not too bad.
13
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 ---
16 arch/arm/boot/dts/armada-370-db.dts | 15 +++++++++++++++
17 1 file changed, 15 insertions(+)
18
19 diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts
20 index 0004402..43ff156 100644
21 --- a/arch/arm/boot/dts/armada-370-db.dts
22 +++ b/arch/arm/boot/dts/armada-370-db.dts
23 @@ -59,5 +59,20 @@
24 phy = <&phy1>;
25 phy-mode = "rgmii-id";
26 };
27 +
28 + mvsdio@d00d4000 {
29 + pinctrl-0 = <&sdio_pins1>;
30 + pinctrl-names = "default";
31 + /*
32 + * This device is disabled by default, because
33 + * using the SD card connector requires
34 + * changing the default CON40 connector
35 + * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
36 + * different connector
37 + * "DB-88F6710_MPP_RGMII_SD_Jumper".
38 + */
39 + status = "disabled";
40 + /* No CD or WP GPIOs */
41 + };
42 };
43 };
44 --
45 1.7.9.5