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: 10202543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 452F860247 for ; Tue, 6 Feb 2018 09:30:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 419E228AF2 for ; Tue, 6 Feb 2018 09:30:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FFAD28B11; Tue, 6 Feb 2018 09:30:36 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 86F5B28AF2 for ; Tue, 6 Feb 2018 09:30:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5UY0VZPpCrlQCXBhO6nFbAeXpTlziKvr4UQhhWTEZpw=; b=B3XQHXTqG72Wx1VCISh0iQO5J7 qE6n8VwAgzoN6wgqRGO2YLaK4x2/mnyUCkbzDesG1nfiXar9719riQxP9XsbBfDb0KaKptNAFTbVi +MYoJBsU9TsWZtGsF7IDBD6dJFDH1u7qX9BJLphwPtbht0YKzbzWAyG+bqS7ydwa80wqcjKU7t3pN H/uiDO/Ni8/uw2pocm9OcEJHyx0rob72JNXGEgFZHZrgI52NTgNSNM1oc7CA3dlABQ7UfXNxvEtnZ mPyCvlKi9SfMa0IQ5pm/k+yTRrtXHt1EZ9FnentwZXF9D9VSVu77tE8v0Og/reYV31YnyxtbQz60a 5SV/Z8Uw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eizaB-0004O3-40; Tue, 06 Feb 2018 09:30:31 +0000 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eizYz-0001jQ-6j for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2018 09:29:21 +0000 Received: by mail-pg0-x244.google.com with SMTP id a11so567666pgu.13 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=ThzgMXOWlCLdPDXlZNH31nmGPzHr92wXQBWtEt+az5R/qVHFlYBHKvBvkdc8FRU5Sa WakQuMcNO53/cNY38ZEdjUl2dEFFSV6GtjFut7j2f/vkW8dxUXH012KculnMa9nIbTFE ViA90EUMUyQwzIUPzDpjSAkIHRGBBI5iH215dmJ3WtJsUaD7OKNx3YX+30Nf2wRw6nqx xnlEwELYhYbyA5D2/EwkqZ9l7fBcqIWhGj3R9chV4V/egSlwB/tCnOzp+WvSB2y3lQs3 7j7IfS61hXmY8/2Qofa9NZwAksdMMR+5x2U0zpR5CVxyEDH1XSfJeoWzwzKw4zo47oY6 vEJw== X-Gm-Message-State: APf1xPAQ+x2/g+J90zwGZ2YCYqsflwNxZ/6w3x8btSyNwwiaBOn3Q2T1 BeeyuGFGNcYb8iw2/JAeTC/7kw== X-Google-Smtp-Source: AH8x227ABwfQBWqQOkejH/ooeAV+MIvcrdG1UJCNT+LS/b9vRSyKMFneYJiBUChU08Oq/ezSHr08jA== 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 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@kernel.org, chunyan.zhang@spreadtrum.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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 {