Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3571452ybd; Tue, 25 Jun 2019 05:03:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYya1FG+BPIKSQOPRhcCWE2t5y5reL3+RQXh+Cx8T1PuV/hHb8B30vrktAeM9If+o0d7Fi X-Received: by 2002:a17:902:848b:: with SMTP id c11mr131522025plo.217.1561464190937; Tue, 25 Jun 2019 05:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561464190; cv=none; d=google.com; s=arc-20160816; b=d3ySsVOpdr4ASIB0+kO0Bpv3D2wZmQw4pMkrf8HMIuzp1mDWVHxJrUj7gneaZP95Aa yPQkAMXqfVCcXOxHNcrmhFbJ19iw6dtOWlt8c7n5cX3IJPVdbUDRH9gR2eXh9zErdsAe 5eyDWzOAf92A22vqfwtrl/63nFViWoo4adLcPtOs2nn9YbAVMkXLkV/O5Nsn8EtYWiS7 ezP7qdPHDDqvlCfXGn07H91ArsCaCEuPPDlcvhJADwMq6NG5ZekIENJC2E55ASERM6Qz CHvxQDvin/vuD+9DjskI4ziBT36xxwKzSrPVKya2vxisG0YGB/ANOv4PslMcsM4xSd4z iVfA== 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=Bz3KyNxniRKqBSTmYb+10kX2vb4veXH3emuoeO5B1k0=; b=gQkF/+noPgDptnJq9aEj7fTRvmmzRWkOYNg8LH8rDjhloYCgwmEUL/nlZNLu+G60Pe uw2wCDWUu7xIaqvY8ubswJ7RTfFRDeXkSQJFYd4gTwlgYKVfQlgKZAVORFAyEL4BaytS 7nq/M0x6vvotMTYRWA4GUe/e+2KtmhVajaxFJjhcAz9BlL3T3aWVQg7EtlLoKgTzqDcz D1FtTWG9ZsSId4ndUFnZensytomzWny8fCFBA4EFzK7O1YMXEXsBSWEWOSSINk9TerTi NGcXQVqUv2Ai9x3o1X1ltUVcJRSWkU5eXVJmUDfBLBK/zLXZKPGssOyY7V9Fu1M9wOAo 6dTQ== 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 y186si13306933pfy.212.2019.06.25.05.02.54; Tue, 25 Jun 2019 05:03:10 -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 S1731726AbfFYJmI (ORCPT + 99 others); Tue, 25 Jun 2019 05:42:08 -0400 Received: from inva020.nxp.com ([92.121.34.13]:34982 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731665AbfFYJlx (ORCPT ); Tue, 25 Jun 2019 05:41:53 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7700B1A0799; Tue, 25 Jun 2019 11:41:51 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1C1621A0798; Tue, 25 Jun 2019 11:41:44 +0200 (CEST) Received: from mega.ap.freescale.net (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 48884402FB; Tue, 25 Jun 2019 17:41:35 +0800 (SGT) From: yibin.gong@nxp.com To: robh@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, mark.rutland@arm.com, vkoul@kernel.org, dan.j.williams@intel.com, angelo@sysam.it Cc: linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH v5 4/6] dt-bindings: dma: fsl-edma: add new i.mx7ulp-edma Date: Tue, 25 Jun 2019 17:43:22 +0800 Message-Id: <20190625094324.19196-5-yibin.gong@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190625094324.19196-1-yibin.gong@nxp.com> References: <20190625094324.19196-1-yibin.gong@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 From: Robin Gong More channel interrupts, one more clock, and only one dmamux on i.mx7ulp-edma. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-edma.txt | 44 +++++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/fsl-edma.txt b/Documentation/devicetree/bindings/dma/fsl-edma.txt index 97e213e..29dd3cc 100644 --- a/Documentation/devicetree/bindings/dma/fsl-edma.txt +++ b/Documentation/devicetree/bindings/dma/fsl-edma.txt @@ -9,15 +9,16 @@ group, DMAMUX0 or DMAMUX1, but not both. Required properties: - compatible : - "fsl,vf610-edma" for eDMA used similar to that on Vybrid vf610 SoC + - "fsl,imx7ulp-edma" for eDMA2 used similar to that on i.mx7ulp - reg : Specifies base physical address(s) and size of the eDMA registers. The 1st region is eDMA control register's address and size. The 2nd and the 3rd regions are programmable channel multiplexing control register's address and size. - interrupts : A list of interrupt-specifiers, one for each entry in - interrupt-names. -- interrupt-names : Should contain: - "edma-tx" - the transmission interrupt - "edma-err" - the error interrupt + interrupt-names on vf610 similar SoC. But for i.mx7ulp per channel + per transmission interrupt, total 16 channel interrupt and 1 + error interrupt(located in the last), no interrupt-names list on + i.mx7ulp for clean on dts. - #dma-cells : Must be <2>. The 1st cell specifies the DMAMUX(0 for DMAMUX0 and 1 for DMAMUX1). Specific request source can only be multiplexed by specific channels @@ -28,6 +29,7 @@ Required properties: - clock-names : A list of channel group clock names. Should contain: "dmamux0" - clock name of mux0 group "dmamux1" - clock name of mux1 group + Note: No dmamux0 on i.mx7ulp, but another 'dma' clk added on i.mx7ulp. - clocks : A list of phandle and clock-specifier pairs, one for each entry in clock-names. @@ -35,6 +37,10 @@ Optional properties: - big-endian: If present registers and hardware scatter/gather descriptors of the eDMA are implemented in big endian mode, otherwise in little mode. +- interrupt-names : Should contain the below on vf610 similar SoC but not used + on i.mx7ulp similar SoC: + "edma-tx" - the transmission interrupt + "edma-err" - the error interrupt Examples: @@ -52,8 +58,36 @@ edma0: dma-controller@40018000 { clock-names = "dmamux0", "dmamux1"; clocks = <&clks VF610_CLK_DMAMUX0>, <&clks VF610_CLK_DMAMUX1>; -}; +}; /* vf610 */ +edma1: dma-controller@40080000 { + #dma-cells = <2>; + compatible = "fsl,imx7ulp-edma"; + reg = <0x40080000 0x2000>, + <0x40210000 0x1000>; + dma-channels = <32>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + /* last is eDMA2-ERR interrupt */ + ; + clock-names = "dma", "dmamux0"; + clocks = <&pcc2 IMX7ULP_CLK_DMA1>, + <&pcc2 IMX7ULP_CLK_DMA_MUX1>; +}; /* i.mx7ulp */ * DMA clients DMA client drivers that uses the DMA function must use the format described -- 2.7.4