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