From patchwork Tue Aug 21 19:49:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10572341 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4F3A014BD for ; Tue, 21 Aug 2018 19:56:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AB962AABE for ; Tue, 21 Aug 2018 19:56:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E5C72AAD4; Tue, 21 Aug 2018 19:56:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAB412AABE for ; Tue, 21 Aug 2018 19:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726876AbeHUXSU (ORCPT ); Tue, 21 Aug 2018 19:18:20 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:35644 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726628AbeHUXSU (ORCPT ); Tue, 21 Aug 2018 19:18:20 -0400 Received: by mail-lf1-f66.google.com with SMTP id q13-v6so7022426lfc.2 for ; Tue, 21 Aug 2018 12:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0p/AQTELcHBRCvnXWazdEe/76ftHswiNcnW6atzfuPo=; b=jipbwZ1eAtI7qgpvrNiow9g3T4OEGZEbXAkW5xH9V+PrLyWWWf5xCMVx1em8YXP4xL F9kbJ8bDTWB6OqobEuXO5BUYaDciZnKSoaun4J71mFrei5CPw1K2xoCKDr+w8HljkzF5 GdMXHtRSARaZJRC7arXCJckcXpqn2Zk6nWTmy4VBqU+yZlli9Go0ztr475FjOERJahxl AmJY01Z7yty04FZanpMaQgEbT9ZWoH8pV/97IX78KyxNA6CVJJVueFfc2wqIBHOzUOQt OgNVuYi5crIwEZZ+YVIpktdaVhxoHfcf1lbsk0b6lSWlz2rygp6eMRHwK2PP8WHAbNex wJeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=0p/AQTELcHBRCvnXWazdEe/76ftHswiNcnW6atzfuPo=; b=aTDtMq7rJprRihuBQmm76xW1VcPWZjV0agBHfk5OclIjbSq3lMbUrihK2BwWV2eLr7 fWq1ZLVJ8yaUZSSlR5TeFJ9opY/TlhQPBKTBcJD1+lqS/Mr1uT6pvS9GOgTe672gedVZ 1kiAGGRnGh48eYSDsgOU/srf+PpUGRR8jckblKMJPAkJEKlQjlseQuAA0olc1yEjz7TL DhaY/ZVIVfu8RDwgbFu9rO+kI/4pV5AOC+tTSWtLEn6Zpspwr3Mkn+T8Z57MPWgcjZrX 7KpuOswvMP6hnvO6a73CO12UoYe4DPH4Uo7Hp2ZHs5JF1g+UeVzY+ug+emNy1gLihhQ0 nXzw== X-Gm-Message-State: AOUpUlHkGb/k2NGTMAjvUxhMYWFpSWZUY8719+GW/J9tnk+T8RcEQTwT cOcjslLzqcn1vsdJp+ZRJlSB8g== X-Google-Smtp-Source: AA+uWPyiTl/7omIrMeP1OLIWo1UlkY7Fxc8IS/gduqLJQ9FmxocavJiCAK+/t27i10u1FjXMkK589A== X-Received: by 2002:a19:290c:: with SMTP id p12-v6mr32206405lfp.124.1534880968015; Tue, 21 Aug 2018 12:49:28 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.82.138]) by smtp.gmail.com with ESMTPSA id g87-v6sm1293000lfh.92.2018.08.21.12.49.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 12:49:27 -0700 (PDT) Subject: [PATCH /2] arm64: dts: renesas: r8a77970: add MMC support From: Sergei Shtylyov To: Simon Horman , Rob Herring , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Magnus Damm , Mark Rutland , linux-arm-kernel@lists.infradead.org References: <1af46bf9-d9e5-8dcf-0ac7-a85e7348a34e@cogentembedded.com> Organization: Cogent Embedded Message-ID: <28c2a0ef-dc89-1fad-6502-9b33738b59a5@cogentembedded.com> Date: Tue, 21 Aug 2018 22:49:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1af46bf9-d9e5-8dcf-0ac7-a85e7348a34e@cogentembedded.com> Content-Language: en-MW Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the generic R8A77970 part of the MMC0 (SDHI2) device node. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi @@ -754,6 +754,18 @@ #iommu-cells = <1>; }; + mmc0: mmc@ee140000 { + compatible = "renesas,sdhi-r8a77970", + "renesas,rcar-gen3-sdhi"; + reg = <0 0xee140000 0 0x2000>; + interrupts = ; + clocks = <&cpg CPG_MOD 314>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 314>; + max-frequency = <200000000>; + status = "disabled"; + }; + gic: interrupt-controller@f1010000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;