From patchwork Mon Sep 16 15:45:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 173859 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp4056581oce; Mon, 16 Sep 2019 08:46:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAYLotaev6umaGhBra2ojZdUeR9mT4qAEmjRThQBQHRDrUKVzI9K56wn/3k9XQrr6Fs/fx X-Received: by 2002:a17:906:797:: with SMTP id l23mr682859ejc.188.1568648799945; Mon, 16 Sep 2019 08:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568648799; cv=none; d=google.com; s=arc-20160816; b=nUi6g2B9ka49Ewr+40BEOUHSZi7L/1R4eBA3HdH23eL4v1dFFqCDMrlvh6NXPuU8FB 6Q36A/ZCDO5eCmZTDJOihssOtVFEy78pcECyk4Su8LnbK3q8RJZagaEp6S1fdUbG6mDP nGxnvVzcA7DIIE5SzJokrW0WO4SjHSNu1ex2tFPMUrXMcw5noa4GyuH/7ZLJCLuSxgje 5+0mjFTK+7oG3V+tleF1JoWo2lPmRuo/JJGK2wuu0Wcq03IG8SH5g90TIuTH951uL3SU zGA4XdyJouJehvA+8iZVD8PXmOcHZwu2pF8zHxDRv3nSdnt5bUdua0lP+OvYlJVnPFhZ /bSg== 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=GdUGLfzA/moIy9fqv00a3/N33TZrVkt63TobdJZyyCw=; b=PkIJlZsSRJYihuP/2eT0AX4SJsxWg47lBqtKP4xowKQqsgT3GmqAh6cpJl9NDEMHst H/InaChcBDcR//0r4mqlWyKogWcF8tE+heX5X9HhPmbsUlrCojyQD4yuc7EFAnz5CFCr XLk3If8Iqcqwyhl914y4L8APgYy5WRa6ZZInRC9Rw9au76sQYFbxxXBbX26LJL4izN7k 6xL1W8nlaCCENE3EJDQGUd+bN/T0H7t2d1hKTo7YAHG/H7te6/6wt+Le0yh+R4w9sF50 Gjdm6GfQpaI7+g/pDg1uyVWf1rUxceesaY0/W8nZ4ZVL0n/JAW8i5N5PHK3gvZwkDNrj SmTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f5uuo8d0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j47si23126812ede.117.2019.09.16.08.46.39; Mon, 16 Sep 2019 08:46:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=f5uuo8d0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2389437AbfIPPqf (ORCPT + 27 others); Mon, 16 Sep 2019 11:46:35 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42190 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389416AbfIPPqd (ORCPT ); Mon, 16 Sep 2019 11:46:33 -0400 Received: by mail-pl1-f196.google.com with SMTP id e5so54794pls.9 for ; Mon, 16 Sep 2019 08:46:33 -0700 (PDT) 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=GdUGLfzA/moIy9fqv00a3/N33TZrVkt63TobdJZyyCw=; b=f5uuo8d0Eac1oehzzno+gz4SgKXXXELEQr8OOsFMTlLzjQHG1qP3ca5oK34hNBEw5H 7icQx4hOYnguI4btVP/2f+R/WtV0vnb/qG0VhwifaUbNDTDOszAGraQSRNkHaZQhVLkN P7XHlajOs6MINTQpKI09MvV5s3l492Tsfp/9zd+XiRpjEQUhw4/8lM7+dVRBzVybGgxi 7j4qqkaQD1tL4tYSRER7C1iQoGhv1iAJNwaUlPwmGN9FUBtlzQ5j/5Ghc3kACrw/OOWX ASIo3Dta1rCyZrbDZCbcJ+CKCPa8VDN0zoQLut0m5YjxyW9Sur67vJOuLXTPbAwCEoPN +h1w== 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=GdUGLfzA/moIy9fqv00a3/N33TZrVkt63TobdJZyyCw=; b=sYesnWvKPI0NeKC+fVSnS9xDlhF21MjgYR1Min/v8rqkdRhfNfSRee/DyWelnGg6fJ E4YGqoXeRHFVgHfNInK9r5L0W1w6qbQYEjaQrhJWXJCRTCjM152nl1f3qCiLOryU1/8l g0RpRLR/OYa9AvfGiy0357Ra9H3/qBMTD5BDmt4zFWwkmFMXFdkhpcVcYAJJ64P3/QKf LYdSdg/RYgxU/I0IHXvuJ09NLTH/s+Fh0I8FfpoY0lbZAycMFckRGpi7arTVgePgZhEJ oi2R3vXBNZ45CjWPGjcyKJPq+OrkNV/JHHveuWYWErjIb5eQz7tp8uk6aLt087J1xK6Q LXtQ== X-Gm-Message-State: APjAAAWAfBg+1eakTVQqtO2oHEYSmWnMzwRzFYZGg/yXYmrznrJYIAjX CHgg4jip5kwkRee8AA9MT+4F X-Received: by 2002:a17:902:7401:: with SMTP id g1mr500851pll.20.1568648793095; Mon, 16 Sep 2019 08:46:33 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:90b:91ce:94c2:ef93:5bd:cfe8]) by smtp.gmail.com with ESMTPSA id s5sm36227670pfe.52.2019.09.16.08.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 08:46:32 -0700 (PDT) From: Manivannan Sadhasivam To: ulf.hansson@linaro.org, afaerber@suse.de, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.liau@actions-semi.com, linux-actions@lists.infradead.org, linus.walleij@linaro.org, linux-clk@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v4 3/7] arm64: dts: actions: Add MMC controller support for S900 Date: Mon, 16 Sep 2019 21:15:42 +0530 Message-Id: <20190916154546.24982-4-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190916154546.24982-1-manivannan.sadhasivam@linaro.org> References: <20190916154546.24982-1-manivannan.sadhasivam@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add MMC controller support for Actions Semi S900 SoC. There are 4 MMC controllers in this SoC which can be used for accessing SD/MMC/SDIO cards. Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/actions/s900.dtsi | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s900.dtsi b/arch/arm64/boot/dts/actions/s900.dtsi index df3a68a3ac97..eb35cf78ab73 100644 --- a/arch/arm64/boot/dts/actions/s900.dtsi +++ b/arch/arm64/boot/dts/actions/s900.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include @@ -284,5 +285,49 @@ dma-requests = <46>; clocks = <&cmu CLK_DMAC>; }; + + mmc0: mmc@e0330000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0330000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD0>; + resets = <&cmu RESET_SD0>; + dmas = <&dma 2>; + dma-names = "mmc"; + status = "disabled"; + }; + + mmc1: mmc@e0334000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0334000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD1>; + resets = <&cmu RESET_SD1>; + dmas = <&dma 3>; + dma-names = "mmc"; + status = "disabled"; + }; + + mmc2: mmc@e0338000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe0338000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD2>; + resets = <&cmu RESET_SD2>; + dmas = <&dma 4>; + dma-names = "mmc"; + status = "disabled"; + }; + + mmc3: mmc@e033c000 { + compatible = "actions,owl-mmc"; + reg = <0x0 0xe033c000 0x0 0x4000>; + interrupts = ; + clocks = <&cmu CLK_SD3>; + resets = <&cmu RESET_SD3>; + dmas = <&dma 46>; + dma-names = "mmc"; + status = "disabled"; + }; }; };