Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp127135pxb; Thu, 31 Mar 2022 01:04:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDMozPSxga/CpBh/LSxqnBNNGL3cKU2BzI6wWuYYRrMvJ1GoOMq8VthI+2HXNkCTYgvZx/ X-Received: by 2002:a17:907:2cc4:b0:6df:a036:a025 with SMTP id hg4-20020a1709072cc400b006dfa036a025mr4127940ejc.554.1648713893162; Thu, 31 Mar 2022 01:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648713893; cv=none; d=google.com; s=arc-20160816; b=JRffGVZILGkUVu3wd8TG1V7UrW/rkG7qurmaOZVSJX/zzqpOqYoaQ6KwRptmHAdQqL WSI22nqxjtP6+CoYAj2kCmHwH3OuhTYRluiXWLlzp7u2aUt37PQGGcQRSaY8HXLM9jK3 KBHDv50auwDnCifEFro7YqrHafb2zPVNPMpvcMAsySfVfVlBjAfgTqi2Kh6oxgOfgIqw WvcqXh95wJYuJXWL1efebpfsfqA1dXGiThSIPqFZdsPpnR4sraKcGogAiBHb98Bifh9V PwvKyedD73YhBpUUvql6vHhJs9L5cZqcqZjJX4Z0flUgVy67qmaQtqNhs38i1wisZqlh qrMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=wqSNyfEr0PfR7Nu/cSpCkDEbnShaRb16tT3cIjzE5ao=; b=0oSjjKc1MmvlIV89kU5hgcmymtsdPcVGvCRB8rOUOnXCWg5a1ZUYTqIRITg71Mrknw 6LLeFYZ4dvU6ZhMEopvG6NleYNfWxLk1gBqCKdWUjGng2WmOy/he6o8jK7BYW4siKrJQ BHBzwZU7rHouivT9yhwMNxvgy0Yffrlr12R7WcOrGAmoLobCghh+TfgJ3DjJt+hE+/qv 6rd2lF4t/oHOcIQFGAS1GQCiupnoeBKE1kDYwkCAd6UOwWoP0M9Hs0dv4bcGSr4jfDAB Ege3+DDzsyuyS6icwYS4qhAMyQp/RmGVVopHCsKdghHB29IwKB2QzbyvZxV2/NG4rToy le0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=TATcwcWp; 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=cutebit.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020aa7dbd4000000b00418d5f8ab0esi21738780edt.290.2022.03.31.01.04.26; Thu, 31 Mar 2022 01:04:53 -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; dkim=pass header.i=@cutebit.org header.s=mail header.b=TATcwcWp; 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=cutebit.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231543AbiCaG7G (ORCPT + 99 others); Thu, 31 Mar 2022 02:59:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbiCaG7E (ORCPT ); Thu, 31 Mar 2022 02:59:04 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEDB9EEA60; Wed, 30 Mar 2022 23:57:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1648709834; bh=wqSNyfEr0PfR7Nu/cSpCkDEbnShaRb16tT3cIjzE5ao=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=TATcwcWpwUO2ICDeG8JnL+mjIkFKf0kVPvJtq6SNKT6Y9/7X4oJUs/pKN3KWt8+Gb Yd/7vSwwE+SVM3LvsqOrPQA4tQ5ao5SpPzqFkOUkTStWkXUKTUHsD9ctdLNe4gd+0l 33GpeYp5U99JbjYQJ/vGNNnuTbQKqojErUmmnzZA= Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: [RFC PATCH 1/5] dt-bindings: sound: Add Apple Macs sound system From: =?utf-8?Q?Martin_Povi=C5=A1er?= In-Reply-To: <9e3ba11c-d179-c229-fb7c-bf5611a15b1b@linaro.org> Date: Thu, 31 Mar 2022 08:57:12 +0200 Cc: =?utf-8?Q?Martin_Povi=C5=A1er?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Kettenis , Hector Martin , Sven Peter Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220331000449.41062-1-povik+lin@cutebit.org> <20220331000449.41062-2-povik+lin@cutebit.org> <9e3ba11c-d179-c229-fb7c-bf5611a15b1b@linaro.org> To: Krzysztof Kozlowski X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_FAIL,SPF_HELO_NONE, 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 31. 3. 2022, at 8:43, Krzysztof Kozlowski = wrote: >=20 > On 31/03/2022 02:04, Martin Povi=C5=A1er wrote: >> Add binding for Apple Silicon Macs' machine-level sound system. >>=20 >> Signed-off-by: Martin Povi=C5=A1er >> --- >> .../bindings/sound/apple,macaudio.yaml | 103 = ++++++++++++++++++ >> 1 file changed, 103 insertions(+) >> create mode 100644 = Documentation/devicetree/bindings/sound/apple,macaudio.yaml >>=20 >=20 > Commit title does not match subsystem. Tell more please. I don=E2=80=99t see it. >=20 >> diff --git = a/Documentation/devicetree/bindings/sound/apple,macaudio.yaml = b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml >> new file mode 100644 >> index 000000000000..a6380e4bdd1a >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/sound/apple,macaudio.yaml >> @@ -0,0 +1,103 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/sound/apple,macaudio.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Apple Silicon Macs integrated sound system >> + >> +maintainers: >> + - Martin Povi=C5=A1er >> + >=20 > Add description. >=20 >> +definitions: >=20 > This does not make code more readable. Are you sure? It prevents duplication later on for =E2=80=98codec' and = =E2=80=98cpu=E2=80=99. >=20 >> + dai: >> + type: object >> + properties: >> + sound-dai: true >> + required: >> + - sound-dai >> + >> +properties: >> + compatible: >> + items: >> + - enum: >> + - apple,j274-macaudio >> + - apple,j293-macaudio >> + - apple,j314-macaudio >> + - const: apple,macaudio >=20 > Open example-schema.yaml and look at formatting plus general coding > style. You miss line breaks making it unreadable. >=20 >> + "#address-cells": >> + const: 1 >> + "#size-cells": >> + const: 0 >> + model: >> + description: | >> + Model name to use when the sound system is presented to users = as a sound card. >> + $ref: /schemas/types.yaml#/definitions/string >> + >> +patternProperties: >> + "^dai-link(@[0-9a-f]+)?$": >> + description: | >> + A DAI link comprising of CPU and CODEC DAI specifiers and = supplemental properties. >> + type: object >> + properties: >> + reg: >> + maxItems: 1 >> + mclk-fs: >> + description: | >> + Forced MCLK/samplerate factor (optional). >=20 > Optional is obvious from !required. >=20 > Description is different than existing field in simple card. Is this = the > same field or not? It is the same. I didn=E2=80=99t want to copy the simple card text = because this is optionally BSD, simple card wasn=E2=80=99t. >=20 >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + link-name: >> + description: Name for the DAI link to present to users. >> + $ref: /schemas/types.yaml#/definitions/string >> + cpu: >> + $ref: "#/definitions/dai" >> + codec: >> + $ref: "#/definitions/dai" >=20 > missing maxItems for DAI phandles. Well there=E2=80=99s not a maximum. >=20 > Best regards, > Krzysztof Martin