From patchwork Thu Jul 2 14:52:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Tomer X-Patchwork-Id: 11639239 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EEDEE618 for ; Thu, 2 Jul 2020 15:03:35 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC81820737 for ; Thu, 2 Jul 2020 15:03:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZTtWF+r3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LbMz8O5H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC81820737 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PBO8sI9j82J5XFlV2Rrmx6YH1OPIpUpw7V5ClTAlDr0=; b=ZTtWF+r3fLUhQng3lSa/ghSFPM GtFMff6MTFcxWb97FtXjwwUXFaH0v3qbJ1z1sSJ4Y0gp6vcemnIoFHzDgKFp5SLuvppsefVAXuxYr TBLSx/WVLw7jOJYTBAB95HmDPAKRR/zAjN93QRehmnlKOpi3fX8HL7KQ+r59gC1SL921yqeBi7hoR qfL+6Rvx5fri+Pt3xwuuzXxlC5jeWIzUB1pUvA5dtc9hJmVIRq4/1UUYf4FxLwHUQ9qVAXtujpJoE ZRRxNcMezNDAhSvlf7qu5nGa62Bxz1tfxaYu6S1s0Sv+tKwzY4pmOiQL10tqCYMyf50xbRXbilGRw 3SZ/pQfQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr0iN-00057Y-9S; Thu, 02 Jul 2020 15:01:27 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jr0ab-0000v8-Vf; Thu, 02 Jul 2020 14:53:27 +0000 Received: by mail-pl1-x642.google.com with SMTP id s14so11403271plq.6; Thu, 02 Jul 2020 07:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NC3+g+Wp7nEZNJbZ9KZMkErAQDFKPvd+kjb0PM4Pigk=; b=LbMz8O5HRWKayvR/6n88vDQGNIfEp4nivLSQOv7MoMUq9upBFoj5AeSOyk4vbN/E7d x4bH9KVaI5HfIDDLTBX1wfwsc+AKrtuAnWq1sECNFst+en1gC7itqrUs0syfkhr4NatQ IFtDHD/PnMeXkpgPWBEImhslojAuaZEAOzQzp02umhCYpl3qsrUyIBusEj9Gk65xZXBZ 9zszspQMIsBYu2tCkCbaqxdL09iwCPENsN9n+mqE0Gnwv4Kho9CknaH1B6ZX+54ZQlO0 ZfzfbSYImL3HPhk5w8URC4gVC9E6wcQFMpSaFAXoJ0doK+ryCX62efz+PqTzJ9mi+SFS /QUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NC3+g+Wp7nEZNJbZ9KZMkErAQDFKPvd+kjb0PM4Pigk=; b=VNqsUDuKtz61PzK9/DfjDNQVCZVoP+e2bfODoM4im7wou+OntXdlKIThHl+q9oNkHb x+VErjsuxLxq5au3LGka+xAQK3AXbJ/JpUX1uId/orfjXdRxtBGf2tPhxAiFdRAPg34W 8LkbkuqllWAR3Zt07/vqXn0SgAHvlBCkiYRn+AtB+cvZZnvEv+rUWxLpFY3hgXdYT+a5 HnHTWEQ3KvSljvSX0I0KUJKMii7vSNuM3KeqCnh15KipF32qHt6gcITjQ26XQ3rHMfOi vOI7HKg2j17kqAOJNed5u9mT7NWtnOzuXbgsoGM+9OJS/p+Xd2reJkoZC+dMLGoTl8D5 +FTQ== X-Gm-Message-State: AOAM531wnRgspMCbbPhSExGnuNjJHb4bkMWyVm0cLhCPUwNsQvedmvyD DHubodBJJKzF0vXO/Kp/wsg= X-Google-Smtp-Source: ABdhPJw7vYKccSm3RBg56O/4LcCsCPh5/mP5yuIfAvArgjmj/BZrhjsAOWXVstMhp4jYpr5IVu6/hQ== X-Received: by 2002:a17:902:6ac1:: with SMTP id i1mr27920165plt.147.1593701603800; Thu, 02 Jul 2020 07:53:23 -0700 (PDT) Received: from localhost.localdomain ([223.190.0.253]) by smtp.gmail.com with ESMTPSA id 204sm9487891pfc.18.2020.07.02.07.53.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 07:53:23 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, vkoul@kernel.org, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Subject: [PATCH v5 01/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml Date: Thu, 2 Jul 2020 20:22:47 +0530 Message-Id: <1593701576-28580-2-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> References: <1593701576-28580-1-git-send-email-amittomer25@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200702_105326_182704_FCF7F8EB X-CRM114-Status: GOOD ( 18.30 ) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:642 listed in] [list.dnswl.org] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [amittomer25[at]gmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [amittomer25[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org, cristian.ciocaltea@gmail.com, dan.j.williams@intel.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Converts the device tree bindings for the Actions Semi Owl SoCs DMA Controller over to YAML schemas. It also adds new compatible string "actions,s700-dma". Reviewed-by: Rob Herring Signed-off-by: Amit Singh Tomar --- Changes since v4: * Added Rob's Reviewed-by tag. * Re-order it from 05/10 to 01/10. Changes since v3: * No change. Changes since v2: * Addressed Rob's comments: - removed unnecessary description. - added unevaluatedProperties - added relevant information about dma-channels and dma-request * Added power-domain property. Change since v1: * Updated the description field to reflect only the necessary information. * replaced the maxItems field with description for each controller attribute(except interrupts). * Replaced the clock macro with number to keep the example as independent as possible. --- Documentation/devicetree/bindings/dma/owl-dma.txt | 47 ------------- Documentation/devicetree/bindings/dma/owl-dma.yaml | 79 ++++++++++++++++++++++ 2 files changed, 79 insertions(+), 47 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/owl-dma.txt create mode 100644 Documentation/devicetree/bindings/dma/owl-dma.yaml diff --git a/Documentation/devicetree/bindings/dma/owl-dma.txt b/Documentation/devicetree/bindings/dma/owl-dma.txt deleted file mode 100644 index 03e9bb12b75f..000000000000 --- a/Documentation/devicetree/bindings/dma/owl-dma.txt +++ /dev/null @@ -1,47 +0,0 @@ -* Actions Semi Owl SoCs DMA controller - -This binding follows the generic DMA bindings defined in dma.txt. - -Required properties: -- compatible: Should be "actions,s900-dma". -- reg: Should contain DMA registers location and length. -- interrupts: Should contain 4 interrupts shared by all channel. -- #dma-cells: Must be <1>. Used to represent the number of integer - cells in the dmas property of client device. -- dma-channels: Physical channels supported. -- dma-requests: Number of DMA request signals supported by the controller. - Refer to Documentation/devicetree/bindings/dma/dma.txt -- clocks: Phandle and Specifier of the clock feeding the DMA controller. - -Example: - -Controller: - dma: dma-controller@e0260000 { - compatible = "actions,s900-dma"; - reg = <0x0 0xe0260000 0x0 0x1000>; - interrupts = , - , - , - ; - #dma-cells = <1>; - dma-channels = <12>; - dma-requests = <46>; - clocks = <&clock CLK_DMAC>; - }; - -Client: - -DMA clients connected to the Actions Semi Owl SoCs DMA controller must -use the format described in the dma.txt file, using a two-cell specifier -for each channel. - -The two cells in order are: -1. A phandle pointing to the DMA controller. -2. The channel id. - -uart5: serial@e012a000 { - ... - dma-names = "tx", "rx"; - dmas = <&dma 26>, <&dma 27>; - ... -}; diff --git a/Documentation/devicetree/bindings/dma/owl-dma.yaml b/Documentation/devicetree/bindings/dma/owl-dma.yaml new file mode 100644 index 000000000000..5577cd910781 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/owl-dma.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/owl-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi Owl SoCs DMA controller + +description: | + The OWL DMA is a general-purpose direct memory access controller capable of + supporting 10 and 12 independent DMA channels for S700 and S900 SoCs + respectively. + +maintainers: + - Manivannan Sadhasivam + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + enum: + - actions,s900-dma + - actions,s700-dma + + reg: + maxItems: 1 + + interrupts: + description: + controller supports 4 interrupts, which are freely assignable to the + DMA channels. + maxItems: 4 + + "#dma-cells": + const: 1 + + dma-channels: + maximum: 12 + + dma-requests: + maximum: 46 + + clocks: + maxItems: 1 + description: + Phandle and Specifier of the clock feeding the DMA controller. + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + - dma-channels + - dma-requests + - clocks + +unevaluatedProperties: false + +examples: + - | + #include + dma: dma-controller@e0260000 { + compatible = "actions,s900-dma"; + reg = <0x0 0xe0260000 0x0 0x1000>; + interrupts = , + , + , + ; + #dma-cells = <1>; + dma-channels = <12>; + dma-requests = <46>; + clocks = <&clock 22>; + }; + +...