From patchwork Wed Feb 28 10:47:09 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: 129940 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872963lja; Wed, 28 Feb 2018 02:48:23 -0800 (PST) X-Google-Smtp-Source: AG47ELsbeHUqBfYKpHF+rA6t3aISrgh2RyDTTZLfjBnxc+iEB/awrzFqAcrsxCNuKQdEfzLbUJpj X-Received: by 2002:a17:902:467:: with SMTP id 94-v6mr2336668ple.57.1519814903220; Wed, 28 Feb 2018 02:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814903; cv=none; d=google.com; s=arc-20160816; b=OadDPG9xEpzJy7DPaBxtwjSmPVzvDBwfuUAiVfV6+Pi26c/PlFS9u0Ry5l/92EOEqZ awiMF8iua1CfqtsyTS9BsUKaXOl9qS9Bq4AeogOJUUnXXfe1ffnl/YCHTni9hX3e61ya c2+OT+ANNr21KIxstukYpb/6suEtjWrNJck2UfzPUxFhrLqPqOWB06bu2UGDTZR5Cz5P agqTXLhr53JFqDZQnDOyHjx+b1eN4fIqaurK/XtcPFD/HFZ/EuA7TkH5UoZwr2ogZ6GY 4HzafGlHiNrJ5xnWgXuovGEPUR8duebhQkPVcc4r0U1IitCvqY8pLH9QP9QSlPS8TGvO ohOQ== 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=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=linkecfH8jVNXmzivbjcaQEthHt8nlNMGy7xppgghKO5GDU9TBcQoWdgscD6esoT2I Juh+bnxXrWhXc5QiMxlaJGCQ+deaBDCnet0UOnO8uzoBvi8E+Ksh+mLBrkEDlVFL/EBE zvQjJ3DpOUyY+5DM2+Ye0n1AVBzBmsi4XxtLgP6ALyAJ34Iaa1aICYxOHrNGD3GMY4OU 1/wL+rRv3ErAx2QIXqNFXF2RzLOAv0KX8nqQkOVzWg0vJ3Sj0fXQZ2ZAxMrAW7OSXMpM AlRVK/kEHIRWFno6hs6fLj/Jj6ai9QpDcpPE1ReFiZoLHNOSOfelV/Pl11hmxmrE60Ma hhWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4nDmYj8; 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 m10si872359pgs.523.2018.02.28.02.48.22; Wed, 28 Feb 2018 02:48:23 -0800 (PST) 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=U4nDmYj8; 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 S932190AbeB1KsS (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:18 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38234 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932145AbeB1KsN (ORCPT ); Wed, 28 Feb 2018 05:48:13 -0500 Received: by mail-pg0-f65.google.com with SMTP id l24so793924pgc.5 for ; Wed, 28 Feb 2018 02:48:13 -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=U4nDmYj8xpJLf7vfeaA8dXvElB37z7NhH+ZGrHIkdy/vYXOaDFuCS0uKvpx2QXCqsJ pS5+pB3HpAVl0FghcEuclvXiJDSEPDiL5/o+Mp2C8RCtHkiIb+1Z/tu5NUCA3Qgg/G6N OoJKm3pWs1vuToRigNWAzSd1w7NMuyEV+Hl48= 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=sX9u/9qBWk+7QVUdNTvz6YT7f7b8dd20cYG614els39OlWlggs+4K5fnVsDJdqmrjQ 9BNH4U+is7YApfi2N0jq9QaAUpoXiqiXNd+K0JAG5Rjy/Sy1CGmsult7rxrX1RTy0K0c 7xvnau3zzncfIc5TCIMUxf13PDfH/CNzfImqJXLmorxdL4wFSSZiOtcq7hcBUZDpvxKC mPfbDqLEsium1yuOzx17I3STfvhUkuOczKT5jGZGcfO3PiweAYJI84iYTBTondWmkd5D 3UOEYMlHZFTs8R6UXJS8Kl1m78IgezZnyPSUCs8MYulJF5k8BnbGXH6cbaobtxggtR+C nplA== X-Gm-Message-State: APf1xPAf7Q+xsDxTk9EcpnVfQc3c4XFk/vcHSy9tA6yGkxpm3ecrMY+T bYx/fTx/s4Vl+LfF0SUWQjLiFw== X-Received: by 10.99.56.83 with SMTP id h19mr9772056pgn.230.1519814892607; Wed, 28 Feb 2018 02:48:12 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm3636129pfi.8.2018.02.28.02.48.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:48:12 -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@linaro.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [RESEND PATCH 6/7] arm64: dts: Add DMA device node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:09 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> References: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> In-Reply-To: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> References: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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 {