Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4165914imd; Mon, 29 Oct 2018 19:41:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5eHA+/edIml0YQEZe5GYwREP/V9VWKHP/EOdcuTBkEGCjMDTgV9Yx/cL31Gf5LmsEox8VYW X-Received: by 2002:a17:902:bc8a:: with SMTP id bb10-v6mr16528163plb.99.1540867292498; Mon, 29 Oct 2018 19:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540867292; cv=none; d=google.com; s=arc-20160816; b=Cz7Hpjnqve2BHXR6HUNEp/YfMuMXlTfg5vfXdnrL3+FQ/pN4bETT/+ynbJMs/zc49H 6TTO/268OhaUE5bPnxkS5ajPj80nV60Tbrmx+cx/ko41szlDA8YizCtrTmAtj4412Ng7 DunhjOHBsESyNVb0LUJE1hj3dw+wTTJajIHd5S6yZw8JXLzSlYab4QxKnW+V+KxXPiLR fmDOVWCbv8REz4YOhLeedpj6LQOXkelsoka7W+VQvbjO0GQ2dBWGWeu3W74QAT6GRnDY J4l85IdOoP4Wuv5HGYRxUcGW9oFLwQOQwHdD5Q06D1cH1Msy9SQLkcGZKq1KzHM8d3a8 mdHA== 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; bh=4qvwDL7oZpCnEMO1us39Q0xuFxrIxMn4ECNGrbAkKtA=; b=w03QSBU7eXPSH9TGaMrjSufbxdXz8h9iTa07OmvjCSyIrcJLWarhGH/Npv0xvQNGu/ EF/oKb/7B+9fF0wyjl0gjg6BWnRY2BFvpqSvQICJOjOmBfxqUVzsuZZK5S//00Xi8Wfl 1SoXfWFwcVFHDjcx3/hG2eO3Ko9J/7Di2kCOT27xVcf/oyCpi7PhrLLayKuKTvyOuvzJ oeQZWcU+n2WBU/h2t2hPvLusi5jOifFkmh+I98S7mZICMJeDdiWaSjYBpDPuaW5JYrSY xjLywJe/K7v+aiMzMXZxm6rgLwFbcLNu6Ap2RsQO4K8AyQvIb5M3bc9032o102UQHT8T YzSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t124-v6si10466347pfc.262.2018.10.29.19.41.17; Mon, 29 Oct 2018 19:41:32 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbeJ3LcK (ORCPT + 99 others); Tue, 30 Oct 2018 07:32:10 -0400 Received: from inva021.nxp.com ([92.121.34.21]:40752 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbeJ3LcD (ORCPT ); Tue, 30 Oct 2018 07:32:03 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 42BAC20020F; Tue, 30 Oct 2018 03:40:29 +0100 (CET) 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 CDB3F20014E; Tue, 30 Oct 2018 03:40:22 +0100 (CET) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C80D440327; Tue, 30 Oct 2018 10:40:10 +0800 (SGT) From: Peng Ma To: vkoul@kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, dan.j.williams@intel.com, zw@zh-kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Peng Ma , Wen He Subject: [v11 7/7] dt-bindings: fsl-qdma: Add NXP Layerscpae qDMA controller bindings Date: Tue, 30 Oct 2018 10:36:04 +0800 Message-Id: <20181030023604.34027-7-peng.ma@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20181030023604.34027-1-peng.ma@nxp.com> References: <20181030023604.34027-1-peng.ma@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the devicetree bindings for NXP Layerscape qDMA controller which could be found on NXP QorIQ Layerscape SoCs. Signed-off-by: Wen He Signed-off-by: Peng Ma Reviewed-by: Rob Herring --- change in v11: - no Documentation/devicetree/bindings/dma/fsl-qdma.txt | 57 ++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/fsl-qdma.txt diff --git a/Documentation/devicetree/bindings/dma/fsl-qdma.txt b/Documentation/devicetree/bindings/dma/fsl-qdma.txt new file mode 100644 index 0000000..6a0ff90 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/fsl-qdma.txt @@ -0,0 +1,57 @@ +NXP Layerscape SoC qDMA Controller +================================== + +This device follows the generic DMA bindings defined in dma/dma.txt. + +Required properties: + +- compatible: Must be one of + "fsl,ls1021a-qdma": for LS1021A Board + "fsl,ls1043a-qdma": for ls1043A Board + "fsl,ls1046a-qdma": for ls1046A Board +- reg: Should contain the register's base address and length. +- interrupts: Should contain a reference to the interrupt used by this + device. +- interrupt-names: Should contain interrupt names: + "qdma-queue0": the block0 interrupt + "qdma-queue1": the block1 interrupt + "qdma-queue2": the block2 interrupt + "qdma-queue3": the block3 interrupt + "qdma-error": the error interrupt +- fsl,dma-queues: Should contain number of queues supported. +- dma-channels: Number of DMA channels supported +- block-number: the virtual block number +- block-offset: the offset of different virtual block +- status-sizes: status queue size of per virtual block +- queue-sizes: command queue size of per virtual block, the size number + based on queues + +Optional properties: + +- dma-channels: Number of DMA channels supported by the controller. +- big-endian: If present registers and hardware scatter/gather descriptors + of the qDMA are implemented in big endian mode, otherwise in little + mode. + +Examples: + + 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 = <2>; + block-offset = <0x1000>; + fsl,dma-queues = <2>; + status-sizes = <64>; + queue-sizes = <64 64>; + big-endian; + }; + +DMA clients must use the format described in dma/dma.txt file. -- 1.7.1