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 037ACC636D6 for ; Fri, 3 Feb 2023 08:06:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232405AbjBCIGA (ORCPT ); Fri, 3 Feb 2023 03:06:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232468AbjBCIFQ (ORCPT ); Fri, 3 Feb 2023 03:05:16 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D331953CD for ; Fri, 3 Feb 2023 00:04:01 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id bg26so3241189wmb.0 for ; Fri, 03 Feb 2023 00:04:01 -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=5n5nzjeWYrzvFdzePtFgwKj0yhRVHY39hpZH36NwKnk=; b=VKuUvjTlX5a1O4eMIYlvvN7JZ19j0qIbN/KBLlJ4miIJCOS10HO5/biPIEzBjlaL8j wJOvFnYXDW/rxLJ/vC2Rh4Bc2rlBVhGOiku0lr+ZhbhOS8GhO3f9cA2XiAx/6XYRgqkg 1hIRoiQgIXUBb7+LNc3WmyBNsaY2aS9QxITLZPA//DroZJQRHVZblV0r0NKP4wFGJjC9 hEZLRCCW7BSem7OjHHznc7HSP0JqQrilzIwTzuvMQEXzFA5sR+evvkygqIRDw/6lx3CI K+0VwdnsBVuNbJlu7QE1JAGddfd1n4i74dNRpgLBL6cJ+UbGfpFQREllpUEYWxfnFdRY 3/uw== 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=5n5nzjeWYrzvFdzePtFgwKj0yhRVHY39hpZH36NwKnk=; b=quWAkt+lHcgcRa5+903m5aqEAcFM/TDTLHpb3msR9PFK5UtTS06D4LUSNOLzcv1TFn ERqFJxV726Fk54UsiKFnQRk3z9H0YQGo6nTKq8tNp3/76fVdbiE/rz7aTwuwP6G9aq6Q tBWS6dV3ZVzR0KgMpHcj4LILJFv6AbbVNUsxpjyaMduSwpEtTr6I4owscuC8gloUnaqV wrbu5rOfhySWiim1SVYXVVCd3/fLOTD9sFWR4jDfz7rsPPjGkI6u6RxNynPL1ZktUSqH Flra34XHMSnyZ52a+UY3X6tLnWqfFk3Zwb1A5DxF09jhwLbE3ARqNmyJwdPDRpCBOHUK lZyg== X-Gm-Message-State: AO0yUKUAlHUHm3K0EAI3qIwDdNsV76bzZVc/HKBKQeH8AJhJ3NwZuUx9 jsnieDOn5ao7RtaxphKpWAfwlg== X-Google-Smtp-Source: AK7set8ndf5+O2ob1W8PMCs/4gc2zLHq73SYbJTh14EOpBU1XesXZgsXJjKB3N2Hs3hq6EQctUIVZw== X-Received: by 2002:a05:600c:3d88:b0:3d2:3f55:f757 with SMTP id bi8-20020a05600c3d8800b003d23f55f757mr8759506wmb.20.1675411440191; Fri, 03 Feb 2023 00:04:00 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id q10-20020a05600c330a00b003dc3f195abesm1839823wmp.39.2023.02.03.00.03.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Feb 2023 00:03:59 -0800 (PST) Message-ID: <3ac4c315-cff1-b313-6936-2fe5ca87c350@linaro.org> Date: Fri, 3 Feb 2023 09:03:58 +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 8/9] ASoC: dt-bindings: meson: convert axg spdif output 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-9-jbrunet@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20230202183653.486216-9-jbrunet@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/2023 19:36, Jerome Brunet wrote: > Convert the DT binding documentation for the Amlogic axg spdif output to > schema. > > Signed-off-by: Jerome Brunet > --- > .../bindings/sound/amlogic,axg-spdifout.txt | 25 ------ > .../bindings/sound/amlogic,axg-spdifout.yaml | 83 +++++++++++++++++++ > 2 files changed, 83 insertions(+), 25 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt > create mode 100644 Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.yaml > > diff --git a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt > deleted file mode 100644 > index 28381dd1f633..000000000000 > --- a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.txt > +++ /dev/null > @@ -1,25 +0,0 @@ > -* Amlogic Audio SPDIF Output > - > -Required properties: > -- compatible: 'amlogic,axg-spdifout' or > - 'amlogic,g12a-spdifout' or > - 'amlogic,sm1-spdifout' > -- clocks: list of clock phandle, one for each entry clock-names. > -- clock-names: should contain the following: > - * "pclk" : peripheral clock. > - * "mclk" : master clock > -- #sound-dai-cells: must be 0. > - > -Optional property: > -- resets: phandle to the dedicated reset line of the spdif output. > - > -Example on the A113 SoC: > - > -spdifout: audio-controller@480 { > - compatible = "amlogic,axg-spdifout"; > - reg = <0x0 0x480 0x0 0x50>; > - #sound-dai-cells = <0>; > - clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>, > - <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>; > - clock-names = "pclk", "mclk"; > -}; > diff --git a/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.yaml b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.yaml > new file mode 100644 > index 000000000000..c661ce7f8b9d > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/amlogic,axg-spdifout.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/amlogic,axg-spdifout.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic Audio AXG SPDIF Output > + > +maintainers: > + - Jerome Brunet > + > +allOf: > + - $ref: dai-common.yaml# > + > +properties: > + $nodename: > + pattern: "^audio-controller@.*" > + > + compatible: > + oneOf: > + - items: > + - const: > + amlogic,axg-spdifout All usual comments apply. > + - items: > + - enum: > + - amlogic,g12a-spdifout > + - amlogic,sm1-spdifout > + - const: > + amlogic,axg-spdifout > + > + reg: > + maxItems: 1 > + > + "#sound-dai-cells": > + const: 0 > + > + clocks: > + items: > + - description: Peripheral clock > + - description: SPDIF output master clock > + > + clock-names: > + items: > + - const: pclk > + - const: mclk > + > +required: > + - compatible > + - reg > + - "#sound-dai-cells" > + - clocks > + - clock-names > + > +if: > + properties: > + compatible: > + contains: > + enum: > + - amlogic,g12a-spdifout > + - amlogic,sm1-spdifout > +then: > + properties: > + resets: > + items: > + - description: dedicated device reset line > + > + required: > + - resets > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + spdifout: audio-controller@480 { > + compatible = "amlogic,axg-spdifout"; Indentation. Best regards, Krzysztof