Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp560330pxb; Thu, 31 Mar 2022 11:35:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy073PWttl6YWWu6mo7Ra1nGHIqXWzZ53nyt42mLSqwK+4QktmlSBlC9NmIcUQ8z/ofVmGu X-Received: by 2002:a17:906:6a26:b0:6e0:340:d7c3 with SMTP id qw38-20020a1709066a2600b006e00340d7c3mr6072387ejc.258.1648751728974; Thu, 31 Mar 2022 11:35:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648751728; cv=none; d=google.com; s=arc-20160816; b=rfrGxB6pm5yzgJ3fwjT2suasAw+1E3RafXYGu7H8kjMNpsvdGd8Fcfy++INuQfcChI vs3b8TQb6zcBeMlvHLYr31PF0JbqHo63uE5ubiKU6F/qPj6u+6zC7uVPjtkQYkvfnNMZ S+8ZMOuN0KCoEQJfG/32zF5RZAWjR8TZe/Pq7GMyqZ0EbTDv82B1LR9CL2+dUsfHj2AS cAz233pxZzJrRHB4D0SdMI/WlCDJAPOW161HIh29YYOh/pVzJURRiEj5xgW6B24ImxJH FiNPfAGXBPIOsh0zl3DlcafyuqJwFl2AYCUlDcKv9hU0oQVFIluEMtJ3pw2u4BCknSAW PtVg== 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=iDBMY197GWWnst83wC1Tob2jp5vtx/AimRG78sGrwlo=; b=ZDAfLoZXkcda6IwQcgHjpaZembTAcI3l29Umftkrg0M9WZnoqBfJPI0zaTqbvJLnTZ qUsUvLDuh1z5OfH2v+roLCwtYy8zBI4U/Kw4hDpczQecjwaU7i40abKUwBhLpepM2Jw7 Z0qoabRLisC69wIsdYLVi7pm+VrQl/ji07s8sqpWdH9LmdAvt8o1TrSmmeRLqfql90Jn Ae7TzBQQfukSQkpKcKU++Y7DnyLDi1UImo6DyPhDstl6lZNCnR02uESqzJNnrDJTIlpg j/EJJjXsVdS3vB9KCBIsacGabY61U/V2eti72NV61apEjoXLtyx5CSfGogy6Bl0mQWlK lR2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=aG0KI2SM; 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 b15-20020a056402278f00b004190c9f1e66si237367ede.326.2022.03.31.11.35.03; Thu, 31 Mar 2022 11:35:28 -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=aG0KI2SM; 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 S232661AbiCaIZS (ORCPT + 99 others); Thu, 31 Mar 2022 04:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbiCaIZL (ORCPT ); Thu, 31 Mar 2022 04:25:11 -0400 Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4F38C6EDB; Thu, 31 Mar 2022 01:23:21 -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=1648714997; bh=iDBMY197GWWnst83wC1Tob2jp5vtx/AimRG78sGrwlo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=aG0KI2SM/9+gcA9rLrq8QIXI2anoy0jX6J85T+T90QPChe8pYkTo6507F3c4NbXFX mjhD3ALdyV2JWKsmjfeKZQn5xUIARb4+0z5OaiidzmrkK1gDHSCjuLU2uIKh5o+9Uv QV4iq+0uzG8XMkXYQMLTqsntTuJyRkyugd8ynOMU= 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: <0f7677ba-bffa-7ec6-7c74-3fad84a1d2c5@linaro.org> Date: Thu, 31 Mar 2022 10:23:17 +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> <0f7677ba-bffa-7ec6-7c74-3fad84a1d2c5@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 10:17, Krzysztof Kozlowski = wrote: >=20 > On 31/03/2022 08:57, Martin Povi=C5=A1er wrote: >>=20 >>> 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. >>=20 >> Tell more please. I don=E2=80=99t see it. >=20 > git log --oneline -- Documentation/devicetree/bindings/sound/ >=20 >=20 > Mark expects "ASoC: dt-bindings:" Aha! Thanks. >>>> 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. >>=20 >> Are you sure? It prevents duplication later on for =E2=80=98codec' = and =E2=80=98cpu=E2=80=99. >=20 > That's true, but duplication is small, unless you think this will be > extended. I guess it is a trade-off, but so far for few lines and just > two users of such definition, I would prefer to duplicate. I don't = have > strong opinion, though. OK >>=20 >>>=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. >>=20 >> Well there=E2=80=99s not a maximum. >=20 > There should be some maximum of supported codecs. Hardware might have > such constraints. If really unsure, choose some reasonable (small) > amount. It could be later raised, if needed. There are some constraints but technically not in the driver that binds on this binding. I thought no limit is better than an arbitrary one, but if the preference is to have one, I will add it, no problem. > Best regards, > Krzysztof Best, Martin