Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3469969iog; Mon, 27 Jun 2022 17:16:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqOcLd4+B3RH70R40x+LSG5VSowNVx7Ohym/DpyPAjeuSGcwiWyFVP7hEzlft2Bb/Zk1Hd X-Received: by 2002:a63:904c:0:b0:40d:34f7:36c4 with SMTP id a73-20020a63904c000000b0040d34f736c4mr15097807pge.532.1656375363458; Mon, 27 Jun 2022 17:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656375363; cv=none; d=google.com; s=arc-20160816; b=OXZt37Ji2QZ4kF5ke/WrCmWMB1W72tgVytQZQ6qpoaF802SoZIRHiCuaUX47LQ+9ZZ W+zYtxQnPZVat9A71R2D/hSlhZ86rZdsBm9OxQPFNvn1UbCfmIOr+GEEc52rkzYIRNlh eTrFNleb4JbLzuoQW9Konjmsa/AE1ROzS3h2VxULSaCilvkQ8NsPLHsHRPj41oVQjLEJ xL2OFWvs8gYEPMDhgGM3kTSkUuG1Yc8+r4tZKqSU/RdgldMDXVKfZC53/lferfpKON0u 3S7yYKm7Bf7ODCj8HTqA5/NXp9ik6dAewX3hZQVFI0JotoaCA+YcOeCnFmiFpt9f+KcM 9J7g== 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=3lHtHF5zI7QaQustjx+BDaBkfu/L3JJ+u5pFItRPzJ4=; b=hRjEleass4q5Ph++zyXMkay4HrD8oSjKx5lbZlAPkgnFeTjgGbGEe4Oza+/Eu4M/RC nUNfInx+QqXUC4171xHbby6D6jboWWDN1BHcS115tUDYp/NCmWRy2VWAP//nW/5HfZmF SjkIH5CA50B5NOn+YGx+35wfIUeWePhhaUX/RZ8jo2esEXojrHz6VY3DvZuGg5hXVS2P Rz4I6ZCrtqy5jq/SR9h1Seg/MPd31KGvh8bdylVgi799UnpILYc2121tCl7Qx0oF6EQ6 O1Vf14/1vGFZcRIejMS29ji08SvxzERNP5ReOc2IEjpOEy35qjw2yo9vjPnImKC4rwVs jeQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a1709026f1000b001586fbb2b6dsi8737953plk.566.2022.06.27.17.15.51; Mon, 27 Jun 2022 17:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241735AbiF0XWr (ORCPT + 99 others); Mon, 27 Jun 2022 19:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237413AbiF0XWp (ORCPT ); Mon, 27 Jun 2022 19:22:45 -0400 Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76EDF2409C; Mon, 27 Jun 2022 16:22:44 -0700 (PDT) Received: by mail-il1-f170.google.com with SMTP id p13so7097381ilq.0; Mon, 27 Jun 2022 16:22:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3lHtHF5zI7QaQustjx+BDaBkfu/L3JJ+u5pFItRPzJ4=; b=ZHQGDQOf6e0vfhfQaEpTdLdWnfcrGp+FNWavP5+dRxMsiw5WWZDGFQM5GNdmvnN+zv OwnVXnQU9enB7aaT3lVvSlOCk3X1pJi9m0wBO0aXUEoni2JrDwScb9dvd3pSEwyzgbZM b4UvxfOX/uGX4f0U60FPg047J8oJ3srfhLPn58lFGxqNcm42r1ReKiYv6srp3qyJHo/s sKgLDtSDxfsoOqjafnaHHX2tHQzStEJFN5mw5GFmHvWV6PlUVgDG9yPhglzVJ05d/7C8 l4pt4dKCJ3CvQu6CLge5diylhn0DzxtC3RQZtTmxQefzf1CbTI7CZIIoC8MKAif9a0Om QI5w== X-Gm-Message-State: AJIora9H32CbuhbataZY/gtcP0Ifo8ZTP7ox5ngt2AlyCwth/YZb6Mtw vhwrUI2riJfzS0xOxIDHHA== X-Received: by 2002:a05:6e02:154d:b0:2da:9539:3093 with SMTP id j13-20020a056e02154d00b002da95393093mr4871207ilu.131.1656372163678; Mon, 27 Jun 2022 16:22:43 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id m3-20020a92d703000000b002d9344d4d6bsm5094310iln.79.2022.06.27.16.22.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 16:22:43 -0700 (PDT) Received: (nullmailer pid 3158136 invoked by uid 1000); Mon, 27 Jun 2022 23:22:40 -0000 Date: Mon, 27 Jun 2022 17:22:40 -0600 From: Rob Herring To: Conor Dooley Cc: David Airlie , Daniel Vetter , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Liam Girdwood , Mark Brown , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt , Thomas Gleixner , Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , Heng Sia , Jose Abreu , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 03/14] ASoC: dt-bindings: convert designware-i2s to dt-schema Message-ID: <20220627232240.GA3156149-robh@kernel.org> References: <20220618123035.563070-1-mail@conchuod.ie> <20220618123035.563070-4-mail@conchuod.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220618123035.563070-4-mail@conchuod.ie> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 18, 2022 at 01:30:25PM +0100, Conor Dooley wrote: > From: Conor Dooley > > Convert the Synopsys DesignWare I2S controller binding to dt-schema. > There was no listed maintainer but Jose Abreu was the last editor of the > txt binding so add him as maintainer. > > Signed-off-by: Conor Dooley > --- > .../bindings/sound/designware-i2s.txt | 35 ------- > .../bindings/sound/snps,designware-i2s.yaml | 93 +++++++++++++++++++ > 2 files changed, 93 insertions(+), 35 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/designware-i2s.txt > create mode 100644 Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml > > diff --git a/Documentation/devicetree/bindings/sound/designware-i2s.txt b/Documentation/devicetree/bindings/sound/designware-i2s.txt > deleted file mode 100644 > index 6a536d570e29..000000000000 > --- a/Documentation/devicetree/bindings/sound/designware-i2s.txt > +++ /dev/null > @@ -1,35 +0,0 @@ > -DesignWare I2S controller > - > -Required properties: > - - compatible : Must be "snps,designware-i2s" > - - reg : Must contain the I2S core's registers location and length > - - clocks : Pairs of phandle and specifier referencing the controller's > - clocks. The controller expects one clock: the clock used as the sampling > - rate reference clock sample. > - - clock-names : "i2sclk" for the sample rate reference clock. > - - dmas: Pairs of phandle and specifier for the DMA channels that are used by > - the core. The core expects one or two dma channels: one for transmit and > - one for receive. > - - dma-names : "tx" for the transmit channel, "rx" for the receive channel. > - > -Optional properties: > - - interrupts: The interrupt line number for the I2S controller. Add this > - parameter if the I2S controller that you are using does not support DMA. > - > -For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' > -properties please check: > - * resource-names.txt > - * clock/clock-bindings.txt > - * dma/dma.txt > - > -Example: > - > - soc_i2s: i2s@7ff90000 { > - compatible = "snps,designware-i2s"; > - reg = <0x0 0x7ff90000 0x0 0x1000>; > - clocks = <&scpi_i2sclk 0>; > - clock-names = "i2sclk"; > - #sound-dai-cells = <0>; > - dmas = <&dma0 5>; > - dma-names = "tx"; > - }; > diff --git a/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml b/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml > new file mode 100644 > index 000000000000..5ac9c00157bf > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/snps,designware-i2s.yaml > @@ -0,0 +1,93 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/snps,designware-i2s.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: DesignWare I2S controller > + > +maintainers: > + - Jose Abreu > + > +properties: > + compatible: > + oneOf: > + - items: > + - const: canaan,k210-i2s > + - const: snps,designware-i2s > + - enum: > + - snps,designware-i2s > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: | > + The interrupt line number for the I2S controller. Add this > + parameter if the I2S controller that you are using does not > + support DMA. > + maxItems: 1 > + > + clocks: > + description: Sampling rate reference clock How many? > + > + clock-names: > + const: i2sclk > + > + resets: > + maxItems: 1 > + > + dmas: > + items: > + - description: TX DMA Channel > + - description: RX DMA Channel > + minItems: 1 > + > + dma-names: > + items: > + - const: tx > + - const: rx > + minItems: 1 > + > +if: > + properties: > + compatible: > + contains: > + const: canaan,k210-i2s > + > +then: > + properties: > + "#sound-dai-cells": > + const: 1 > + > +else: > + properties: > + "#sound-dai-cells": > + const: 0 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +oneOf: > + - required: > + - dmas > + - dma-names > + - required: > + - interrupts > + > +unevaluatedProperties: false > + > +examples: > + - | > + soc_i2s: i2s@7ff90000 { > + compatible = "snps,designware-i2s"; > + reg = <0x7ff90000 0x1000>; > + clocks = <&scpi_i2sclk 0>; > + clock-names = "i2sclk"; > + #sound-dai-cells = <0>; > + dmas = <&dma0 5>; > + dma-names = "tx"; > + }; > -- > 2.36.1 > >