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
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
11 Signed-off-by: Andre Heider <a.heider@gmail.com>
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
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) += \
24 armada-3720-espressobin.dtb \
25 + armada-3720-espressobin-emmc.dtb \
26 armada-3720-turris-mox.dtb \
27 armada-3720-uDPU.dtb \
30 +++ b/arch/arm/dts/armada-3720-espressobin-emmc.dts
32 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
34 + * Device Tree file for Globalscale Marvell ESPRESSOBin Board with eMMC
35 + * Copyright (C) 2018 Marvell
37 + * Romain Perier <romain.perier@free-electrons.com>
38 + * Konstantin Porotchkin <kostap@marvell.com>
42 + * Schematic available at http://espressobin.net/wp-content/uploads/2017/08/ESPRESSObin_V5_Schematics.pdf
47 +#include "armada-3720-espressobin.dtsi"
50 + model = "Globalscale Marvell ESPRESSOBin Board (eMMC)";
51 + compatible = "globalscale,espressobin-emmc", "globalscale,espressobin",
52 + "marvell,armada3720", "marvell,armada3710";
62 + marvell,xenon-tun-count = <9>;
63 + marvell,pad-type = "fixed-1-8v";
65 + pinctrl-names = "default";
66 + pinctrl-0 = <&mmc_pins>;
69 + #address-cells = <1>;
71 + mmccard: mmccard@0 {
72 + compatible = "mmc-card";
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.
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
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: