From patchwork Fri Sep 4 15:33:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Heider X-Patchwork-Id: 1357658 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=GLGIAOeE; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BjhYm4J3Mz9sV7 for ; Sat, 5 Sep 2020 01:34:36 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B846C822C8; Fri, 4 Sep 2020 17:34:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GLGIAOeE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1B87F82286; Fri, 4 Sep 2020 17:34:03 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7F12982286 for ; Fri, 4 Sep 2020 17:33:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=a.heider@gmail.com Received: by mail-ed1-x544.google.com with SMTP id n22so6550718edt.4 for ; Fri, 04 Sep 2020 08:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gbCH0YDIbXYTGMDaphc5onM0GHXz82mA4IEfDygwCTw=; b=GLGIAOeEb5Zr8/2mKf8hJjR3QLfwP7q2fNmKX5kx+63NV+Wg5cCVlogPc2zHMXA0mF 350X33zshjNQm1dqc+lMBVCpfPtBji9c1NB6Yx75vt63FcXmT+FsF4PsWY1SQWthUqrV IFqGJmSI+Nn8/XgNRUFNv7LkWLlhR1l7V+5c5B4tzY7ck1cnCNZ3ffmooJXoJcEFjdCV kR+KeON7jl5h5jJDVtW0Rd7NbNNQlJSSN9X2kKwn87ESib+V39tSVQb6gSfpNHLBLy+S 1L33eT2p9lxLrXV4M5HqS+mdclUm3QLaXR18Zt0aaNWpVBMK500PQDLPDT4Ou2tCLyKC QjvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gbCH0YDIbXYTGMDaphc5onM0GHXz82mA4IEfDygwCTw=; b=l1HVJArD5mcqr66LRUv3XzTcMmIDLrMv3khFaXnhA9EkUngKE6KR5f81mvEnPK+5Pa LNsVxJ0YT5sHmvencjOoJudTLVkGOkg1wqZtw5764P+H+UGvA9dazz9X5OxC5wMEulpN j4+UOCqamL4C/BRk1USYkIP90u52E0rmjrwZ5ILne498chqreWZryAsOSR2EVOGgr7zt 3mcWDGJlkSzGFcEVQ5bcpi+urUGGW0pxhR8f7WMI8MO/ltpBi13Iu9/o5ZGdxSqHfkcA 1DMiYh3YQCIaaA3JBxa+La3Ku3bsw9XSPup9YtGLL6lHGzFl4LkEhwpzb0e6HdbXnVRV hTqA== X-Gm-Message-State: AOAM5303xCSgLbEn9Mg1Cn1TqjxIwlzBWKNDwLO2VN891LDynAyF1PkP Au8bw+TaFIM4FuD9X19sc1M= X-Google-Smtp-Source: ABdhPJyMeHpQGyPc0R0AzvprBOjG8J5SVuAihcReb366svUiv/csu6vA6I2jY7oEltwSnQskffmQsQ== X-Received: by 2002:a50:f69a:: with SMTP id d26mr8877835edn.21.1599233637981; Fri, 04 Sep 2020 08:33:57 -0700 (PDT) Received: from mamamia.internal (a89-183-122-168.net-htp.de. [89.183.122.168]) by smtp.gmail.com with ESMTPSA id u15sm6016742edj.69.2020.09.04.08.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 08:33:57 -0700 (PDT) From: Andre Heider To: Stefan Roese , Konstantin Porotchkin Cc: =?utf-8?q?Pali_Roh=C3=A1r?= , u-boot@lists.denx.de Subject: [PATCH v2 3/3] arm64: dts: a3720: add support for espressobin with populated emmc Date: Fri, 4 Sep 2020 17:33:54 +0200 Message-Id: <20200904153354.1120958-3-a.heider@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200904153354.1120958-1-a.heider@gmail.com> References: <20200904153354.1120958-1-a.heider@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean Import armada-3720-espressobin-emmc.dts from Linux, but use sdhc1 for emmc, since our dtsi is still based on downstream and sdhc0 is used for the sd card. Signed-off-by: Andre Heider --- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-3720-espressobin-emmc.dts | 44 +++++++++++++++++++ doc/README.marvell | 7 ++- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 arch/arm/dts/armada-3720-espressobin-emmc.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 5e34192be6..8f1958b5a7 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -202,6 +202,7 @@ dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ dtb-$(CONFIG_ARCH_MVEBU) += \ armada-3720-db.dtb \ armada-3720-espressobin.dtb \ + armada-3720-espressobin-emmc.dtb \ armada-3720-turris-mox.dtb \ armada-3720-uDPU.dtb \ armada-375-db.dtb \ diff --git a/arch/arm/dts/armada-3720-espressobin-emmc.dts b/arch/arm/dts/armada-3720-espressobin-emmc.dts new file mode 100644 index 0000000000..29ccb6a573 --- /dev/null +++ b/arch/arm/dts/armada-3720-espressobin-emmc.dts @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree file for Globalscale Marvell ESPRESSOBin Board with eMMC + * Copyright (C) 2018 Marvell + * + * Romain Perier + * Konstantin Porotchkin + * + */ +/* + * Schematic available at http://espressobin.net/wp-content/uploads/2017/08/ESPRESSObin_V5_Schematics.pdf + */ + +/dts-v1/; + +#include "armada-3720-espressobin.dtsi" + +/ { + model = "Globalscale Marvell ESPRESSOBin Board (eMMC)"; + compatible = "globalscale,espressobin-emmc", "globalscale,espressobin", + "marvell,armada3720", "marvell,armada3710"; +}; + +/* U11 */ +&sdhci1 { + non-removable; + bus-width = <8>; + mmc-ddr-1_8v; + mmc-hs400-1_8v; + marvell,xenon-emmc; + marvell,xenon-tun-count = <9>; + marvell,pad-type = "fixed-1-8v"; + + pinctrl-names = "default"; + pinctrl-0 = <&mmc_pins>; + status = "okay"; + + #address-cells = <1>; + #size-cells = <0>; + mmccard: mmccard@0 { + compatible = "mmc-card"; + reg = <0>; + }; +}; diff --git a/doc/README.marvell b/doc/README.marvell index 5416bc3035..be07f31f8c 100644 --- a/doc/README.marvell +++ b/doc/README.marvell @@ -43,8 +43,11 @@ Build Procedure In order to prevent this, the required device-tree MUST be set during compilation. All device-tree files are located in ./arch/arm/dts/ folder. - For other DB boards (MacchiatoBin, EspressoBin and 3700 DB board) compile u-boot with - just default device-tree from defconfig using: + For the EspressoBin board with populated eMMC device use + # make DEVICE_TREE=armada-3720-espressobin-emmc + + For other DB boards (MacchiatoBin, EspressoBin without soldered eMMC and 3700 DB board) + compile u-boot with just default device-tree from defconfig using: # make