From patchwork Mon Sep 30 11:40:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 174736 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp7007596ill; Mon, 30 Sep 2019 04:40:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOlwLXEgSbrTa6vQXjrMwI/jJHQ2Pdfl7e/NdRJzP7BpV/LZzLtnWwS4XNyRMoVugr3Zej X-Received: by 2002:a17:906:768f:: with SMTP id o15mr18555346ejm.42.1569843621920; Mon, 30 Sep 2019 04:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569843621; cv=none; d=google.com; s=arc-20160816; b=Nq6FmDBi5C7u7KSllYL8bLyHyqpy9YW6RWmrXXi4tGI44RAKtcHXJQPJyUQVCoZ5Yq PSQ8XYKg9LRKpyOwfTgpS9KuiiQRDn4T3Hq2mikYR9tH3SIbK5PXxJo0Z+TqYdAEpAN7 cWZpyjeMThPyvI4fAIYz4uwg59axC40Gvqe7RRm7NoiTVbd+m+lo5WvESUJrNYiWmjtA CptOG0IOGQMPEkOhUspx6CPIRU+RkXq+TW+GH7hrI2rllWZXBbOTitTo38O2AY6NkecZ g+BrxTHsL+wgxrBqkBifcBAJqTZ8AMFXlDUxTw06WaJzCMfGHSrC7lViNgUf+V9l36xE w0tA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lUB5WqJVTYD6E06Lxl92UVAjjafZqxtLBUngwkhtgEA=; b=aI50uDhGbj4Dyy3p4HDDtkZEXE4/sVmKA5dNJdcz3QtgFhCks3EedGewQHcTqxHmCX mISYmUssSRJ1LyAnD5OfnqCpYDpWslGWVaqjBQhqb1q6rEbxboAaXW+gIkGe4hgzBiiF p33Eg9CyChJiPfdgWz7PPo8gigYgi4hnklcFIHAEqqNZp73lXz2q+dYONFnU0IejxQae /0+/Is8x+3XpkLVprmh+j9C/rNNQRL58RDNvl97lQh7FkBymFlzNkLX+TQA4IRqyNsDO lmHox4vnwn6jLtJbQ78sIH9bKCYNqQ0N1dqXg444ezwpE/3oSaZKnvHeWDIFjcqLMgXc rBvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="D/jZla5v"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 f45si7103903edb.166.2019.09.30.04.40.21; Mon, 30 Sep 2019 04:40:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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="D/jZla5v"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727215AbfI3LkR (ORCPT + 8 others); Mon, 30 Sep 2019 07:40:17 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37756 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbfI3LkR (ORCPT ); Mon, 30 Sep 2019 07:40:17 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8UBeBHB090257; Mon, 30 Sep 2019 06:40:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569843611; bh=lUB5WqJVTYD6E06Lxl92UVAjjafZqxtLBUngwkhtgEA=; h=From:To:CC:Subject:Date; b=D/jZla5v1yKwJW+guOw4QjKXsCT8xPY2s2FaBlwoImzdqg5dl4Xd7zYqilowG5z5l 6iJwCuZQcOuX1VmAsM/3VBuL2sYHoeEfWcM3k11OnFb1jG4EYcgpVy/N2o3RNLnsLa lX0YjDkVsHxOECTRV5JxUFOsc3yZZmfHSCL7cDM0= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8UBeBOX013480 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Sep 2019 06:40:11 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 30 Sep 2019 06:40:01 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE100.ent.ti.com (157.170.170.30) 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; Mon, 30 Sep 2019 06:40:11 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8UBe8Xo096764; Mon, 30 Sep 2019 06:40:09 -0500 From: Peter Ujfalusi To: , CC: , , , Subject: [PATCH v4 0/3] dmaengine: bindings/edma: dma-channel-mask to array Date: Mon, 30 Sep 2019 14:40:52 +0300 Message-ID: <20190930114055.29315-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi, Changes since v3: - Update the dma-common.yaml and edma binding documentation according to Rob's suggestion Changes since v2: - Fix dma-common.yaml documentation patch and extend the description of the dma-channel-mask array - The edma documentation now includes information on the dma-channel-mask array size for EDMAs with 32 or 64 channels Changes since v1: - Extend the common dma-channel-mask to uint32-array to be usable for controllers with more than 32 channels - Use the dma-channel-mask instead custom property for available channels for EDMA. The original patch was part of the EDMA multicore usage series. Rob: I'm not sure if I got the dma-common.yaml update correctly... EDMAs can have 32 or 64 channels depending on the SoC, the dma-channel-mask needs to be an array to be usable for the driver. Regards, Peter --- Peter Ujfalusi (3): dt-bindings: dmaengine: dma-common: Change dma-channel-mask to uint32-array dt-bindings: dma: ti-edma: Document dma-channel-mask for EDMA dmaengine: ti: edma: Add support for handling reserved channels .../devicetree/bindings/dma/dma-common.yaml | 9 ++- .../devicetree/bindings/dma/ti-edma.txt | 8 +++ drivers/dma/ti/edma.c | 59 +++++++++++++++++-- 3 files changed, 69 insertions(+), 7 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Reviewed-by: Rob Herring Reviewed-by: Rob Herring