Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9675497rwl; Wed, 11 Jan 2023 08:33:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXvtzoqg34LYQa9ixFet9lfs7uRcU3GDqOJi714E+v1HtCcFMiNmKSwz8eqthrSZUNrmXO/Z X-Received: by 2002:a05:6a21:e31a:b0:b5:f6de:e84c with SMTP id cb26-20020a056a21e31a00b000b5f6dee84cmr10571508pzc.42.1673454802580; Wed, 11 Jan 2023 08:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673454802; cv=none; d=google.com; s=arc-20160816; b=iLRs1LUuTYUeE0aV7/7N85ODav0AHADuBdXJhnyFoREaXP/gflsCjlO76wNWu5X6PX JD2BQR0on/owiA43VAXhILX1/d6Ikcfz1dUEg928Gj9/gIr0uB3HUePAI4Nn3xx7s+JX eCLu5WlCjB86TMZa67zStBr1ep2ugCJdX2RDt+0BidFlGPoe8fArj6DV6+vEa6degbij qlPdZyr6rmPG0g3Cz6RjYVqB5Yjiyc9Eqw6CexLy/TVijULKlw+D2q/XFuunikpLgtgj NhCAZbtTtx2dyAgHIU0AjWr+Eo6Wv4K4LdpZgmXXGEfDp63Ql0/BVL3zr0/2mcp4M8MM zG3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=h7CWF9KkUKbOJvIgyBGuBX3AgumkGtq/yuQpNawXVGo=; b=PjOcpXgxA41YzBDBPUpXSvzpJMZXPhDjVqNt0p9gTiC/PyWL1z2D+ZsqfnONmO6KxE 8eVKd2IkfMwLDoZUQWvA8L34bNJq7FIMN/00ZZXnsfxM7c8b1fMnhX36rkbbTM8QqgiS I0UdnIfWC5gJq4MepRS7nzJeub0JdcLryqmrbf2/B3VjPugasvj+SS49nb0bj1vVDoOs 8JSi5rOr4RK6JAArP32Cou4ClqF2mzvyg2bnzQeSn2jugrE0488SlpY2qIhuQX4iSdBR zEVdN6y6czqb5MINUUTkJZmSLVGk1BKm+Dl3IIOHuT7qu9KWJfFaUgzBE9FNCqkW1vr8 yWqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QG/1xRDc"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a6566c5000000b004a339f6f89esi14843505pgw.470.2023.01.11.08.33.15; Wed, 11 Jan 2023 08:33:22 -0800 (PST) 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=@linaro.org header.s=google header.b="QG/1xRDc"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234484AbjAKQaN (ORCPT + 53 others); Wed, 11 Jan 2023 11:30:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239286AbjAKQ3c (ORCPT ); Wed, 11 Jan 2023 11:29:32 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1BED26D7 for ; Wed, 11 Jan 2023 08:28:14 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id m3so11519330wmq.0 for ; Wed, 11 Jan 2023 08:28:14 -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=h7CWF9KkUKbOJvIgyBGuBX3AgumkGtq/yuQpNawXVGo=; b=QG/1xRDc2gvPUcV3qYyLpo9U1+DrMtmYMCpfUHY3aBxCA/zvDPrypygAq50eRHghxJ VMQZMBAirs1WNJzVVb5Z2Cr9RIBnVWz/mxGftXpw0Vl5NqIg/1370zLOgEEStiNr9L8n 6u97vE0rrLrlha03SYeQIX+8vZD2HXqxn2I6ogvtXhMWZ0MD3iV9VAa/QA1qSafYq10g /Dv0x3t+uUCvWLa3esZKGcAoUI+MRcKPyf+GgWtlOiYECKsOOcVajufpcYZI4oa6IFCo 9iMsozsf8EujJzSufGogv/LJdpQ9o8xZZwozSz9oZSGHTiz2dEmesqr5B2O9Lk/fQEck r8tQ== 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=h7CWF9KkUKbOJvIgyBGuBX3AgumkGtq/yuQpNawXVGo=; b=qjMR5fBAZYhER3SUJyX3bEbc1AkSAl9GL++xQoHV9iRgwDvNhg90RDOcnxp9TDHtFv bxLQgDEFkp3/thuKDUefQfaxkOkNwsmSXoDO0yMwUwb4J+PkGEtyjTGSUrwoR2ld1/zC 7TpjiAI/rzp+X6WCNEnmH5akvo50rRH6zVM7JMlHnO+N/IRLoNdf93GKbRVYpMgWyM5n FColsGcw+LsbbhSRIlAVW+s2J7Blz/ombN2OXUXy30p6SsdNLHJemyb3XUoFm0mG1uCm U00rzkZ2OS3hxnaTon/ZLBu0oSgVD9vCOZN+AOmGgUV9hkiYAGHEgCvJYRcZLFZMW6pr KGvw== X-Gm-Message-State: AFqh2kr+tzOIY1e2rWsrz+dY/oRjJhcvCgmCGhsDwEneUx3qnLCkGFT3 4wufbkIETEbbr8TMfH1Mh5SWyA== X-Received: by 2002:a05:600c:1e09:b0:3cf:b73f:bf8f with SMTP id ay9-20020a05600c1e0900b003cfb73fbf8fmr51982781wmb.7.1673454493504; Wed, 11 Jan 2023 08:28:13 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id l3-20020a05600c4f0300b003a6125562e1sm20455115wmq.46.2023.01.11.08.28.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 08:28:13 -0800 (PST) Message-ID: Date: Wed, 11 Jan 2023 17:28:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 1/3] dt-bindings: sound: Add Renesas IDT821034 codec Content-Language: en-US To: Herve Codina , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni References: <20230111134905.248305-1-herve.codina@bootlin.com> <20230111134905.248305-2-herve.codina@bootlin.com> From: Krzysztof Kozlowski In-Reply-To: <20230111134905.248305-2-herve.codina@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 11/01/2023 14:49, Herve Codina wrote: > The Renesas IDT821034 codec is a quad PCM codec with > programmable gain. > > Signed-off-by: Herve Codina > --- > .../bindings/sound/renesas,idt821034.yaml | 97 +++++++++++++++++++ > 1 file changed, 97 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/renesas,idt821034.yaml > > diff --git a/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml b/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml > new file mode 100644 > index 000000000000..2c29b770e3f7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/renesas,idt821034.yaml > @@ -0,0 +1,97 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/renesas,idt821034.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Renesas IDT821034 codec device > + > +maintainers: > + - Herve Codina > + > +description: | > + The IDT821034 codec is a four channel PCM codec with onchip filters and > + programmable gain setting. > + > + The time-slots used by the codec must be set and so, the properties > + 'dai-tdm-slot-num', 'dai-tdm-slot-width', 'dai-tdm-slot-tx-mask' and > + 'dai-tdm-slot-rx-mask' must be present in the ALSA sound card node for > + sub-nodes that involve the codec. The codec uses one 8bit time-slot per > + channel. > + 'dai-tdm-tdm-slot-with' must be set to 8. > + > + The IDT821034 codec also supports 5 gpios (SLIC signals) per channel. > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + - $ref: /schemas/gpio/gpio.yaml# This one is never needed. Drop. > + - $ref: dai-common.yaml# > + > +properties: > + compatible: > + const: renesas,idt821034 > + > + reg: > + description: > + SPI device address. > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 8192000 > + > + spi-cpha: true > + > + '#sound-dai-cells': > + const: 0 > + > + '#gpio-cells': > + const: 2 > + > + gpio-controller: true > + > +required: > + - compatible > + - reg > + - spi-cpha > + - '#sound-dai-cells' > + - gpio-controller > + - '#gpio-cells' > + > +additionalProperties: false This should be rather unevaluatedProperties: false, so other properties from spi-props and dai-common will work. > + > +examples: > + - | > + #include > + spi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + codec: idt821034@0 { Node names should be generic, so "audio-codec" https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "renesas,idt821034"; > + reg = <0>; > + spi-max-frequency = <8192000>; > + spi-cpha; > + #sound-dai-cells = <0>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + }; > + sound { > + compatible = "simple-audio-card"; Drop sound{} node. Not relevant to the case here and it's the same in every case of audio codec... unless something here is specific. But even the dai-tdm properties are sound card specific. Best regards, Krzysztof