3759741dbed074a398a8ce5482936ac6f1c8ee28
[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 [florian: changed status to "okay" for RD-A370-A1]
17 arch/arm/boot/dts/armada-370-db.dts | 15 +++++++++++++++
18 1 file changed, 15 insertions(+)
19
20 diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts
21 index 0004402..43ff156 100644
22 --- a/arch/arm/boot/dts/armada-370-db.dts
23 +++ b/arch/arm/boot/dts/armada-370-db.dts
24 @@ -59,5 +59,20 @@
25 phy = <&phy1>;
26 phy-mode = "rgmii-id";
27 };
28 +
29 + mvsdio@d00d4000 {
30 + pinctrl-0 = <&sdio_pins1>;
31 + pinctrl-names = "default";
32 + /*
33 + * This device is disabled by default, because
34 + * using the SD card connector requires
35 + * changing the default CON40 connector
36 + * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
37 + * different connector
38 + * "DB-88F6710_MPP_RGMII_SD_Jumper".
39 + */
40 + status = "okay";
41 + /* No CD or WP GPIOs */
42 + };
43 };
44 };
45 --
46 1.7.9.5