Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2632240pxu; Mon, 7 Dec 2020 11:16:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtkarjlpf+gQh8fyBWRFN625jGWf/M9n08EOtlhLK9pgeCDEscMsgGCc07/FUAnF9ZtaXk X-Received: by 2002:a50:9f4e:: with SMTP id b72mr21458054edf.200.1607368617721; Mon, 07 Dec 2020 11:16:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607368617; cv=none; d=google.com; s=arc-20160816; b=bfB+HgutS7F/BhyJO4t6hvPZAtuagcMhpw9sxpUb15VQRLZyzXnIssEMLadbQIt5O5 PffB6Xvd6M1gpA4NRDIuFGs1at7PmZvJGZ8YuVXO7vnU9kocRmY7wemz2C4Z/4dPWiGG VmOnecnO45lA8WyHjKcm5GbzmHJG78Eb4zVYVTF8IZUsdlxIyPLnXGg0GoWzSstarmg5 hkfsZHbMdwNqf43mKxUytdU7PGytWcg4oNHr1HELxytNAHlAeW6jxYjh/CjBpOGSRg7B CqHKybnUJlEUjd7YBrRkvvrMXEN0OB5FjEyVtaa5lS/Tqn2jo/K61/AZfybuRCNvRETG mjcQ== 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=8SHydtJy4B3UMw3R1X7HeF54ElAdK6mKxbhCrnomd5Q=; b=EbyLz60Q/Ft+DM3jy+HXknsHuFdMpIioCLRj+MJSA9OzcYODShzQN7Zrf7CioLooPT sDO5C7UIHHULl7OnhB+ONhYOlYfijTVQam3bJiysiuVh0XFaCaJoTEDYic7kCcFuva4F eN1EMVTAa4Ez/spsLVwE75Sn7HY17VKRvWl+nKyF5HD0KzOmi01AtoTB/pCS/qqLeTP4 6Dh1rwxVgPrQQ3riJlbS3sxRvJqh2twV/O142I9Yr9NpkOm5QiM/RjKFXCntavDKUvd8 cLXqnH4Z3sGQKuUWE21tnYvC92xvlxXvpzptbPWHEc5t7V/YDUElDLa3mUNUNBk11J0/ cNkg== 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 z10si9758826edp.346.2020.12.07.11.16.29; Mon, 07 Dec 2020 11:16:57 -0800 (PST) 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 S1726630AbgLGTNG (ORCPT + 99 others); Mon, 7 Dec 2020 14:13:06 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:39296 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbgLGTNG (ORCPT ); Mon, 7 Dec 2020 14:13:06 -0500 Received: by mail-oi1-f195.google.com with SMTP id v85so6045707oia.6; Mon, 07 Dec 2020 11:12:49 -0800 (PST) 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=8SHydtJy4B3UMw3R1X7HeF54ElAdK6mKxbhCrnomd5Q=; b=kf4DjB58l02T7qrDiBCoWVZ3IiINYjISsLT0HOceyJ7ObkuNgINW6BIOMfytlgWYhe a8f+G5SfgqYws2Gqk6yjBJTPeyvpBWfUC/jPMvxI3K+eGUDTVfKvAeQqsTRHYowSlPme kUlT7dXyX8Wy5vdyFS9GyP5R4Qd9QJJwL68erDx8vAeDs9ZnIuJI7ctCCA3C3GRn2iP9 xuP/S8tTOUhQbEbyoEqsRrq8hyL1VPVhTHmDFYJtW+ru6PkZPs0ZVBVMt3CGU5m88PEB qXF3S61ZJ1N9OOi7dKEWwp1deCt+lYwo0O/36Pk0k0HtfVJIwot26I/3PEGBmVvDC1GF qiFw== X-Gm-Message-State: AOAM532QSK5EI12Dd7hc236KRQa7GvlYPbpbqEdbE+fak/PDbdSwFVp0 +JWKCpLfpWeWNMNX05Y1Gw== X-Received: by 2002:aca:5291:: with SMTP id g139mr229980oib.63.1607368344472; Mon, 07 Dec 2020 11:12:24 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z14sm476443oot.5.2020.12.07.11.12.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 11:12:23 -0800 (PST) Received: (nullmailer pid 643080 invoked by uid 1000); Mon, 07 Dec 2020 19:12:22 -0000 Date: Mon, 7 Dec 2020 13:12:22 -0600 From: Rob Herring To: Jonathan McDowell Cc: Vinod Koul , Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: dmaengine: Convert Qualcomm ADM bindings to yaml Message-ID: <20201207191222.GA629533@robh.at.kernel.org> References: <20201115181242.GA30004@earth.li> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201115181242.GA30004@earth.li> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2020 at 06:12:42PM +0000, Jonathan McDowell wrote: > Converts the device tree bindings for the Qualcomm Application Data > Mover (ADM) DMA controller over to YAML schemas. > > Signed-off-by: Jonathan McDowell > --- > .../devicetree/bindings/dma/qcom,adm.yaml | 102 ++++++++++++++++++ > .../devicetree/bindings/dma/qcom_adm.txt | 61 ----------- > 2 files changed, 102 insertions(+), 61 deletions(-) > create mode 100644 Documentation/devicetree/bindings/dma/qcom,adm.yaml > delete mode 100644 Documentation/devicetree/bindings/dma/qcom_adm.txt > > diff --git a/Documentation/devicetree/bindings/dma/qcom,adm.yaml b/Documentation/devicetree/bindings/dma/qcom,adm.yaml > new file mode 100644 > index 000000000000..353d85d3326d > --- /dev/null > +++ b/Documentation/devicetree/bindings/dma/qcom,adm.yaml > @@ -0,0 +1,102 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/dma/qcom,adm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: QCOM ADM DMA Controller > + > +maintainers: > + - Jonathan McDowell > + > +description: | > + QCOM Application Data Mover (ADM) DMA controller found in the MSM8x60 > + and IPQ/APQ8064 platforms. > + > +properties: > + compatible: > + oneOf: > + - const: qcom,adm Needs SoC specific compatible(s). > + > + reg: > + maxItems: 1 > + description: > + Address range for DMA registers Drop description. Doesn't really add anything specific to this binding. > + > + interrupts: > + maxItems: 1 > + description: > + Should contain one interrupt shared by all channels Drop. > + > + "#dma-cells": > + const: 2 > + description: > + First cell denotes the channel number. Second cell denotes CRCI > + (client rate control interface) flow control assignment. If no > + flow control is required, use 0. > + > + clocks: > + maxItems: 2 > + description: > + Should contain the core clock and interface clock. > + > + clock-names: > + items: > + - const: core > + - const: iface > + > + resets: > + maxItems: 4 > + description: > + Must contain an entry for each entry in reset names. > + > + reset-names: > + items: > + - const: clk > + - const: c0 > + - const: c1 > + - const: c2 > + > + qcom,ee: > + maxItems: 1 maxItems is for arrays and this is a scalar. > + description: > + Indicates the security domain identifier used in the secure world. How do I get 'ee' from this? Is this something other QCom blocks need? > + $ref: /schemas/types.yaml#/definitions/uint32 > + > +required: > + - "#dma-cells" > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - qcom,ee > + - resets > + - reset-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + adm_dma: dma@18300000 { Drop unused labels. > + compatible = "qcom,adm"; > + reg = <0x18300000 0x100000>; > + interrupts = ; > + #dma-cells = <2>; > + > + clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>; > + clock-names = "core", "iface"; > + > + resets = <&gcc ADM0_RESET>, > + <&gcc ADM0_C0_RESET>, > + <&gcc ADM0_C1_RESET>, > + <&gcc ADM0_C2_RESET>; > + reset-names = "clk", "c0", "c1", "c2"; > + qcom,ee = <0>; > + }; > + > +... > diff --git a/Documentation/devicetree/bindings/dma/qcom_adm.txt b/Documentation/devicetree/bindings/dma/qcom_adm.txt > deleted file mode 100644 > index 9d3b2f917b7b..000000000000 > --- a/Documentation/devicetree/bindings/dma/qcom_adm.txt > +++ /dev/null > @@ -1,61 +0,0 @@ > -QCOM ADM DMA Controller > - > -Required properties: > -- compatible: must contain "qcom,adm" for IPQ/APQ8064 and MSM8960 > -- reg: Address range for DMA registers > -- interrupts: Should contain one interrupt shared by all channels > -- #dma-cells: must be <2>. First cell denotes the channel number. Second cell > - denotes CRCI (client rate control interface) flow control assignment. > -- clocks: Should contain the core clock and interface clock. > -- clock-names: Must contain "core" for the core clock and "iface" for the > - interface clock. > -- resets: Must contain an entry for each entry in reset names. > -- reset-names: Must include the following entries: > - - clk > - - c0 > - - c1 > - - c2 > -- qcom,ee: indicates the security domain identifier used in the secure world. > - > -Example: > - adm_dma: dma@18300000 { > - compatible = "qcom,adm"; > - reg = <0x18300000 0x100000>; > - interrupts = <0 170 0>; > - #dma-cells = <2>; > - > - clocks = <&gcc ADM0_CLK>, <&gcc ADM0_PBUS_CLK>; > - clock-names = "core", "iface"; > - > - resets = <&gcc ADM0_RESET>, > - <&gcc ADM0_C0_RESET>, > - <&gcc ADM0_C1_RESET>, > - <&gcc ADM0_C2_RESET>; > - reset-names = "clk", "c0", "c1", "c2"; > - qcom,ee = <0>; > - }; > - > -DMA clients must use the format descripted in the dma.txt file, using a three > -cell specifier for each channel. > - > -Each dmas request consists of 3 cells: > - 1. phandle pointing to the DMA controller > - 2. channel number > - 3. CRCI assignment, if applicable. If no CRCI flow control is required, use 0. > - The CRCI is used for flow control. It identifies the peripheral device that > - is the source/destination for the transferred data. > - > -Example: > - > - spi4: spi@1a280000 { > - spi-max-frequency = <50000000>; > - > - pinctrl-0 = <&spi_pins>; > - pinctrl-names = "default"; > - > - cs-gpios = <&qcom_pinmux 20 0>; > - > - dmas = <&adm_dma 6 9>, > - <&adm_dma 5 10>; > - dma-names = "rx", "tx"; > - }; > -- > 2.29.2 >