mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 514-arm64-dts-marvell-armada-37xx-Enable-emmc-on-espress.patch
1 From 43ebc7c1b3ed8198b9acf3019eca16e722f7331c Mon Sep 17 00:00:00 2001
2 From: Ding Tao <miyatsu@qq.com>
3 Date: Fri, 26 Oct 2018 11:50:28 +0000
4 Subject: [PATCH] arm64: dts: marvell: armada-37xx: Enable emmc on espressobin
5
6 The ESPRESSObin board has a emmc interface available on U11: declare it
7 and let the bootloader enable it if the emmc is present.
8
9 [gregory.clement@bootlin.com: disable the emmc by default]
10 Signed-off-by: Ding Tao <miyatsu@qq.com>
11 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
12 ---
13  .../dts/marvell/armada-3720-espressobin.dts   | 22 +++++++++++++++++++
14  1 file changed, 22 insertions(+)
15
16 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
17 +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
18 @@ -93,9 +93,31 @@
19         cd-gpios = <&gpionb 3 GPIO_ACTIVE_LOW>;
20         marvell,pad-type = "sd";
21         vqmmc-supply = <&vcc_sd_reg1>;
22 +
23 +       pinctrl-names = "default";
24 +       pinctrl-0 = <&sdio_pins>;
25         status = "okay";
26  };
27  
28 +/* U11 */
29 +&sdhci0 {
30 +       non-removable;
31 +       bus-width = <8>;
32 +       mmc-ddr-1_8v;
33 +       mmc-hs400-1_8v;
34 +       marvell,xenon-emmc;
35 +       marvell,xenon-tun-count = <9>;
36 +       marvell,pad-type = "fixed-1-8v";
37 +
38 +       pinctrl-names = "default";
39 +       pinctrl-0 = <&mmc_pins>;
40 +/*
41 + * This eMMC is not populated on all boards, so disable it by
42 + * default and let the bootloader enable it, if it is present
43 + */
44 +       status = "disabled";
45 +};
46 +
47  &spi0 {
48         status = "okay";
49