From patchwork Fri Oct 25 07:30:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 177671 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3282380ill; Fri, 25 Oct 2019 00:30:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1C3mQDERWmn61GZyaUOvvxEjMdi0HhZnudF+iwz36pJxp5AYew6xXA1MPHf29QGDifOMI X-Received: by 2002:a05:6402:68b:: with SMTP id f11mr2237328edy.173.1571988621272; Fri, 25 Oct 2019 00:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571988621; cv=none; d=google.com; s=arc-20160816; b=WScNVBgaEeHWsbKqc2qOgJSi7NWNsLv4wzNYZexBP6MjrPcIboFA4s7ic8xHC1Vqde 2aS6QFVaHCPcE4FnPu2KfxCA0d3+46KTLXPhwgLAY4I6SZPjYHUD78r6s7itLS4SZMqz moFCy5UDClj7xLNYRGIRQLEYYWcCf4uukWK0q8D5xc0nuQZyAcb7UVinqMXavKku4Eac nWbOFaaX0TuVPClcMHx0+g0fnV5pmUCcfWmesEDkmSzRPxJFlnWOLu3LnrhCZN4o2n/Z HbSByU1bzPfboMxaild4vBxie/9+Ue74X+AkoZjB00B2aQf9qMVP2nwJbAwMF/8fM8NQ vcBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3qESwgK0U+EAwQQL6PAX7MJ+aaVlzVEC8XOoAoFnNlo=; b=fEr/XZZrpAYPU1MPvRrfOGCseFousYkIx1Bp3/hNpeygBmRDNPjHX3KEb/HxZXBgfj 0AFxUWsDujIPV6aLxqoH1shVjDJ1z/Ne9PESL3lk/NQe0pR3k8GkTie8O0KBZRGPEJg4 /uVixuQFjSCopVgDtOPiymfbztiM2GRc2fB8sLmehkebKkxMyjx09HHZ1CzxSi2eA1I/ EXgG/a3GC0KK7Ww8E3/p/2DRbPzcomLLCOYCr2b/XorXbFEUi7BzeZR+D9ciyvDbSvFd cvHAsdiZAnyVmDKofLKewX+AgPUIQfKpBujIFze4mKcWQxNhK/SVETqBbXMmdUTrZt4T SFBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cAifdiSW; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i22si685595ejr.267.2019.10.25.00.30.20; Fri, 25 Oct 2019 00:30:21 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cAifdiSW; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437027AbfJYHaQ (ORCPT + 26 others); Fri, 25 Oct 2019 03:30:16 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:41786 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393149AbfJYHaD (ORCPT ); Fri, 25 Oct 2019 03:30:03 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9P7U13n083504; Fri, 25 Oct 2019 02:30:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571988601; bh=3qESwgK0U+EAwQQL6PAX7MJ+aaVlzVEC8XOoAoFnNlo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cAifdiSWMeUuttErMKa1KjLN/dVC0GXLvGV0SibL6sYDkZhMthGoSNTZk8WiXyNNk tUVDT8vDYnmfxXo2cQUxAYUEwWxggineOtpvg0CSQ3sOXUO2yhN43t9LW5kEs4tEMC VVA1pPos/fQ/T2V9kF354Md43jR/RxiB2+7Qpeu0= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9P7U0h9070088; Fri, 25 Oct 2019 02:30:00 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 25 Oct 2019 02:29:49 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 25 Oct 2019 02:29:59 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9P7Tr4H103329; Fri, 25 Oct 2019 02:29:58 -0500 From: Peter Ujfalusi To: , CC: , , , Subject: [PATCH v5 2/3] dt-bindings: dma: ti-edma: Document dma-channel-mask for EDMA Date: Fri, 25 Oct 2019 10:30:55 +0300 Message-ID: <20191025073056.25450-3-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191025073056.25450-1-peter.ujfalusi@ti.com> References: <20191025073056.25450-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similarly to paRAM slots, channels can be used by other cores. The common dma-channel-mask property can be used for specifying the available channels. Signed-off-by: Peter Ujfalusi Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/dma/ti-edma.txt | 8 ++++++++ 1 file changed, 8 insertions(+) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/dma/ti-edma.txt b/Documentation/devicetree/bindings/dma/ti-edma.txt index 4bbc94d829c8..0e1398f93aa2 100644 --- a/Documentation/devicetree/bindings/dma/ti-edma.txt +++ b/Documentation/devicetree/bindings/dma/ti-edma.txt @@ -42,6 +42,11 @@ Optional properties: - ti,edma-reserved-slot-ranges: PaRAM slot ranges which should not be used by the driver, they are allocated to be used by for example the DSP. See example. +- dma-channel-mask: Mask of usable channels. + Single uint32 for EDMA with 32 channels, array of two uint32 for + EDMA with 64 channels. See example and + Documentation/devicetree/bindings/dma/dma-common.yaml + ------------------------------------------------------------------------------ eDMA3 Transfer Controller @@ -91,6 +96,9 @@ edma: edma@49000000 { ti,edma-memcpy-channels = <20 21>; /* The following PaRAM slots are reserved: 35-44 and 100-109 */ ti,edma-reserved-slot-ranges = <35 10>, <100 10>; + /* The following channels are reserved: 35-44 */ + dma-channel-mask = <0xffffffff /* Channel 0-31 */ + 0xffffe007>; /* Channel 32-63 */ }; edma_tptc0: tptc@49800000 {