From patchwork Tue Feb 6 09:28:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 126963 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2740880ljc; Tue, 6 Feb 2018 01:29:37 -0800 (PST) X-Google-Smtp-Source: AH8x224e7NccVGQnDXMtUSihmW7DwYh1x7VpJNvphbWOiQlvhWAiJWc2gkC8hPnrFlKGYI5uKA1V X-Received: by 2002:a17:902:b496:: with SMTP id y22-v6mr1769151plr.206.1517909377311; Tue, 06 Feb 2018 01:29:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909377; cv=none; d=google.com; s=arc-20160816; b=u7c4G61oC79bcIAh2TEFPOghkDSugPxu7IUFsjDxSUtNaK8aOsCAJJkScKlHV9A+h4 5zf7c/LmHgwTNcTYi39IWUyHuIO6HEQhj5DrP1jCE2LlsMYDic+o473Mq5fP++JbADQL KsyOrDIgeC4CMFAh1RBQsQRUuheCKoRLvFm9Q5S6OKm576BSnt6L2XC9X0ybO6MaYAJe SugkwDOiHMO3/v5xxaicg1YaBooibMZfMuY2JTjGGOwxwqgIxSg2stLeNsBL4+E7kJkF RqTXLcklUFdDv59cqrj9gqXKOIIGeKRHGgWv3P/iFJGkDhFAVho0g7eqrkYB0V0HNPKi o/yQ== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=CTyHU0fVj/1nZOemybwRKCXvwbuZHj5sAv3/ZgJAycs=; b=AgUkln2RPBMyv+ZHYysJ6chwWoTUMzKTDWRwhSi1HmW7IZ3mVj3tG7JgXRdICcKX7M Udq+76aBaElwxdoxZZcoTz7XM9UtUrVqFwHUUtdbkkGBzO6oapfOg8107n6mTGoBBvj/ TAjinZPrpq/Yr8in0IdcPeHIWJMhBKdC4990AB2n7wA/wPcr44gtZGOzeGSzu6dE+nFd Z3i4hF0YSusIQfn+zXq+sN+863oGEK6SK9jGUAfNeN8ynBx3K7RFbJ6JTto1n65urrek UvbOAbzrMwuwKJZ+5NL7Sp+t3/28YwVc7iFoRqSwpw7f3S0cBxwIufC0U5Lfv9JWz4uy I6nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i+7ayQjn; 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=fail (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 s127si4058748pfc.215.2018.02.06.01.29.37; Tue, 06 Feb 2018 01:29:37 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i+7ayQjn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752760AbeBFJ3f (ORCPT + 6 others); Tue, 6 Feb 2018 04:29:35 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37097 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752335AbeBFJ3G (ORCPT ); Tue, 6 Feb 2018 04:29:06 -0500 Received: by mail-pg0-f65.google.com with SMTP id o1so865038pgn.4 for ; Tue, 06 Feb 2018 01:29:06 -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 :in-reply-to:references; bh=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=i+7ayQjnTb8tIhSQdiIt7pYp46AMu0WhjBhu2k5rU/EK0Ubz4i6PoKpyk2sIynFD27 DTMkY5wMuGMvcZ8KVsZBs6m5a196qobCwFxh7uydhLoDK92QJK66b7n4egZ4Z5MPkrIH PJftfjIrItbQ372gr+dSeSyl7Y59eEpXtkUcI= 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:in-reply-to:references; bh=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=TjcpzcANCbeR44YaCSrsFMXE7kUGbInN01usNh4ijjByJn3pwh2ktCwEtgZje7bB+r R83BwJ9+xhzXwkBwQ+/dMvoihk8F4c8RvTbzQsO+cwewlTtbAWPkKe9SU6SXydpGAbN2 +RHWs16vA7wcJ1WrI/4uO+4s0DkpqRm5Qp+lT5ziAJfiF92tHRnmWKUkFpf6G5x+oKNs 9CqZrUP4VvbkZKKRZbPRjTO1B9RI+SDPtbu3KbeAWjbZ0iOhR8TZF8KxDX66Iog4Q1DK /LBHiFDuKJRczAjuRj8ea6cMQvVq6P1zWKF0hc42DrnjHSexFn5D9e84Lk1KIGzDNfjH 2r6A== X-Gm-Message-State: APf1xPCCskQyuL5dndC/uzF682HzDN+xYaEPjy4uDewY4H+Fk8NqNh7k HaAIXJrg4cJxToLhVnTJsUZkZg== X-Received: by 10.101.69.67 with SMTP id x3mr1463924pgr.69.1517909346476; Tue, 06 Feb 2018 01:29:06 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t16sm18618429pfh.131.2018.02.06.01.29.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 01:29:05 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de Cc: chunyan.zhang@spreadtrum.com, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 6/7] arm64: dts: Add DMA device node for Spreadtrum SC9860 Date: Tue, 6 Feb 2018 17:28:25 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Spreadtrum SC9860 platform has two DMA controllers, one is located on the ap-ahb system, and another one is located on the agcp system. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index f2cdf4d..66a881e 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -107,6 +107,23 @@ }; }; + ap-ahb { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ap_dma: dma-controller@20100000 { + compatible = "sprd,sc9860-dma"; + reg = <0 0x20100000 0 0x4000>; + interrupts = ; + #dma-cells = <1>; + #dma-channels = <32>; + clock-names = "enable"; + clocks = <&apahb_gate CLK_DMA_EB>; + }; + }; + aon { compatible = "simple-bus"; #address-cells = <2>; @@ -151,6 +168,23 @@ clocks = <&aon_gate CLK_APCPU_WDG_EB>; }; }; + + agcp { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + agcp_dma: dma-controller@41580000 { + compatible = "sprd,sc9860-dma"; + reg = <0 0x41580000 0 0x4000>; + #dma-cells = <1>; + #dma-channels = <32>; + clock-names = "enable", "ashb_eb"; + clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>, + <&agcp_gate CLK_AGCP_AP_ASHB_EB>; + }; + }; }; ext_32k: ext_32k {