From patchwork Mon Aug 24 08:47:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 248173 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2392916ils; Mon, 24 Aug 2020 02:38:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8AdIm6kpOlr2AfalIAUCGchwBp/gLEDWJ8ci9BvSGgo1IOKtFQdlPCmeQ+VMwHqWVVHjN X-Received: by 2002:a17:906:d187:: with SMTP id c7mr4869868ejz.196.1598261890561; Mon, 24 Aug 2020 02:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598261890; cv=none; d=google.com; s=arc-20160816; b=nFqY5licLIMBbkElB2Usi/mbQCBvuAX9eoPfFEuwwjQNmZHsyv8vDg7w3/YO+SxRC0 fP2gKK8OYcsSeqGlhXVIiH5VeG2+aaTx9uEUa3gW4a7LjY94qSA+5sXr2DgUB3IeToVI xXGtoGA/vug4APzrKzeCCbAGuo3UrJvCQGDSs5yuVFwEBbdM7WbWcUuzYixrgEUJ29O5 5fBWXw2RyNR7xE1/AA44yd6pbPvxqoCpY564J9bo7L83jFuIMLYn0rMeghGTcmnFei89 oJzJsNXye0q4GhCL51pr9XnlxTZ3sInft/MXZp+PtHQm5/qUylFlQKl1bXQpAf8NxWq8 N6MA== 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=2eG7x3GgJeU6qCbiJcUYUECbrq4CMgakEMYvcx09u90=; b=VcudocnYrxRDJ4RFj+QyBYFlMJyMssSTP5H1nzT0GIA6erYWPJ3y0q7NAjgcItdTuS AOYIMX3dmq+z8p0NOd0tAlhIlXHMDTs/QsFB93EUmqgNHgDVMleoMs/ohBh0/izaIlBs KmI4CleUkfQbMP43wX8tvNzjKgFNv4xezLeEU7EhMHVvXmnXi5CwfSM+EZLXREwgJhAF YkH/Rmgh41mCbgvRaL2p3yu0cYcyL1hlGFVFKhnuAxNdghHWsdbIKsycyv8yGm3qN9rM hFmYJfd1s3pAmgktu/IMPeXGykp1WNMZQmhhxjLrYk7HwboHVOEzhVxyayCSa0LjrfL/ jb2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxkNnl6R; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 g22si6911930ejd.159.2020.08.24.02.38.10; Mon, 24 Aug 2020 02:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mxkNnl6R; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1729738AbgHXJiH (ORCPT + 15 others); Mon, 24 Aug 2020 05:38:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:47194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729460AbgHXIr0 (ORCPT ); Mon, 24 Aug 2020 04:47:26 -0400 Received: from localhost.localdomain (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C5324204FD; Mon, 24 Aug 2020 08:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598258845; bh=FrBso4fIdHgK+2J7oFtYR56l7zEdAlo1N90r7YDQ9WI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mxkNnl6RQL4MJs0VwWJz9u5g+UxyDb3kb1U7CqQb2TQi+dAvW29VIywXJmzdgrcmi f55874SPMco08TgiGledUdy4nNV8OW4/7PJPxlUzY9MNibPJxG76JuPOpaKJ8DZB1P ZVgHM67WAaNPD8jYCtLL9bHjCO5hW1ji8XYqfryg= From: Vinod Koul To: dmaengine@vger.kernel.org, Rob Herring Cc: Vinod Koul , Bjorn Andersson , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding Date: Mon, 24 Aug 2020 14:17:10 +0530 Message-Id: <20200824084712.2526079-2-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200824084712.2526079-1-vkoul@kernel.org> References: <20200824084712.2526079-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add devicetree binding documentation for GPI DMA controller implemented on Qualcomm SoCs Signed-off-by: Vinod Koul --- .../devicetree/bindings/dma/qcom-gpi.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/qcom-gpi.yaml -- 2.26.2 diff --git a/Documentation/devicetree/bindings/dma/qcom-gpi.yaml b/Documentation/devicetree/bindings/dma/qcom-gpi.yaml new file mode 100644 index 000000000000..c56d601ad2d6 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/qcom-gpi.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/gpi-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies Inc GPI DMA controller + +description: | + QCOM GPI DMA controller provides DMA capabilities for + peripheral buses such as I2C, UART, and SPI. + +maintainers: + - Vinod Koul + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + enum: + - qcom,gpi-dma + + reg: + maxItems: 1 + + interrupts: + description: + Interrupt lines for each GPII instance + maxItems: 14 + + qcom,max-num-gpii: + description: + Maximum number of GPII instances available + maxItems: 1 + + "#dma-cells": + const: 1 + + qcom,gpii-mask: + description: + Bitmap of supported GPII instances for OS + maxItems: 1 + + qcom,ev-factor: + description: + Event ring transfer size compare to channel transfer ring. Event + ring length = ev-factor * transfer ring size + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - qcom,max-num-gpii + - qcom,gpii-mask + - qcom,ev-factor + - "#dma-cells" + +unevaluatedProperties: false + +examples: + - | + #include + gpi_dma0: dma@800000 { + #dma-cells = <5>; + compatible = "qcom,gpi-dma"; + reg = <0 0x00800000 0 0x60000>; + qcom,max-num-gpii = <13>; + qcom,gpii-mask = <0xfa>; + qcom,ev-factor = <2>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + +...