Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4011931pxk; Tue, 29 Sep 2020 11:47:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwczHbP6L6YsnAbLznxrd10CjT9fa28JzjNgfDRcwPJGh0iKrF6Z6mLCUN1W1xlI0+NgZzX X-Received: by 2002:a50:fc0b:: with SMTP id i11mr4754965edr.164.1601405252613; Tue, 29 Sep 2020 11:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601405252; cv=none; d=google.com; s=arc-20160816; b=yyozahdppJetNzje5PAVZPNQFU1H4OvIbS1kmsUfpcyZ1SLJDgiCAgvXIwup67n0lA bdoz9JxGo7QKvCQM7ZcvMIAbYC6H2x+auRqXPg0NX2lWfy/RQY1r6x7M89Clg45yNTnL ocyxQq3UfZQIejSNXUvwCdhyCEUhiFLopErPcyXqozd0iAyIZPLltY+Kqs/FkyvUfXLd 32yYX0KeA1umfN7fl0ciAUbZP+8+3yUsuX0Qwg2zOO09olmMGrXmtCizikBP3Th25sOJ ujz6QpEKsKkbxbpUEcdE/+kBUPmaFDCRejtLQlOvnQLK51hFBZrq4h3mrXECgt1CasAl 5YaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nY9+4lqo0MEowM9x/sIa8yC+J2rLn2r05J1zX+4+m4s=; b=q1ls9UTl9VeZ2goNimA1JI7rLiZXEojh0sr5Oa4mEHKXJ8kRe3e1G8LzX6nEDN488G 44blkaPytcXfNx5txRYcfE2N3K+k2wLoUeZH8pEy6R8tRbhqPI4Eew74oENUrlKUJgei /H91P0wRv7sY7uIOYu/O9opbW69Trbd2e8EKznWSXBGHbfenXpO6wNpZqliisLiEpyxO FpHdx8497H+BMWpoaYGaYRjqHQQ/jh4sleU/2unFJfb4OVcpXdGfz4wt/rB3glVCRHta r0Es41qyEB9Bwm4ekkhkEMzMTJ8cmwcztiVXnWRRr0cMcqqWpeq4aq9IWOS3K1APZQS0 1NHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si3405779edm.539.2020.09.29.11.47.08; Tue, 29 Sep 2020 11:47:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728313AbgI2So1 (ORCPT + 99 others); Tue, 29 Sep 2020 14:44:27 -0400 Received: from mail-oo1-f66.google.com ([209.85.161.66]:37982 "EHLO mail-oo1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728166AbgI2So1 (ORCPT ); Tue, 29 Sep 2020 14:44:27 -0400 Received: by mail-oo1-f66.google.com with SMTP id r10so1542225oor.5; Tue, 29 Sep 2020 11:44:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nY9+4lqo0MEowM9x/sIa8yC+J2rLn2r05J1zX+4+m4s=; b=aQGDDNzbxJz6kJs4B5rEjz7c6L1ZXJJ/j6wLnid8JQpx6N5nkgsm+VMC/MFD/Dxuji vcWM5bQNkZQL+yvswZ87m6dK2nPz9IXWBFKVao1xqpZ5Zs23kz9jO9ACzQHbag7BGjBA kivhfTMxo2ugH3Tnqq6SXtj9ZoxenhxHHaATEv8EeIYCoEBKuEZfvXMi9CoBkKIXu5nY bHv9FpLrRWPkT6A8wvLhmu6ueEWH658XAd7Unyr5wUsLM6kgCsTa09lIpS8YZ+pMS6ta nFysqxc9M5+tsPU8ylVg4R8J9+yLx5OH/PyKMoinvgwmToMFmJmJ7iolqM9Y/24wqpAg 7g1Q== X-Gm-Message-State: AOAM5320QOcPIfVaMyyCf+XrarlA84PGCEzJ09TcCPGOn66ZbJZl6As9 VEcaZtXsIOecJZGAdYZ+FA== X-Received: by 2002:a4a:d80a:: with SMTP id f10mr5709037oov.76.1601405065955; Tue, 29 Sep 2020 11:44:25 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id f94sm1180147otb.29.2020.09.29.11.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 11:44:25 -0700 (PDT) Received: (nullmailer pid 940845 invoked by uid 1000); Tue, 29 Sep 2020 18:44:24 -0000 Date: Tue, 29 Sep 2020 13:44:24 -0500 From: Rob Herring To: Vinod Koul Cc: dmaengine@vger.kernel.org, Bjorn Andersson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Ujfalusi Subject: Re: [PATCH v3 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding Message-ID: <20200929184424.GA935309@bogus> References: <20200923063410.3431917-1-vkoul@kernel.org> <20200923063410.3431917-2-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923063410.3431917-2-vkoul@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 12:04:08PM +0530, Vinod Koul wrote: > Add devicetree binding documentation for GPI DMA controller > implemented on Qualcomm SoCs > > Signed-off-by: Vinod Koul > --- > .../devicetree/bindings/dma/qcom,gpi.yaml | 86 +++++++++++++++++++ > include/dt-bindings/dma/qcom-gpi.h | 11 +++ > 2 files changed, 97 insertions(+) > create mode 100644 Documentation/devicetree/bindings/dma/qcom,gpi.yaml > create mode 100644 include/dt-bindings/dma/qcom-gpi.h > > diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml > new file mode 100644 > index 000000000000..82f404bc8745 > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml > @@ -0,0 +1,86 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/qcom,gpi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies Inc GPI DMA controller > + > +maintainers: > + - Vinod Koul > + > +description: | > + QCOM GPI DMA controller provides DMA capabilities for > + peripheral buses such as I2C, UART, and SPI. > + > +allOf: > + - $ref: "dma-controller.yaml#" > + > +properties: > + compatible: > + enum: > + - qcom,gpi-dma Should be SoC specific. > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: > + Interrupt lines for each GPII instance GPII or GPI? > + maxItems: 13 > + > + "#dma-cells": > + const: 3 > + description: > > + DMA clients must use the format described in dma.txt, giving a phandle > + to the DMA controller plus the following 3 integer cells: > + - channel: if set to 0xffffffff, any available channel will be allocated > + for the client. Otherwise, the exact channel specified will be used. > + - seid: serial id of the client as defined in the SoC documentation. > + - client: type of the client as defined in dt-bindings/dma/qcom-gpi.h > + > + iommus: > + maxItems: 1 > + > + dma-channels: > + maxItems: 1 Not an array. Is there a maximum number of channels or 2^32 is valid? > + > + dma-channel-mask: > + maxItems: 1 So up to 32 channels? > + > +required: > + - compatible > + - reg > + - interrupts > + - "#dma-cells" > + - iommus > + - dma-channels > + - dma-channel-mask > + > +examples: > + - | > + #include > + #include > + gpi_dma0: dma-controller@800000 { > + compatible = "qcom,gpi-dma"; > + #dma-cells = <3>; > + reg = <0x00800000 0x60000>; > + iommus = <&apps_smmu 0x0016 0x0>; > + dma-channels = <13>; > + dma-channel-mask = <0xfa>; > + interrupts = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > +... > diff --git a/include/dt-bindings/dma/qcom-gpi.h b/include/dt-bindings/dma/qcom-gpi.h > new file mode 100644 > index 000000000000..71f79eb7614c > --- /dev/null > +++ b/include/dt-bindings/dma/qcom-gpi.h > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* Copyright (c) 2020, Linaro Ltd. */ > + > +#ifndef __DT_BINDINGS_DMA_QCOM_GPI_H__ > +#define __DT_BINDINGS_DMA_QCOM_GPI_H__ > + > +#define QCOM_GPI_SPI 1 > +#define QCOM_GPI_UART 2 > +#define QCOM_GPI_I2C 3 > + > +#endif /* __DT_BINDINGS_DMA_QCOM_GPI_H__ */ > -- > 2.26.2 >