From mboxrd@z Thu Jan 1 00:00:00 1970 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61D3DC433EF for ; Thu, 27 Jan 2022 16:24:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 25765177B; Thu, 27 Jan 2022 17:23:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 25765177B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1643300659; bh=ebe8Db9zos3Y0K66TIduyt3eige+Mebuckpp/7lIeWk=; h=References:From:To:Subject:Date:In-reply-to:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=fFxmDYBdDxGBsPHbQ0omsj45sceEWYy+VPy7Hhdxv4/C39Oj3bjUGfRaxsr1lyruj NF9FxA2M423Q50Vg3GfRSFqdTd+EpIn5DbZ6qA9xwL9t9fRTjeRkIhTaZhqVhwehsf e/i4kXYGxsylDipkCA9Gu97pFuOZSM0GJAPVrSXE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BD998F80249; Thu, 27 Jan 2022 17:23:28 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4B108F80254; Thu, 27 Jan 2022 17:23:26 +0100 (CET) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9CE2BF800C8 for ; Thu, 27 Jan 2022 17:23:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9CE2BF800C8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=baylibre-com.20210112.gappssmtp.com header.i=@baylibre-com.20210112.gappssmtp.com header.b="fZcrsbxT" Received: by mail-wm1-x32e.google.com with SMTP id c192so2315286wma.4 for ; Thu, 27 Jan 2022 08:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=fZcrsbxTVL6oEX16YFICUECpoqbUxOVzhN91OZM/+KQu155OI7WSTG0MiQZJgjExmx jp0sIHft9IaJptYG6xxadWut2UoUpBdZjQx5gv7u1MkTlRl1hZUMLS10XNBqLS12Kqc0 fUGz36q/7SAVtW2er4/vNtRl/IAv5P9dXGTRghcXk838xHFTh0rpWC3QJ1hL6MFMFpmZ IOudqk9T82+pKnR3a4nT1d5H50M3AZIqsuTo+VhmilYtZbr/+DsaUTUQrPVXWALYkJoQ ua9KX5MavqeNx/aTRA4/yfAgHvPRa2gKr2mV89ocCP23NjXS4WJhAaF53CwKPll5S9QB nuww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=IituEt2gPogoLvZZDh4BHNdgHDEupVEYeV1WIKjbj0r3PYHRgyB6gJJkMHP6NF+7P5 QNYSa5Bkvrj9sbGbUoXpY0zcD2t/U70k4RVNmqecCPOEieRBk1/hS//x8Z14JyabfCIM UeSXBch7wCOvhr+EF68xXHz+yd58uaFfYW8yFnTupt97gUEnYqLqloIjIEkaxciR9dI4 9+cGmu+rOYzry/owCaL78QvMI77CGxh3aLiqxzu22tnoomjMgdy8wSC+v1QTh2KuoCbb bOjdheuBoJRlhTr4g7BhKSbdO4qJVM3C4pXaVsOG5Wz/f+TNojZwcpCdXBreEjWaUwOT C47A== X-Gm-Message-State: AOAM533x/eRsm7SOuOPP5TvhIJ1zmOH1lq4hPSHgsmW+Gks84f3TW7up eJcXI7+393PZhI1o5oNO8QZPRQ== X-Google-Smtp-Source: ABdhPJx68OlAQYPxDB8R5MGosp8NvBZZ+3uApWKaznWHP31o8jTnJGFiSqqrgwHrSvAVTiOnIthV0w== X-Received: by 2002:a1c:e914:: with SMTP id q20mr12306751wmc.89.1643300601853; Thu, 27 Jan 2022 08:23:21 -0800 (PST) Received: from localhost (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.gmail.com with ESMTPSA id v124sm6289832wme.30.2022.01.27.08.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 08:23:21 -0800 (PST) References: <20220126231427.1638089-1-robh@kernel.org> <1jtudp1rc1.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Jerome Brunet To: Rob Herring Subject: Re: [PATCH] ASoC: dt-bindings: Centralize the 'sound-dai' definition Date: Thu, 27 Jan 2022 17:20:49 +0100 In-reply-to: Message-ID: <1jlez1172f.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Cc: Linux-ALSA , Jonathan Bakker , Bjorn Andersson , Rohit kumar , Fabio Estevam , Cheng-Yi Chiang , Krzysztof Kozlowski , Krzysztof Kozlowski , Andy Gross , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-msm , Sascha Hauer , Mark Brown , linux-arm-kernel , Shengjiu Wang , Liam Girdwood , "linux-kernel@vger.kernel.org" , Pengutronix Kernel Team , Srinivas Kandagatla , Shawn Guo X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Thu 27 Jan 2022 at 08:35, Rob Herring wrote: > On Thu, Jan 27, 2022 at 3:05 AM Jerome Brunet wrote: >> >> >> On Wed 26 Jan 2022 at 17:14, Rob Herring wrote: >> >> > 'sound-dai' is a common property, but has duplicate type definitions. >> > Create a new common definition to define the type and then update all >> > the other occurrences to just define how many entries there are just >> > like other phandle+arg properties. >> > >> > The constraints on the number of entries is based on the examples and >> > could be wrong. >> > >> > Cc: Krzysztof Kozlowski >> > Signed-off-by: Rob Herring >> > --- >> > Please ack, this depends on commit abf0fee97313 ("dt-bindings: Improve >> > phandle-array schemas") in my tree. >> > --- >> > .../bindings/sound/amlogic,gx-sound-card.yaml | 4 ++-- >> > .../bindings/sound/google,sc7180-trogdor.yaml | 6 ++++-- >> > .../bindings/sound/imx-audio-card.yaml | 7 +++++-- >> > .../bindings/sound/qcom,sm8250.yaml | 10 +++++++--- >> > .../bindings/sound/samsung,aries-wm8994.yaml | 5 +---- >> > .../bindings/sound/samsung,midas-audio.yaml | 2 -- >> > .../bindings/sound/samsung,odroid.yaml | 9 +++------ >> > .../devicetree/bindings/sound/sound-dai.yaml | 20 +++++++++++++++++++ >> > 8 files changed, 42 insertions(+), 21 deletions(-) >> > create mode 100644 Documentation/devicetree/bindings/sound/sound-dai.yaml >> > >> > diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > index 2e35aeaa8781..8b5be4b92f35 100644 >> > --- a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > +++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > @@ -57,7 +57,7 @@ patternProperties: >> > rate >> > >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> > description: phandle of the CPU DAI >> > >> > patternProperties: >> > @@ -71,7 +71,7 @@ patternProperties: >> > >> > properties: >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> >> No min or max here. Links may have more than one codec. >> >> Ex: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts#n158 > > What do you mean? Every 'sound-dai' there only has 1 phande+args. Each > codec is a child node. Yes it is a child - sorry I misunderstood. I thought the MaxItems: 1 would limit the number of codecs For the amlogic part: Acked-by: Jerome Brunet > > Rob From mboxrd@z Thu Jan 1 00:00:00 1970 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 6DCAEC433F5 for ; Thu, 27 Jan 2022 16:23:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237525AbiA0QXY (ORCPT ); Thu, 27 Jan 2022 11:23:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243629AbiA0QXX (ORCPT ); Thu, 27 Jan 2022 11:23:23 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D359C061747 for ; Thu, 27 Jan 2022 08:23:23 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id f202-20020a1c1fd3000000b0034dd403f4fbso2231454wmf.1 for ; Thu, 27 Jan 2022 08:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=fZcrsbxTVL6oEX16YFICUECpoqbUxOVzhN91OZM/+KQu155OI7WSTG0MiQZJgjExmx jp0sIHft9IaJptYG6xxadWut2UoUpBdZjQx5gv7u1MkTlRl1hZUMLS10XNBqLS12Kqc0 fUGz36q/7SAVtW2er4/vNtRl/IAv5P9dXGTRghcXk838xHFTh0rpWC3QJ1hL6MFMFpmZ IOudqk9T82+pKnR3a4nT1d5H50M3AZIqsuTo+VhmilYtZbr/+DsaUTUQrPVXWALYkJoQ ua9KX5MavqeNx/aTRA4/yfAgHvPRa2gKr2mV89ocCP23NjXS4WJhAaF53CwKPll5S9QB nuww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=t603a//QNRE6silgLs60YV9ZeZlCVC22imWLqdapKhuVrMxSxSN5YLXp/dK/gpYjat OrX1zZLX6gGLtFrZVNzo55Kdw4i90u8saIXYIy8azDVI84NR99wtPlUeyEak9/vdGo01 N8vCdjdWy09dKsnODY7lBOWyapeLsuyShnZF9B62GAHr1Bbhq5hbksWp3x1FSg4dbFi4 N2CFscVL9H8Xg1A6eroKm8c0KRJfmbtehCrjnv9jcOEUsUnB8VMDdy1Q28GMSMyodPeC byhc1uIPlcj63GWfFnoaFAUySn0Bf6nCJS7RpV7knNQXVKRsNs787xBpsue9hG9DTP+x 48+g== X-Gm-Message-State: AOAM5325wc3jfKnpWFyiAW1OvLEN2Z7cb1kLi+YdCUjKo7glIMS+u6A3 0FHcTNBN53rT9NVyn6D2vkaEXA== X-Google-Smtp-Source: ABdhPJx68OlAQYPxDB8R5MGosp8NvBZZ+3uApWKaznWHP31o8jTnJGFiSqqrgwHrSvAVTiOnIthV0w== X-Received: by 2002:a1c:e914:: with SMTP id q20mr12306751wmc.89.1643300601853; Thu, 27 Jan 2022 08:23:21 -0800 (PST) Received: from localhost (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.gmail.com with ESMTPSA id v124sm6289832wme.30.2022.01.27.08.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 08:23:21 -0800 (PST) References: <20220126231427.1638089-1-robh@kernel.org> <1jtudp1rc1.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Jerome Brunet To: Rob Herring Cc: Liam Girdwood , Mark Brown , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Sylwester Nawrocki , Rohit kumar , Cheng-Yi Chiang , Shengjiu Wang , Srinivas Kandagatla , Jonathan Bakker , Krzysztof Kozlowski , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , linux-arm-msm Subject: Re: [PATCH] ASoC: dt-bindings: Centralize the 'sound-dai' definition Date: Thu, 27 Jan 2022 17:20:49 +0100 In-reply-to: Message-ID: <1jlez1172f.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Thu 27 Jan 2022 at 08:35, Rob Herring wrote: > On Thu, Jan 27, 2022 at 3:05 AM Jerome Brunet wrote: >> >> >> On Wed 26 Jan 2022 at 17:14, Rob Herring wrote: >> >> > 'sound-dai' is a common property, but has duplicate type definitions. >> > Create a new common definition to define the type and then update all >> > the other occurrences to just define how many entries there are just >> > like other phandle+arg properties. >> > >> > The constraints on the number of entries is based on the examples and >> > could be wrong. >> > >> > Cc: Krzysztof Kozlowski >> > Signed-off-by: Rob Herring >> > --- >> > Please ack, this depends on commit abf0fee97313 ("dt-bindings: Improve >> > phandle-array schemas") in my tree. >> > --- >> > .../bindings/sound/amlogic,gx-sound-card.yaml | 4 ++-- >> > .../bindings/sound/google,sc7180-trogdor.yaml | 6 ++++-- >> > .../bindings/sound/imx-audio-card.yaml | 7 +++++-- >> > .../bindings/sound/qcom,sm8250.yaml | 10 +++++++--- >> > .../bindings/sound/samsung,aries-wm8994.yaml | 5 +---- >> > .../bindings/sound/samsung,midas-audio.yaml | 2 -- >> > .../bindings/sound/samsung,odroid.yaml | 9 +++------ >> > .../devicetree/bindings/sound/sound-dai.yaml | 20 +++++++++++++++++++ >> > 8 files changed, 42 insertions(+), 21 deletions(-) >> > create mode 100644 Documentation/devicetree/bindings/sound/sound-dai.yaml >> > >> > diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > index 2e35aeaa8781..8b5be4b92f35 100644 >> > --- a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > +++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > @@ -57,7 +57,7 @@ patternProperties: >> > rate >> > >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> > description: phandle of the CPU DAI >> > >> > patternProperties: >> > @@ -71,7 +71,7 @@ patternProperties: >> > >> > properties: >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> >> No min or max here. Links may have more than one codec. >> >> Ex: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts#n158 > > What do you mean? Every 'sound-dai' there only has 1 phande+args. Each > codec is a child node. Yes it is a child - sorry I misunderstood. I thought the MaxItems: 1 would limit the number of codecs For the amlogic part: Acked-by: Jerome Brunet > > Rob From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6B5AC433EF for ; Thu, 27 Jan 2022 16:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:In-reply-to: Date:Subject:Cc:To:From:References:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Zplk8+h28ZVQsGyoFatW+FDCABpEtgIlZDcYPJFLgC8=; b=0ZLqxFJE7S0qKC yp3TWQP0nBwVC22ps1tN25xDEgAfhODK0o0UJeVIkpxtrISPR3O2gHadjexlPcOqzOdQmd2Cxb71u fnqpCNdUOzp9dKGkMUthGJ8g5KriN9UceXykCpzZ6kMLIRkmvZKbVK89zF+X4aYN8IWGh5RoS4tAN QUb6w7UBbVmMw1hyH+Vw++DdDL0DRCfgrShJ8ajGK8YvokK8fhmDA2MJ1rtAzHwHYkga6rPNYCSve Oqr2yWFIgIt7l38uyRa5/owWc1TMGS1No3sG8GRsblq8fxNJ5Fi3xVFAwyO9NgjYtoyc2xqoUAM/H 9g+2X6Dhdy173plgUqcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD7fN-00GWKY-CE; Thu, 27 Jan 2022 16:30:34 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD7YS-00GT69-Et for linux-arm-kernel@lists.infradead.org; Thu, 27 Jan 2022 16:23:27 +0000 Received: by mail-wm1-x32f.google.com with SMTP id n8so2315235wmk.3 for ; Thu, 27 Jan 2022 08:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=fZcrsbxTVL6oEX16YFICUECpoqbUxOVzhN91OZM/+KQu155OI7WSTG0MiQZJgjExmx jp0sIHft9IaJptYG6xxadWut2UoUpBdZjQx5gv7u1MkTlRl1hZUMLS10XNBqLS12Kqc0 fUGz36q/7SAVtW2er4/vNtRl/IAv5P9dXGTRghcXk838xHFTh0rpWC3QJ1hL6MFMFpmZ IOudqk9T82+pKnR3a4nT1d5H50M3AZIqsuTo+VhmilYtZbr/+DsaUTUQrPVXWALYkJoQ ua9KX5MavqeNx/aTRA4/yfAgHvPRa2gKr2mV89ocCP23NjXS4WJhAaF53CwKPll5S9QB nuww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=dszbD2iJpZiPeHo8KU4CPZgugNBsta//XmHDun3F64c=; b=GxGj61JZDzyCegZWWw+Wc+obZcKrSQJVgsAQ8IO4miSXXu6/yTL+Nz5nPSGw+5J3Yi 4hcwiTweW2hsNvAyOBVq5NUI6DpfiTu+0oVyWf/C0oyEaYtv14EwZBrp8y4YMlFJcjb3 ZR3SHm8N+w/s01MgcdrNLIwk4Y+myUMgqk9RVfFQXreI7C5fDO2uxBsFc5DNUv5A+kbe 6/3gepat1SXWVAszZw9grc5CwogljXghLwixPsKGr5bG6dkcDio+wO4XKiFYZavPqHyt aOQSdstQ80HvSOrBHWeFx0DrzosgPsYpnL1893RGEdHMzY1Lb/TCb/rWkAgqWotBYLOm 92qw== X-Gm-Message-State: AOAM531W3ZdmcenWOKGZQQQ+CMbjxfdHrIvgQpi4hXLUhtQsQlBjzzJw KS7OIVFIaHU3Iuk0OqIPJT6cgQ== X-Google-Smtp-Source: ABdhPJx68OlAQYPxDB8R5MGosp8NvBZZ+3uApWKaznWHP31o8jTnJGFiSqqrgwHrSvAVTiOnIthV0w== X-Received: by 2002:a1c:e914:: with SMTP id q20mr12306751wmc.89.1643300601853; Thu, 27 Jan 2022 08:23:21 -0800 (PST) Received: from localhost (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.gmail.com with ESMTPSA id v124sm6289832wme.30.2022.01.27.08.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 08:23:21 -0800 (PST) References: <20220126231427.1638089-1-robh@kernel.org> <1jtudp1rc1.fsf@starbuckisacylon.baylibre.com> User-agent: mu4e 1.6.10; emacs 27.1 From: Jerome Brunet To: Rob Herring Cc: Liam Girdwood , Mark Brown , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Sylwester Nawrocki , Rohit kumar , Cheng-Yi Chiang , Shengjiu Wang , Srinivas Kandagatla , Jonathan Bakker , Krzysztof Kozlowski , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-arm-kernel , linux-arm-msm Subject: Re: [PATCH] ASoC: dt-bindings: Centralize the 'sound-dai' definition Date: Thu, 27 Jan 2022 17:20:49 +0100 In-reply-to: Message-ID: <1jlez1172f.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_082324_616868_BC886B0F X-CRM114-Status: GOOD ( 23.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu 27 Jan 2022 at 08:35, Rob Herring wrote: > On Thu, Jan 27, 2022 at 3:05 AM Jerome Brunet wrote: >> >> >> On Wed 26 Jan 2022 at 17:14, Rob Herring wrote: >> >> > 'sound-dai' is a common property, but has duplicate type definitions. >> > Create a new common definition to define the type and then update all >> > the other occurrences to just define how many entries there are just >> > like other phandle+arg properties. >> > >> > The constraints on the number of entries is based on the examples and >> > could be wrong. >> > >> > Cc: Krzysztof Kozlowski >> > Signed-off-by: Rob Herring >> > --- >> > Please ack, this depends on commit abf0fee97313 ("dt-bindings: Improve >> > phandle-array schemas") in my tree. >> > --- >> > .../bindings/sound/amlogic,gx-sound-card.yaml | 4 ++-- >> > .../bindings/sound/google,sc7180-trogdor.yaml | 6 ++++-- >> > .../bindings/sound/imx-audio-card.yaml | 7 +++++-- >> > .../bindings/sound/qcom,sm8250.yaml | 10 +++++++--- >> > .../bindings/sound/samsung,aries-wm8994.yaml | 5 +---- >> > .../bindings/sound/samsung,midas-audio.yaml | 2 -- >> > .../bindings/sound/samsung,odroid.yaml | 9 +++------ >> > .../devicetree/bindings/sound/sound-dai.yaml | 20 +++++++++++++++++++ >> > 8 files changed, 42 insertions(+), 21 deletions(-) >> > create mode 100644 Documentation/devicetree/bindings/sound/sound-dai.yaml >> > >> > diff --git a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > index 2e35aeaa8781..8b5be4b92f35 100644 >> > --- a/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > +++ b/Documentation/devicetree/bindings/sound/amlogic,gx-sound-card.yaml >> > @@ -57,7 +57,7 @@ patternProperties: >> > rate >> > >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> > description: phandle of the CPU DAI >> > >> > patternProperties: >> > @@ -71,7 +71,7 @@ patternProperties: >> > >> > properties: >> > sound-dai: >> > - $ref: /schemas/types.yaml#/definitions/phandle-array >> > + maxItems: 1 >> >> No min or max here. Links may have more than one codec. >> >> Ex: >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts#n158 > > What do you mean? Every 'sound-dai' there only has 1 phande+args. Each > codec is a child node. Yes it is a child - sorry I misunderstood. I thought the MaxItems: 1 would limit the number of codecs For the amlogic part: Acked-by: Jerome Brunet > > Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel