Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6008555rwr; Tue, 9 May 2023 09:02:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ72OIGan9oHk3C/rsNsXvfKefO7l3TL/MK4LOr076oCE8gkTI5wi9BHgzqLiYUFVYcYJ4ag X-Received: by 2002:a05:6a20:7491:b0:f5:ae09:ce02 with SMTP id p17-20020a056a20749100b000f5ae09ce02mr19984314pzd.18.1683648171430; Tue, 09 May 2023 09:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683648171; cv=none; d=google.com; s=arc-20160816; b=lcpB53W4P1dd8xzHwQBFRO+rk1fFsl/nl1gdF3Iu7aFne7tdY9xgO4acPVZR5CUaP9 8ptR4bxro/7BmBcE1K/bEVw8T+CUKlrCtzn706m9taZk83XLEk6IGOAv/hrEEwxE3JnH tT3S1VDJ9Gq0LWW/P5eRBGwuB1EA/OquFCIb4rddGpCduZC6K67DJh8gqjGN+0wp26/K z034ncKL/HeRXCsF7Mk5BSI2CUZwzcNU0av8zdtALDIm+Q2RlRwugGKdCMnPw3JnPCsA n2+abwLLgk3q8+GDyaFMkAPuYBHSX+dHtUQJNoAviAnULMKUytfHSFsatlcxL3W/+4gw m1CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=YeoCLA3x3Kq/sVdHXLB1N+q9HKYyS+XbXT1uddFF6sk=; b=Oje1oK2VQ+nAkUPnlTIbhWo2+wSikG55TN/803P+FAEoug7OQZvpWJIe1LacNkTkGr ZSVXVW+XbLa1Rsn5hyzvztRfJzc01aQywTT9wtgNe572aSAQ1UUU43FSA6wH+73J8ebH QqDsn2fjvQQ+GG0g+/Ymaj+jnu1zl106eeJlsJubbvL1km/DFgEZLT6+SbdSuyCxvNPA 6pGhZqAkKEVhzcSUB41rh+zHwLzb4LZ0t2GH0oF8TYvBpZ/K5ZMEXgosEIXt643k+/5n XIIHpe9SIINGLJiuiu1ctZ6886se2L2uPpYWEh7+gLTjkKKcHxr75k9VwCZs2KazrnC0 QwCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cutebit.org header.s=mail header.b=TiHEPfnV; 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 j63-20020a638042000000b0053009feb3b0si1783699pgd.218.2023.05.09.09.02.35; Tue, 09 May 2023 09:02:51 -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=TiHEPfnV; 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 S235502AbjEIPti (ORCPT + 99 others); Tue, 9 May 2023 11:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235392AbjEIPtg (ORCPT ); Tue, 9 May 2023 11:49:36 -0400 X-Greylist: delayed 591 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 09 May 2023 08:49:35 PDT Received: from hutie.ust.cz (unknown [IPv6:2a03:3b40:fe:f0::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E190A3594 for ; Tue, 9 May 2023 08:49:35 -0700 (PDT) From: =?UTF-8?q?Martin=20Povi=C5=A1er?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cutebit.org; s=mail; t=1683646456; bh=YeoCLA3x3Kq/sVdHXLB1N+q9HKYyS+XbXT1uddFF6sk=; h=From:To:Cc:Subject:Date; b=TiHEPfnVZp4dGTX+Tmw65wXPSrvEHngEiN6n9ZJsIJ5U9BmWIg5qBfGYxSv4hi2lm XXPgUcWMsfn+LPz4OX9hUB6buRSLtEnHhms+jxLSPgh2FM+kRBoU9/io2MFdCm0Egt jexl6Sd9db22cCGzM/78m73nBi24cjHfuSe4GQM8= To: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Andrew Davis , Shi Fu , Shenghao Ding , kevin-lu@ti.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev, =?UTF-8?q?Martin=20Povi=C5=A1er?= Subject: [PATCH] ASoC: dt-bindings: Adjust #sound-dai-cells on TI's single-DAI codecs Date: Tue, 9 May 2023 17:34:12 +0200 Message-Id: <20230509153412.62847-1-povik+lin@cutebit.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,URIBL_BLOCKED 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 A bunch of TI's codecs have binding schemas which force #sound-dai-cells to one despite those codecs only having a single DAI. Allow for bindings with zero DAI cells and deprecate the former non-zero value. Signed-off-by: Martin PoviĊĦer --- Documentation/devicetree/bindings/sound/tas2562.yaml | 6 ++++-- Documentation/devicetree/bindings/sound/tas2770.yaml | 6 ++++-- Documentation/devicetree/bindings/sound/tas27xx.yaml | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/tas2562.yaml b/Documentation/devicetree/bindings/sound/tas2562.yaml index a5bb561bfcfb..31a3024ea789 100644 --- a/Documentation/devicetree/bindings/sound/tas2562.yaml +++ b/Documentation/devicetree/bindings/sound/tas2562.yaml @@ -55,7 +55,9 @@ properties: description: TDM TX current sense time slot. '#sound-dai-cells': - const: 1 + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] required: - compatible @@ -72,7 +74,7 @@ examples: codec: codec@4c { compatible = "ti,tas2562"; reg = <0x4c>; - #sound-dai-cells = <1>; + #sound-dai-cells = <0>; interrupt-parent = <&gpio1>; interrupts = <14>; shutdown-gpios = <&gpio1 15 0>; diff --git a/Documentation/devicetree/bindings/sound/tas2770.yaml b/Documentation/devicetree/bindings/sound/tas2770.yaml index 26088adb9dc2..8908bf1122e9 100644 --- a/Documentation/devicetree/bindings/sound/tas2770.yaml +++ b/Documentation/devicetree/bindings/sound/tas2770.yaml @@ -57,7 +57,9 @@ properties: - 1 # Falling edge '#sound-dai-cells': - const: 1 + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] required: - compatible @@ -74,7 +76,7 @@ examples: codec: codec@41 { compatible = "ti,tas2770"; reg = <0x41>; - #sound-dai-cells = <1>; + #sound-dai-cells = <0>; interrupt-parent = <&gpio1>; interrupts = <14>; reset-gpio = <&gpio1 15 0>; diff --git a/Documentation/devicetree/bindings/sound/tas27xx.yaml b/Documentation/devicetree/bindings/sound/tas27xx.yaml index 8cba01316855..a876545ec87d 100644 --- a/Documentation/devicetree/bindings/sound/tas27xx.yaml +++ b/Documentation/devicetree/bindings/sound/tas27xx.yaml @@ -50,7 +50,9 @@ properties: description: TDM TX voltage sense time slot. '#sound-dai-cells': - const: 1 + # The codec has a single DAI, the #sound-dai-cells=<1>; case is left in for backward + # compatibility but is deprecated. + enum: [0, 1] required: - compatible @@ -67,7 +69,7 @@ examples: codec: codec@38 { compatible = "ti,tas2764"; reg = <0x38>; - #sound-dai-cells = <1>; + #sound-dai-cells = <0>; interrupt-parent = <&gpio1>; interrupts = <14>; reset-gpios = <&gpio1 15 0>; -- 2.38.3