d9214163c28805502ae957fdca84e8fb481f2e8d
[openwrt/staging/mkresin.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 --- a/arch/arm/boot/dts/armada-370-db.dts
20 +++ b/arch/arm/boot/dts/armada-370-db.dts
21 @@ -59,5 +59,20 @@
22 phy = <&phy1>;
23 phy-mode = "rgmii-id";
24 };
25 +
26 + mvsdio@d00d4000 {
27 + pinctrl-0 = <&sdio_pins1>;
28 + pinctrl-names = "default";
29 + /*
30 + * This device is disabled by default, because
31 + * using the SD card connector requires
32 + * changing the default CON40 connector
33 + * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
34 + * different connector
35 + * "DB-88F6710_MPP_RGMII_SD_Jumper".
36 + */
37 + status = "disabled";
38 + /* No CD or WP GPIOs */
39 + };
40 };
41 };