Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp391177ybg; Tue, 9 Jun 2020 03:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjJJkN357smfy9OIFQSZwXpG3tK4puD5RZGmGxt2CINGHb+hZT/seZCVrcPAkYfaKLECg9 X-Received: by 2002:a17:906:da02:: with SMTP id fi2mr25968783ejb.41.1591698175853; Tue, 09 Jun 2020 03:22:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591698175; cv=none; d=google.com; s=arc-20160816; b=uv0umzuNgz39X9AMkCS6s9bDAaAvCRxCR8Fey8EHjZtXbk1mSiCP61B0aduK/9smtx 9d/yfeF/JSB7rBlOUTlOsW+I+QgMgICGqUMCsfVN20pD4x80lntObV+zAuxQaI+rw1M+ ccQ8HA5JIiGjKlbbUbyt+mWqxLzJ27FtK1D25M8oZBeAOyiwpmXgM1t23oU0SdyCm70B R6mnRvo3hFdBvqFgK+ZfQSsfN5GIjn3V+tZy6cTqKWxS3ehteBVN4IVqPeHdgfA8ngXq 0VSUXBRJyeDkGZIoumPMZojwO/AB9Mgufou6UI9OUE0tQQNpA1Tym7HkhuqaA8KhG+Ka 6iaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=VwGuJZ2SH+okk9ABn43uTSotJJ51Z2CMuq/qQeoTEe4=; b=KiGIyngYNTJV4isi2VPLFEEY4NOKE/fRnX7tlNt3hZCuSA7rLdeOZioPyDDMA4BtTK 3aR0kUKtyB+gKf9Socrj1TYLsz/p6GD8kfWg6XcgRIEfOqRPuuAhc0wrBIoHeI+PCxws 1Ai5AWn8cT4MFK4PWtZuTE94gN+TYD7Zmja3PgtzZOIOICh5jDMpN6BJQGvX+Vlcan1F 0WWwWqnHKD65K8Q1OsHb1A5lvs6fn/++VRoA8lMuy0yTR4BG77kbVSN1oUqbXgHOxvgJ pkJ9y2LCey1CVhpeVVj897ggNSZpVYh1Qv7lgxH0722r1thPcnozKaDb9D1dlC9dQ7h2 s86A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pjhnNr4v; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si7232753edm.379.2020.06.09.03.22.33; Tue, 09 Jun 2020 03:22:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pjhnNr4v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728810AbgFIKTX (ORCPT + 99 others); Tue, 9 Jun 2020 06:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728676AbgFIKR5 (ORCPT ); Tue, 9 Jun 2020 06:17:57 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19B9FC03E97C; Tue, 9 Jun 2020 03:17:57 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id i12so1203712pju.3; Tue, 09 Jun 2020 03:17:57 -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=VwGuJZ2SH+okk9ABn43uTSotJJ51Z2CMuq/qQeoTEe4=; b=pjhnNr4vrnj6HYrJGX/WyRx8Ck+Yvq1V3yeairSuLeJmlRbV/5vmehtKGpXFXZHdPv qb67J9+elPBxQasYreEOTVLpQ2TuLkpIa2GVOnlzrmqcLVIBWb5SWnFhwR49Yz6z/fAW yZ8xfkImwJDOJzlV4iS9Hlo4Dl7LhuGWNcqbklKdM3kzfFe0lOChEXAA06W/mCYDTJbE TSRxIQCJ0onxfqaRGiAS8gM0zCkOx90noAs5AoWdUOX+UzEje01ALwSoTYtO+izX71ZL g8ZI/ct9Z2Uw+nzr/zRC2taxiHIV/wAoLdrPoE3IOu1ZYQ5Ww6cncMlE8PidJHSilAUc bXIQ== 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=VwGuJZ2SH+okk9ABn43uTSotJJ51Z2CMuq/qQeoTEe4=; b=Ku89sWkWpliorTRAGYuwdT7JTbUeK9CQB3fDfTt1kNkDnTtqDmU363x5cFEtXX3tOx Uf+YgtdVteSpUSOh4aP02H+znCvPc5KdMP0R9ip2XLZ1HS+b/7LLl5F3b/JwY3AEOQkO GV1x39puskNjl7tZzj9Oh/vvczT16RXjr92eAVx/+h4B1So0BPAQhoSCmSO4tjzgmTxl IcaH9XyvpuRBFU9OyCbgUvTvHT9ifQ6Bn/c/02fYP+m53hYLGcDV6gbC2nKiwZ3UDufm LUUb4vG0NRd1gi1JwafmQiHd2PuTF/1F7dYTayilWWo2dQe3AECb/RWUVdIymxmopNnU 799w== X-Gm-Message-State: AOAM531Nt5sRKFicGvYZwL/btaw7SOyxeEfxq4nwU2p0Y2DyuiBqRp0q LEgjrRV867WFpDPeD32wsjYOMjKDffQH3A== X-Received: by 2002:a17:902:aa4c:: with SMTP id c12mr2633454plr.280.1591697876517; Tue, 09 Jun 2020 03:17:56 -0700 (PDT) Received: from localhost.localdomain ([223.190.87.90]) by smtp.gmail.com with ESMTPSA id d189sm9637253pfc.51.2020.06.09.03.17.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2020 03:17:55 -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 Cc: dan.j.williams@intel.com, cristian.ciocaltea@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v4 05/10] dt-bindings: dmaengine: convert Actions Semi Owl SoCs bindings to yaml Date: Tue, 9 Jun 2020 15:47:05 +0530 Message-Id: <1591697830-16311-6-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> References: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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". Signed-off-by: Amit Singh Tomar --- 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. New patch, was not there in RFC. --- 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>; + }; + +... -- 2.7.4