From patchwork Thu Dec 27 13:34:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154572 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6948494ljp; Thu, 27 Dec 2018 05:36:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/UW4h2GZVV4JRHAVfElFCNr47eZ9eyOnc72b2qw3vY97oThgiZkhR3CizxkMrtsschN6iaE X-Received: by 2002:a50:8689:: with SMTP id r9mr17948871eda.227.1545917764772; Thu, 27 Dec 2018 05:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545917764; cv=none; d=google.com; s=arc-20160816; b=suYcXwg7z8yGHBohd4JFJHQWOzZCs+7pUf59mvrtjAU4wpeRLBfT+yaCODA9vKEeLC yJ3Cgce3O581F/dDeB5+tsmiLJbSY/ueOp5ojhkCgoIgtXIT5Uat1NvpRgpe0gke5t0I V1e0OlXD58J2o/e/BUJP0YkjscUv4bxa9gyUacbKEtf80DCfUPR/v2od/1ZJTsHo+753 uUpFplOVUjMst1r5B2QZ3XCQksItsR0J96Mm0Ae6AZ7yBkWzXYNBH+Q58dvf44GTpKUL pz2fblLGMzpLl8/rGXY2Kvv7u53EegExKxki+VEB7kAGrnSTGBfl0ixG+9kV9NgngskC L5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=WovvIh38GkpOL3pbqU8266cfDQtR3RsO1C/BOOyuLGw=; b=eGV8YNzmcdlh97MUSh2ZaJV5A8anN5IyYpXie/dJ30lmyAxG4uWzY6Kth9QpGV2xrP c12UXyhoI4/jf++BwowoOgtZ/1lcf+IESJjB+fR1mYih8opkTBYY0DNhwJZtWH4hgquW nJId7SBfeeP/GH1axMIK9hUmi4l/9rHYNOBNdNE+mhHAlUvpCWqPZc9Cw1kTGQdU/D13 +SUZOOCoDPW33fLF4i1OiXAKv9+McZom64LufNA0MQcaax8axS6TLER/x7TwzJpiUpIn IUYRitczoik+7wbM3qPkgfgZO7Ik8Km+NQJSC1Z1eAaxsK9TqFopPI4Vm6QFTWIA74HV GViQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=irj9X9MD; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id p26-v6si935535eji.30.2018.12.27.05.36.04; Thu, 27 Dec 2018 05:36:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=irj9X9MD; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 59F42C21DEC; Thu, 27 Dec 2018 13:34:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9ABCDC21DF8; Thu, 27 Dec 2018 13:34:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 259F7C21DD7; Thu, 27 Dec 2018 13:34:30 +0000 (UTC) Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by lists.denx.de (Postfix) with ESMTPS id 626EBC21DF8 for ; Thu, 27 Dec 2018 13:34:26 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id j10so8828031pga.1 for ; Thu, 27 Dec 2018 05:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Uz+xqPaL1M5xb6hQSHbZDU4NiZOXBXFl+dc7CViQsDg=; b=irj9X9MD6lQbjOE9sDWx0d9J8D+aFcsJgCyBumSeW57fHxbUfWFPPDASAVoboI5c5z 1PD/tEeRD5731cUGupXY2LuVSV9zTzA7RVRP+jRgSf8GhoZfUdllPlkNVkV5keQTDU6Q boqOtrs2GKZhtSFIyZpsBIrnY8B3UMXuvXg5I= 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; bh=Uz+xqPaL1M5xb6hQSHbZDU4NiZOXBXFl+dc7CViQsDg=; b=muqKCTOiD+3Uz+iyBJM7FZsXBVpvyWF1kVhReu9PNTxUToqITPGQiHEc+mbMfXbdIZ 3caP8hHeXesRotMh1ORYolFgqhT8bojedEy5OLtze/EyXcNYhUiKR4lqeghR1yI4pqnR 6i7boDdYDLVTS+m11u6iQtlLycrmZIxyP26/5TKCKScuubuxzPhG5jJqEYZypr2p/pfD qk6vn4NO64Pd6p810zaP8eXNvwfemzSgtPCe2f25xHJOBge1KVHE1TWSMuxpYlCb1BQe nsxd+w3zuQaWYCAzoOztwDAuNXp3SS3nWk0sm8MBgvSK6pe8rN3f7vOBOfu9QxE9Joim FcrA== X-Gm-Message-State: AJcUukescThKXFb3OLU+URd+5tmL/ptt4uFXUxf90CYDb+m9t1h1TVvi dZ74vo3PL0t4151BC4PKxP8j X-Received: by 2002:a65:43c5:: with SMTP id n5mr23349759pgp.250.1545917664753; Thu, 27 Dec 2018 05:34:24 -0800 (PST) Received: from localhost.localdomain ([2409:4072:609a:eb3:ec1b:e2c3:b711:737a]) by smtp.gmail.com with ESMTPSA id c67sm47826461pfg.170.2018.12.27.05.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Dec 2018 05:34:24 -0800 (PST) From: Manivannan Sadhasivam X-Google-Original-From: Manivannan Sadhasivam To: jh80.chung@samsung.com, albert.u.boot@aribaud.net, sjg@chromium.org, trini@konsulko.com Date: Thu, 27 Dec 2018 19:04:05 +0530 Message-Id: <20181227133405.11482-3-manivannanece23@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181227133405.11482-1-manivannanece23@gmail.com> References: <20181227133405.11482-1-manivannanece23@gmail.com> Cc: u-boot@lists.denx.de, Manivannan Sadhasivam Subject: [U-Boot] [PATCH v2 3/3] arm: dts: Add MMC nodes for HiKey board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Manivannan Sadhasivam Add MMC nodes for HiKey board based on HI6220 SoC. There are three MMC controllers in this SoC, first one used for eMMC, second one used for SD card and third one is not used by u-boot. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v2: * Added hi6220-hikey-u-boot.dtsi for u-boot additions as per Tom's comment. * Added Simon's Reviewed-by tag. arch/arm/dts/hi6220-hikey-u-boot.dtsi | 14 ++++++++++++++ arch/arm/dts/hi6220-hikey.dts | 11 +++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 arch/arm/dts/hi6220-hikey-u-boot.dtsi diff --git a/arch/arm/dts/hi6220-hikey-u-boot.dtsi b/arch/arm/dts/hi6220-hikey-u-boot.dtsi new file mode 100644 index 00000000000..31139832401 --- /dev/null +++ b/arch/arm/dts/hi6220-hikey-u-boot.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * U-Boot additions + * + * Copyright (c) 2018 Linaro Ltd. + */ + +&mmc0 { + u-boot,dm-pre-reloc; +}; + +&mmc1 { + u-boot,dm-pre-reloc; +}; diff --git a/arch/arm/dts/hi6220-hikey.dts b/arch/arm/dts/hi6220-hikey.dts index 24f09257af0..d63929348bb 100644 --- a/arch/arm/dts/hi6220-hikey.dts +++ b/arch/arm/dts/hi6220-hikey.dts @@ -40,6 +40,17 @@ }; }; +&mmc0 { + status = "okay"; + non-removable; + bus-width = <8>; +}; + +&mmc1 { + status = "okay"; + bus-width = <4>; +}; + &uart2 { label = "LS-UART0"; }; diff --git a/arch/arm/dts/hi6220.dtsi b/arch/arm/dts/hi6220.dtsi index a610ccb6346..501c8906fd6 100644 --- a/arch/arm/dts/hi6220.dtsi +++ b/arch/arm/dts/hi6220.dtsi @@ -162,6 +162,24 @@ #clock-cells = <1>; }; + mmc0: dwmmc@f723d000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723d000 0x0 0x1000>; + interrupts = <0x0 0x48 0x4>; + clocks = <&sys_ctrl 2>, <&sys_ctrl 1>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + + mmc1: dwmmc@f723e000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723e000 0x0 0x1000>; + interrupts = <0x0 0x49 0x4>; + clocks = <&sys_ctrl 4>, <&sys_ctrl 3>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + uart0: uart@f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>;