uboot-mvebu: add support for espressobin
[openwrt/staging/dedeckeh.git] / package / boot / uboot-mvebu / patches / 133-arm64-dts-a3720-add-support-for-boards-with-populate.patch
1 From 83908b6e2e5a7d7b0f4d040ffb4bf3ce6807b8fe Mon Sep 17 00:00:00 2001
2 From: Andre Heider <a.heider@gmail.com>
3 Date: Fri, 4 Sep 2020 15:44:41 +0200
4 Subject: [PATCH] arm64: dts: a3720: add support for boards with populated emmc
5
6 Import armada-3720-espressobin-emmc.dts from Linux, but use sdhc1 for
7 emmc, since sdhc0 is used for the sd card.
8
9 Signed-off-by: Andre Heider <a.heider@gmail.com>
10 ---
11 arch/arm/dts/Makefile | 1 +
12 arch/arm/dts/armada-3720-espressobin-emmc.dts | 44 +++++++++++++++++++
13 doc/README.marvell | 7 ++-
14 3 files changed, 50 insertions(+), 2 deletions(-)
15 create mode 100644 arch/arm/dts/armada-3720-espressobin-emmc.dts
16
17 --- a/arch/arm/dts/Makefile
18 +++ b/arch/arm/dts/Makefile
19 @@ -202,6 +202,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harm
20 dtb-$(CONFIG_ARCH_MVEBU) += \
21 armada-3720-db.dtb \
22 armada-3720-espressobin.dtb \
23 + armada-3720-espressobin-emmc.dtb \
24 armada-3720-turris-mox.dtb \
25 armada-3720-uDPU.dtb \
26 armada-375-db.dtb \
27 --- /dev/null
28 +++ b/arch/arm/dts/armada-3720-espressobin-emmc.dts
29 @@ -0,0 +1,44 @@
30 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
31 +/*
32 + * Device Tree file for Globalscale Marvell ESPRESSOBin Board with eMMC
33 + * Copyright (C) 2018 Marvell
34 + *
35 + * Romain Perier <romain.perier@free-electrons.com>
36 + * Konstantin Porotchkin <kostap@marvell.com>
37 + *
38 + */
39 +/*
40 + * Schematic available at http://espressobin.net/wp-content/uploads/2017/08/ESPRESSObin_V5_Schematics.pdf
41 + */
42 +
43 +/dts-v1/;
44 +
45 +#include "armada-3720-espressobin.dtsi"
46 +
47 +/ {
48 + model = "Globalscale Marvell ESPRESSOBin Board (eMMC)";
49 + compatible = "globalscale,espressobin-emmc", "globalscale,espressobin",
50 + "marvell,armada3720", "marvell,armada3710";
51 +};
52 +
53 +/* U11 */
54 +&sdhci1 {
55 + non-removable;
56 + bus-width = <8>;
57 + mmc-ddr-1_8v;
58 + mmc-hs400-1_8v;
59 + marvell,xenon-emmc;
60 + marvell,xenon-tun-count = <9>;
61 + marvell,pad-type = "fixed-1-8v";
62 +
63 + pinctrl-names = "default";
64 + pinctrl-0 = <&mmc_pins>;
65 + status = "okay";
66 +
67 + #address-cells = <1>;
68 + #size-cells = <0>;
69 + mmccard: mmccard@0 {
70 + compatible = "mmc-card";
71 + reg = <0>;
72 + };
73 +};
74 --- a/doc/README.marvell
75 +++ b/doc/README.marvell
76 @@ -43,8 +43,11 @@ Build Procedure
77 In order to prevent this, the required device-tree MUST be set during compilation.
78 All device-tree files are located in ./arch/arm/dts/ folder.
79
80 - For other DB boards (MacchiatoBin, EspressoBin and 3700 DB board) compile u-boot with
81 - just default device-tree from defconfig using:
82 + For the EspressoBin board with populated eMMC device use
83 + # make DEVICE_TREE=armada-3720-espressobin-emmc
84 +
85 + For other DB boards (MacchiatoBin, EspressoBin without soldered eMMC and 3700 DB board)
86 + compile u-boot with just default device-tree from defconfig using:
87
88 # make
89