From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0580C636D6 for ; Fri, 3 Feb 2023 08:05:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232685AbjBCIFl (ORCPT ); Fri, 3 Feb 2023 03:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232934AbjBCIFA (ORCPT ); Fri, 3 Feb 2023 03:05:00 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2D71B31C for ; Fri, 3 Feb 2023 00:03:38 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id k8-20020a05600c1c8800b003dc57ea0dfeso5437516wms.0 for ; Fri, 03 Feb 2023 00:03:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HO/wOlTKv2ZXyBQ/Aq4ZwUrxkA17nVhS0gL6sWJfJgU=; b=a9KKsDInAF1Re4LhiLxP3wdQs0pGWYrQHdmV6QmNbAWyZpX8mzHTBsD1QFyTIwx20Z 6B+CNYeaIDaMeTDISok2fJVRBZAgxiTZArvhTbSTiD0zEVNCV6BHc6CSVMH7Gtl4GQyr ysPAjJGcj0tcIE+Br4FQm0ztrXBNaJ4Vx5k5ySDS0feEq8SbPnSVA8rX2zbXyZlWgCeC kuCNg4czlNc6buYVJkBQEOoUWGU9YauzZextYJyaw1Y/vXjG0rwN3kC7hmMgoKqCCOp4 j8TPpa/0qF35omFlAmoehM1RCroVpAQq4QwZhuDoIhVa8cvZFFPUqq72T6UWXouXUCpA i4EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HO/wOlTKv2ZXyBQ/Aq4ZwUrxkA17nVhS0gL6sWJfJgU=; b=NLs/dZH424h8X21pnS/lGLccemUjsun0qSt+2VUJlvQQqEfFseIuyS3TR2uoJYK1rR IZPnwtbfMF80+99GDgRSu5PdAWFuMPp2S0JeXKAF+yqSihoHRofCviO9scok/62Puhoq KjDTcAHfs4vYfYz0mditx8sorJPnOqL3dz2Ym/PZimHRKo1+j3XKm/f54ZXg61bdw9zv s4fd3DvtXdM8b2Fxqvvp/9hj4WfrdjoKWkI5w+QScrxhHCn8XhJ6lx5rKXjNSEYMdE8b 5FwpS3rvu760PDX8W3Ah0gjdGl+mVj1yCf/gdTfrzTlHueZzLYwvLcCDSuVF0iO3JYa9 Nf7A== X-Gm-Message-State: AO0yUKXI3QY7yKLyXLdcyWfFcwff8rGzF7c9AIpwBSarqSKpyTYs7F/K avwuxCFhdlnga4omuJfETDlHYQ== X-Google-Smtp-Source: AK7set8u+cmZ7lz8PRUKAve3w16hS2Y87x6C560Uz3vJTv2lGOkxZM8qBpNk5O2HUja+PkE9yv2U6Q== X-Received: by 2002:a05:600c:16c4:b0:3db:2098:17c0 with SMTP id l4-20020a05600c16c400b003db209817c0mr10351012wmn.29.1675411416947; Fri, 03 Feb 2023 00:03:36 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id z4-20020a05600c0a0400b003dfdeb57027sm4215674wmp.38.2023.02.03.00.03.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 00:03:36 -0800 (PST) Message-ID: Date: Fri, 3 Feb 2023 09:03:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 7/9] ASoC: dt-bindings: meson: convert axg spdif input to schema Content-Language: en-US To: Jerome Brunet , Mark Brown , alsa-devel@alsa-project.org, devicetree@vger.kernel.org Cc: linux-amlogic@lists.infradead.org, Kevin Hilman , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org References: <20230202183653.486216-1-jbrunet@baylibre.com> <20230202183653.486216-8-jbrunet@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20230202183653.486216-8-jbrunet@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 02/02/2023 19:36, Jerome Brunet wrote: > Convert the DT binding documentation for the Amlogic axg spdif input to > schema. > > Signed-off-by: Jerome Brunet > --- > .../bindings/sound/amlogic,axg-spdifin.txt | 27 ------ > .../bindings/sound/amlogic,axg-spdifin.yaml | 90 +++++++++++++++++++ > 2 files changed, 90 insertions(+), 27 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt > create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.yaml > > diff --git a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt > deleted file mode 100644 > index df92a4ecf288..000000000000 > --- a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.txt > +++ /dev/null > @@ -1,27 +0,0 @@ > -* Amlogic Audio SPDIF Input > - > -Required properties: > -- compatible: 'amlogic,axg-spdifin' or > - 'amlogic,g12a-spdifin' or > - 'amlogic,sm1-spdifin' > -- interrupts: interrupt specifier for the spdif input. > -- clocks: list of clock phandle, one for each entry clock-names. > -- clock-names: should contain the following: > - * "pclk" : peripheral clock. > - * "refclk" : spdif input reference clock > -- #sound-dai-cells: must be 0. > - > -Optional property: > -- resets: phandle to the dedicated reset line of the spdif input. > - > -Example on the A113 SoC: > - > -spdifin: audio-controller@400 { > - compatible = "amlogic,axg-spdifin"; > - reg = <0x0 0x400 0x0 0x30>; > - #sound-dai-cells = <0>; > - interrupts = ; > - clocks = <&clkc_audio AUD_CLKID_SPDIFIN>, > - <&clkc_audio AUD_CLKID_SPDIFIN_CLK>; > - clock-names = "pclk", "refclk"; > -}; > diff --git a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.yaml b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.yaml > new file mode 100644 > index 000000000000..4f7e4c21acc1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifin.yaml > @@ -0,0 +1,90 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/amlogic,axg-spdifin.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic Audio AXG SPDIF Input > + > +maintainers: > + - Jerome Brunet > + > +allOf: > + - $ref: dai-common.yaml# > + > +properties: > + $nodename: > + pattern: "^audio-controller@.*" > + > + compatible: > + oneOf: > + - items: All usual comments apply. > + - const: > + amlogic,axg-spdifin > + - items: > + - enum: > + - amlogic,g12a-spdifin > + - amlogic,sm1-spdifin > + - const: > + amlogic,axg-spdifin All usual comments apply. > + > + reg: > + maxItems: 1 > + > + "#sound-dai-cells": > + const: 0 > + > + clocks: > + items: > + - description: Peripheral clock > + - description: SPDIF input reference clock > + > + clock-names: > + items: > + - const: pclk > + - const: refclk > + > + interrupts: > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - "#sound-dai-cells" > + - clocks > + - clock-names > + - interrupts > + > +if: > + properties: > + compatible: > + contains: > + enum: > + - amlogic,g12a-spdifin > + - amlogic,sm1-spdifin > +then: > + properties: > + resets: > + items: > + - description: dedicated device reset line > + > + required: > + - resets > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + spdifin: audio-controller@400 { > + compatible = "amlogic,axg-spdifin"; Fix indentation. Best regards, Krzysztof