From patchwork Wed Oct 17 05:59:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Ma X-Patchwork-Id: 10644619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 88F10112B for ; Wed, 17 Oct 2018 06:26:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77DBE2A75A for ; Wed, 17 Oct 2018 06:26:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AB532A79C; Wed, 17 Oct 2018 06:26:55 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 E6F612A787 for ; Wed, 17 Oct 2018 06:26:54 +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=vx84JUioU6/GSRnVNHE+An7vlAbcJVU0EdcjQz6OY+g=; b=KTiBzu+OH5pPp7+eUGzY7FlQHU GegpqEMzGmiiL5YcEQqjK7hEoO5YKMM7/4b38MMt/YQZb9pbswtekg94pxoK4p40fjOI9oQgFLWHC 6tzlrqtStQ78+gP4690wUkJMyBaEHIGMwgjDBtxftcGKn8bYUYxsen54qDXV2F4qzqqrowJJOi+1c sf3a3x7eXe5Wu7fY8AMc9/ZjJvs7KRlzApgiy71H9hYM9G+hdorM8j4E9XLv19tMHQnnJfy4YYJqe MajsTDylbDhorWgfSHPptkaJDBk6e6DlIwtS/sNZdkjkD1wDGAcvG1kc1LXpsdWmIrnO0rkH7SmEq x1Dlpwnw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCfI9-00010W-0V; Wed, 17 Oct 2018 06:26:49 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCfEp-0006xg-H2 for linux-arm-kernel@bombadil.infradead.org; Wed, 17 Oct 2018 06:23:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Zrm+uDcJzOWTBkNqNVnuYxfcW2W0BLl5qnM7NaQlapQ=; b=Kug21+sW/HWgkW19iwVvroY9w 7P+V1NDSmgDMRjzJHi2FAi4myRCHRo+XsCo+KPItqd8rS9KKQ3FEOOhtXxoGvPX2BVTZY4lg/8Cei pZz8Zzjc451jzignsI71PxtRpRir0LEzHIGNgV4UrDij1JfGOVVpkPCWQl3qt6YUuXO3HEN1DLAa8 dUYoHvQhGA9DXCEhpymKnOArxPlMqic/m9pAwyoiZRE50BESiWJX+aOOVcOFdxx1vLg+2DNdd4lRf xjP3k1rB/3jXS4MUuaC1zYV1/NPvuj0DseDocARUFU9aCLP4NMMZPlFZ3PgE3t4vppNuqIBdb5pAY 4U3GqxOtQ==; Received: from inva021.nxp.com ([92.121.34.21]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCewi-0006fs-ME for linux-arm-kernel@lists.infradead.org; Wed, 17 Oct 2018 06:04:41 +0000 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0FE5A2001B9; Wed, 17 Oct 2018 08:03:59 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id B35282001B4; Wed, 17 Oct 2018 08:03:52 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id B220840294; Wed, 17 Oct 2018 14:03:44 +0800 (SGT) From: Peng Ma To: vkoul@kernel.org Subject: [v9 4/7] arm: dts: ls1021a: add qdma device tree nodes Date: Wed, 17 Oct 2018 13:59:54 +0800 Message-Id: <20181017055957.542-4-peng.ma@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20181017055957.542-1-peng.ma@nxp.com> References: <20181017055957.542-1-peng.ma@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181017_020440_902276_E9DBDF32 X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. 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: mark.rutland@arm.com, devicetree@vger.kernel.org, Wen He , linuxppc-dev@lists.ozlabs.org, Peng Ma , linux-kernel@vger.kernel.org, leoyang.li@nxp.com, zw@zh-kernel.org, robh+dt@kernel.org, dmaengine@vger.kernel.org, dan.j.williams@intel.com, shawnguo@kernel.org, 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 add the qDMA device tree nodes for LS1021A devices. Signed-off-by: Wen He Signed-off-by: Peng Ma --- change in v9: - add interrupts for each virtual block - add block-number - add block-offset arch/arm/boot/dts/ls1021a.dtsi | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index f184905..0b910e7 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -806,5 +806,25 @@ #size-cells = <1>; ranges = <0x0 0x0 0x10010000 0x10000>; }; + + qdma: dma-controller@8390000 { + compatible = "fsl,ls1021a-qdma"; + reg = <0x0 0x8388000 0x0 0x1000>, /* Controller regs */ + <0x0 0x8389000 0x0 0x1000>, /* Status regs */ + <0x0 0x838a000 0x0 0x2000>; /* Block regs */ + interrupts = , + , + ; + interrupt-names = "qdma-error", + "qdma-queue0", "qdma-queue1"; + dma-channels = <8>; + block-number = <1>; + block-offset = <0x1000>; + fsl,dma-queues = <2>; + status-sizes = <64>; + queue-sizes = <64 64>; + big-endian; + }; + }; };