From patchwork Thu Feb 28 15:45:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 159402 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp795133jad; Thu, 28 Feb 2019 07:45:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IY6Vh2Fpt3Vr0bnp+IhizwiVylNpZevLHGHvN/8LW3x2VihuXDs/V7DwnD+sh+CpMmiy68d X-Received: by 2002:a62:cf02:: with SMTP id b2mr216748pfg.71.1551368739680; Thu, 28 Feb 2019 07:45:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551368739; cv=none; d=google.com; s=arc-20160816; b=FgX6Y16teOPO7YcZWfJgT3cIK7aWo1sylTrFXjEkIVC9PTjAdg+SR5RXwEybk23lJ1 J5gAhuRjwrEDm1+78VGmBpSXw5gHzlRtRMm/cypGKgVuMCzCB/0Bi4XGc0MN5d27zHS6 +yPTck0KzGPGJFS7Js8xh3gqmdh/j8hF5746tUyT7VBga/OZiDX13IoFLmX7jQU6S9OP 4uNEjHFvbpvsIAevdCVbsTBIrKByDNPInS8x8f7zxE1KeUAgIOO1Qa4DvcXvAMn768oR heMXmEkbj8zmQRjmVMDKZMKsa2Yl527jgCayVMzD6+jM2wB8/Fma8/tNqhfsmjiA+dih zRQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=UlIvDrB8jEqxMcTRJrwwAoaBexZYNRihPSUXhNkMYCo=; b=CBREhvCmDC3BhbWVq/JgaY5GQodA2vmlYWNmbSDC7eGmRgbsfK59JT5bTaFn+wLYQe XhdmwBp6oxNcZr8953DQAaieC9ASFdmTc+E7tFhUQqfedZSwk61NKblhwOPaCgED+bx0 nPDz7U6B/ZHTKr37+a671PHIWI/XUO/b28uBAwmW9CFm06BWfB0+YCRBwpWarZxRreCZ rjx+UsXD80Wfp/AYvoE2/Plfpe/5lvQ9WKbVdseAYwpgXF816Kt3umBfd4wVheUdBjy/ mgnS1YVFRymRNJme6QOpILlQiST7TUUP4Aw728dPj2dF9yDhWbQ3GNbsFPk5RFN9adLA Djvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z9i3uLpK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si17784893pfh.188.2019.02.28.07.45.39; Thu, 28 Feb 2019 07:45:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z9i3uLpK; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733081AbfB1Ppi (ORCPT + 7 others); Thu, 28 Feb 2019 10:45:38 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:36300 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731175AbfB1Ppi (ORCPT ); Thu, 28 Feb 2019 10:45:38 -0500 Received: by mail-pg1-f194.google.com with SMTP id r124so9904437pgr.3 for ; Thu, 28 Feb 2019 07:45:37 -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=UlIvDrB8jEqxMcTRJrwwAoaBexZYNRihPSUXhNkMYCo=; b=Z9i3uLpKTrJ8YPmOgp6eUBBfB+cDVGhrKtQmPq4iGIzAdX6jtFeVIp/rtB6R6ONi93 PkrZj/1nKA3DIrcP0/wlxyv2inKTwnsb+A9fQziCnrG/wjcNs9LpDsNES886UmTZhUb+ LXTjf2JyP4voCKqen7fRAZxrT5bkIQJ1ntV+SEgWnvKyBNyEk0UH1FB5XaxJMs4sMYyU CmWU2ft/l5YVjocpzxnKMWfsPxb2SoFrTxsrWcHD6iXBI6XGRfD3EB9aGiCQqECOfrLr NeV8YrGtY/NEIpDFdMmP6WH24nffNWwtCtMS93AtE91atfuEUzSS1LTxemZ/Chj6OwpB 43aw== 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=UlIvDrB8jEqxMcTRJrwwAoaBexZYNRihPSUXhNkMYCo=; b=b1nasdFXh+7N25tUQLvpT6fhcrxStQGPBd9jY2xRTiuR7nIABfvfCMrodN4N8IPjze zndyTq4TABYfTPF5Z00CGbnlWx1X8ZrdbIEHNa5NkvX8Az0dH/l17MYHYbCZhbAzgGEu OXYJjem7T/60821Ti+7ulYt91khcWZPgeJAKrrsJDJ98sBIySmHFEF4z+Yn5OYCNzWsP IwB8q2ShUe3VJwUygWqhv31rWqO9h/w8Poiq7wBTUIDiScETJPWaAKvjd5mUtKYphaC9 2M2Yu0AM8zSEknprFBJqECtwU9Vb0qSMlhHzYJ+HoL+iBD2zxbY5NzuwcHSWtPgDrlXN LEFg== X-Gm-Message-State: AHQUAubiWum3drr0o1v6z2Z8kvz67CEy0QIAUHKWYj9mxgOCDJGhTspT 9y22nGLujljXupHrEOUSFwCc X-Received: by 2002:a63:d49:: with SMTP id 9mr9024690pgn.27.1551368737474; Thu, 28 Feb 2019 07:45:37 -0800 (PST) Received: from localhost.localdomain ([2409:4072:905:9c3:2dd3:3db1:5145:4da9]) by smtp.gmail.com with ESMTPSA id m13sm37485286pff.175.2019.02.28.07.45.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 07:45:36 -0800 (PST) From: Manivannan Sadhasivam To: xuwei5@hisilicon.com, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, amit.kucheria@linaro.org, guodong.xu@linaro.org, Manivannan Sadhasivam Subject: [PATCH 2/3] arm64: dts: hisilicon: hi3670: Add MMC controller support Date: Thu, 28 Feb 2019 21:15:10 +0530 Message-Id: <20190228154511.17566-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190228154511.17566-1-manivannan.sadhasivam@linaro.org> References: <20190228154511.17566-1-manivannan.sadhasivam@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add MMC controller support for HiSilicon HI3670 SoC reusing the HI3660 Designware MMC driver. There are 2 DWMMC controllers present in this SoC: 1. DWMMC1 is used for SD card (SD) 2. DWMMC2 is used for WiFi (SDIO) Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 37 +++++++++++++++++++++++ 1 file changed, 37 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi index 9864cf59ebd8..080d6ba5ae39 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3670.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3670.dtsi @@ -671,5 +671,42 @@ resets = <&crg_rst 0x84 12>; reset-names = "rst"; }; + + /* SD */ + dwmmc1: dwmmc1@ff37f000 { + compatible = "hisilicon,hi3670-dw-mshc", + "hisilicon,hi3660-dw-mshc"; + reg = <0x0 0xff37f000 0x0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&crg_ctrl HI3670_CLK_GATE_SD>, + <&crg_ctrl HI3670_HCLK_GATE_SD>; + clock-names = "ciu", "biu"; + clock-frequency = <3200000>; + resets = <&crg_rst 0x94 18>; + reset-names = "reset"; + hisilicon,peripheral-syscon = <&sctrl>; + card-detect-delay = <200>; + status = "disabled"; + }; + + /* SDIO */ + dwmmc2: dwmmc2@fc183000 { + compatible = "hisilicon,hi3670-dw-mshc", + "hisilicon,hi3660-dw-mshc"; + reg = <0x0 0xfc183000 0x0 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&crg_ctrl HI3670_CLK_GATE_SDIO>, + <&crg_ctrl HI3670_HCLK_GATE_SDIO>; + clock-names = "ciu", "biu"; + clock-frequency = <3200000>; + resets = <&crg_rst 0x94 20>; + reset-names = "reset"; + card-detect-delay = <200>; + status = "disabled"; + }; }; };