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 2AB95C433EF for ; Wed, 4 May 2022 20:40:02 +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 19112175F; Wed, 4 May 2022 22:39:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 19112175F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1651696800; bh=FcQ9gEuvYR1sQAz11EGS2hatFJFlUdNPtc2CHaxljk8=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JC3hOjdFfYZYuhFQPdouOCu9h5/RLi6wYrN3ULVj5XHbe2Slb2MCzKcOvGxdjcLIk 3G7EUi4ntHhS43TOCFYn5MVtD4FPM7yAC60R8ki13inT0I4lVjRMgT2D4eZKqq9nTS fdBfMWN1IGjZT04Hur8Ib179jQ3K7tk2SJpLcHfQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id BFBBEF800D3; Wed, 4 May 2022 22:39:09 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B7075F80163; Wed, 4 May 2022 22:39:07 +0200 (CEST) Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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 57D5DF800D3 for ; Wed, 4 May 2022 22:38:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 57D5DF800D3 Received: by mail-oi1-f169.google.com with SMTP id q8so2358712oif.13 for ; Wed, 04 May 2022 13:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=AcpEU69sAJkwiV3catvTf9Ba2Nirs+uxT6TgvfUDezQ=; b=eULnq6sluvfDaGdbxXxflDp6+Avnd9+lFqn7N2ykrnR1yqTZYsa5r1GsV6LeucliNj 4dI3Y1AenP4LQqepvrtbUhR7bKwJkkzWv175DIAFs2xvSJ8KqV/0dQ936NjJXiRQg2oc 0KIuKiBOSBVniTyh51lPbVGs6bAz+emcf1XQWUQ2i7qOqDpy2wz96rfWRrWyg40l1XTB SVjiil5mJAccgBYRgYArfwOCbP9oIRIUY0qt+MZ2xJnEBjIDdrxsvEI5cdSUHYvhP7Pb O0CENTubfW8PhPUjNNOpYRX5raeYbjAkyQ59HvCbv+xa/RI6EjAR6+Xvue5KVDFW+NF+ n7jw== X-Gm-Message-State: AOAM5312O2TfsHsAExl0qNojAnajsGAbX0vyYXSJYo5Bcr8wDUAHK8Yh Sk5SXXbHHhf514LA01LMxw== X-Google-Smtp-Source: ABdhPJxqGL2rYGTLd4lmJ9hpkXvtgU1omEZJ82uy+vc3bVbntykS23hu/PcAgWaMqP8CbQy4JAssJw== X-Received: by 2002:aca:545:0:b0:325:6e7:992d with SMTP id 66-20020aca0545000000b0032506e7992dmr673969oif.244.1651696737433; Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id dv2-20020a056870d88200b000e93d386d97sm8387005oab.31.2022.05.04.13.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: (nullmailer pid 2187220 invoked by uid 1000); Wed, 04 May 2022 20:38:56 -0000 Date: Wed, 4 May 2022 15:38:56 -0500 From: Rob Herring To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Subject: Re: [PATCH 1/3] ASoC: dt-bindings: mediatek: mt8192: Add i2s-share properties Message-ID: References: <20220429203039.2207848-1-nfraprado@collabora.com> <20220429203039.2207848-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220429203039.2207848-2-nfraprado@collabora.com> Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Liam Girdwood , Jiaxin Yu , linux-kernel@vger.kernel.org, Shane Chien , Mark Brown , linux-mediatek@lists.infradead.org, Krzysztof Kozlowski , Matthias Brugger , kernel@collabora.com, linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno 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 Fri, Apr 29, 2022 at 04:30:37PM -0400, Nícolas F. R. A. Prado wrote: > The Mediatek AFE PCM controller for MT8192 allows sharing of an I2S bus > between two busses. Add a pattern for these properties in the > dt-binding. > > Signed-off-by: Nícolas F. R. A. Prado > > --- > > Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > index 7a25bc9b8060..5b03c8dbf318 100644 > --- a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > +++ b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > @@ -54,6 +54,11 @@ properties: > - const: aud_infra_clk > - const: aud_infra_26m_clk > > +patternProperties: > + "^i2s[0-35-9]-share$": > + description: Name of the I2S bus that is shared with this bus > + pattern: "^I2S[0-35-9]$" Why not a phandle to the the other bus? That would be the DT way to do it. But I'm not sure I really understand who is sharing what here. > + > required: > - compatible > - interrupts > -- > 2.36.0 > > 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 0E9BFC433F5 for ; Wed, 4 May 2022 20:39:15 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vcwrs2sbEho37GmcM0p6X84lk8DyhYAAHF5XVg42thc=; b=NoLcgwlXRniwRK JRHMoX5BiAO7dwxIgzpFPVQZXpdqiYqoTUgo95wkl93fSeCdfd2gn2t/jMa9EaC6zQJv9WvZ/moxt FFfsa9e8PEO+0rcJ48O7AeUKwwqmVUEN15zM363gQxgl2RkUfb6K6U3m8p+1v0yab6Xa5mquYyOom rP787xnCOicQdIAE8fVt+mQdr0S+67GTcpnf/9Zc/kcKQKYrgmNeuEk2o9E9b0fTstz4Wf6MOe0tO 415xEmz1dj7dRN8+iYrgBPKYmYVEGc0JvwERGxThlC+153RyjKtDzhOO8ZCLys2BBEbhVlSslnCfY ps+YXRP5ljOXXyJ41svQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmLm9-00CcGw-VL; Wed, 04 May 2022 20:39:10 +0000 Received: from mail-oi1-f171.google.com ([209.85.167.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmLly-00CcBH-6W; Wed, 04 May 2022 20:38:59 +0000 Received: by mail-oi1-f171.google.com with SMTP id l203so2412651oif.0; Wed, 04 May 2022 13:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=AcpEU69sAJkwiV3catvTf9Ba2Nirs+uxT6TgvfUDezQ=; b=yXHxV2oxpp1zNKlRUkWWV8rm6GxIMyPd8nTe8s+KDYEyaDPaSKhh7vVff7aTxqOCKh ZK6LRVuE4RXZm1HEkOpItcu/YZLtWuBIrXK4UlK7xcGh38XesVMlCiC0bTeoASWW3IT3 XulYrynJNthWDtTDXNJkX5ZIfJj49g+7N2BbRWYEs22zsNgNFpgb5vcB1o4DX7zsPxUD 7he5SkaPHQIXHGobmnwuhMDr5ZCmtn4XebW1w1WwcncxvDP8W1K1ffqPUoZQp135BADh hS+l/E8bGRKAdwEBptm9KN7lLXtXdm4Pl0/1SpCWqyRxXDXgHoYRPJ9t6M68SxiSq8fb folA== X-Gm-Message-State: AOAM530PTjxPTDngrOqp1VNrG4ja0YP1uArBO74Tc6QoUTz/8h3ic6BX wLKFoOYyBqCtX1/CLq4eCA== X-Google-Smtp-Source: ABdhPJxqGL2rYGTLd4lmJ9hpkXvtgU1omEZJ82uy+vc3bVbntykS23hu/PcAgWaMqP8CbQy4JAssJw== X-Received: by 2002:aca:545:0:b0:325:6e7:992d with SMTP id 66-20020aca0545000000b0032506e7992dmr673969oif.244.1651696737433; Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id dv2-20020a056870d88200b000e93d386d97sm8387005oab.31.2022.05.04.13.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: (nullmailer pid 2187220 invoked by uid 1000); Wed, 04 May 2022 20:38:56 -0000 Date: Wed, 4 May 2022 15:38:56 -0500 From: Rob Herring To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Mark Brown , kernel@collabora.com, AngeloGioacchino Del Regno , Jiaxin Yu , Krzysztof Kozlowski , Liam Girdwood , Matthias Brugger , Shane Chien , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 1/3] ASoC: dt-bindings: mediatek: mt8192: Add i2s-share properties Message-ID: References: <20220429203039.2207848-1-nfraprado@collabora.com> <20220429203039.2207848-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220429203039.2207848-2-nfraprado@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_133858_300431_DE876856 X-CRM114-Status: GOOD ( 16.99 ) X-BeenThere: linux-mediatek@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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Fri, Apr 29, 2022 at 04:30:37PM -0400, N=EDcolas F. R. A. Prado wrote: > The Mediatek AFE PCM controller for MT8192 allows sharing of an I2S bus > between two busses. Add a pattern for these properties in the > dt-binding. > = > Signed-off-by: N=EDcolas F. R. A. Prado > = > --- > = > Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > = > diff --git a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml = b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > index 7a25bc9b8060..5b03c8dbf318 100644 > --- a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > +++ b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > @@ -54,6 +54,11 @@ properties: > - const: aud_infra_clk > - const: aud_infra_26m_clk > = > +patternProperties: > + "^i2s[0-35-9]-share$": > + description: Name of the I2S bus that is shared with this bus > + pattern: "^I2S[0-35-9]$" Why not a phandle to the the other bus? That would be the DT way to do = it. But I'm not sure I really understand who is sharing what here. > + > required: > - compatible > - interrupts > -- = > 2.36.0 > = > = _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek 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 936D4C433EF for ; Wed, 4 May 2022 20:39:59 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s72bFlCI0XLPvw1U5AomprSRKndVolQjudYL+z+87qg=; b=Hst/1sXnG6qJBt dmUxJToW46F21vxKOzXcxzFoWaheDqgC1teVjqpRLzWq/ZbbbJ+hbPcYh+RpOChBA32RY4biF7CCI CMGvGA3whrly7BibvQSajbfyOxzHK/82CJZsnMLg4a0f1cu7aiOo/20SfGGy/U4QyeDfa1MfaWgHP hZFegGalUfnd25f5AhxQZfbBSz6D2YWmi/Xj0Gi7y4J74wZfwbftFsObvVCmT+Gjvr+epArbuYDGV tqwF1qDBvK6xkee508QfDZv8VkaCR1H0J7TQ2j9BRZScATbL3T5pO7Bj87QjqTVABNBuOQpxaJdi6 Dy+zWNXXfLNzLmTL3g1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmLm0-00CcCI-GL; Wed, 04 May 2022 20:39:00 +0000 Received: from mail-oi1-f171.google.com ([209.85.167.171]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmLly-00CcBH-6W; Wed, 04 May 2022 20:38:59 +0000 Received: by mail-oi1-f171.google.com with SMTP id l203so2412651oif.0; Wed, 04 May 2022 13:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=AcpEU69sAJkwiV3catvTf9Ba2Nirs+uxT6TgvfUDezQ=; b=yXHxV2oxpp1zNKlRUkWWV8rm6GxIMyPd8nTe8s+KDYEyaDPaSKhh7vVff7aTxqOCKh ZK6LRVuE4RXZm1HEkOpItcu/YZLtWuBIrXK4UlK7xcGh38XesVMlCiC0bTeoASWW3IT3 XulYrynJNthWDtTDXNJkX5ZIfJj49g+7N2BbRWYEs22zsNgNFpgb5vcB1o4DX7zsPxUD 7he5SkaPHQIXHGobmnwuhMDr5ZCmtn4XebW1w1WwcncxvDP8W1K1ffqPUoZQp135BADh hS+l/E8bGRKAdwEBptm9KN7lLXtXdm4Pl0/1SpCWqyRxXDXgHoYRPJ9t6M68SxiSq8fb folA== X-Gm-Message-State: AOAM530PTjxPTDngrOqp1VNrG4ja0YP1uArBO74Tc6QoUTz/8h3ic6BX wLKFoOYyBqCtX1/CLq4eCA== X-Google-Smtp-Source: ABdhPJxqGL2rYGTLd4lmJ9hpkXvtgU1omEZJ82uy+vc3bVbntykS23hu/PcAgWaMqP8CbQy4JAssJw== X-Received: by 2002:aca:545:0:b0:325:6e7:992d with SMTP id 66-20020aca0545000000b0032506e7992dmr673969oif.244.1651696737433; Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id dv2-20020a056870d88200b000e93d386d97sm8387005oab.31.2022.05.04.13.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: (nullmailer pid 2187220 invoked by uid 1000); Wed, 04 May 2022 20:38:56 -0000 Date: Wed, 4 May 2022 15:38:56 -0500 From: Rob Herring To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Mark Brown , kernel@collabora.com, AngeloGioacchino Del Regno , Jiaxin Yu , Krzysztof Kozlowski , Liam Girdwood , Matthias Brugger , Shane Chien , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 1/3] ASoC: dt-bindings: mediatek: mt8192: Add i2s-share properties Message-ID: References: <20220429203039.2207848-1-nfraprado@collabora.com> <20220429203039.2207848-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220429203039.2207848-2-nfraprado@collabora.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220504_133858_300431_DE876856 X-CRM114-Status: GOOD ( 16.99 ) 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="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 29, 2022 at 04:30:37PM -0400, N=EDcolas F. R. A. Prado wrote: > The Mediatek AFE PCM controller for MT8192 allows sharing of an I2S bus > between two busses. Add a pattern for these properties in the > dt-binding. > = > Signed-off-by: N=EDcolas F. R. A. Prado > = > --- > = > Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > = > diff --git a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml = b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > index 7a25bc9b8060..5b03c8dbf318 100644 > --- a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > +++ b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > @@ -54,6 +54,11 @@ properties: > - const: aud_infra_clk > - const: aud_infra_26m_clk > = > +patternProperties: > + "^i2s[0-35-9]-share$": > + description: Name of the I2S bus that is shared with this bus > + pattern: "^I2S[0-35-9]$" Why not a phandle to the the other bus? That would be the DT way to do = it. But I'm not sure I really understand who is sharing what here. > + > required: > - compatible > - interrupts > -- = > 2.36.0 > = > = _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 72C41C433F5 for ; Wed, 4 May 2022 20:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343785AbiEDUmf (ORCPT ); Wed, 4 May 2022 16:42:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235824AbiEDUmf (ORCPT ); Wed, 4 May 2022 16:42:35 -0400 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 226FA4FC5E; Wed, 4 May 2022 13:38:58 -0700 (PDT) Received: by mail-oi1-f169.google.com with SMTP id v65so2365673oig.10; Wed, 04 May 2022 13:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=AcpEU69sAJkwiV3catvTf9Ba2Nirs+uxT6TgvfUDezQ=; b=aI1+bxMjx+oP8zZqlFHPpvekCh3BHxh13601zAKUIN8tanqW7Egx5swO7Xp0CIqVZD TaWQSaJ8lB+OoImnVOUPEaljDAg5DKyiSRz7DzDJEHyPzHCwTZXJ5TWUQlZ/8ratyCjl +Kg1DeBy36IkFh5aHPdls+kIT4JpKamE69rPgv3YegqtF2CO8HD3XH3Ww6SxToMngjpI TLLOXIaaIOBf/XiuhPb59JS5/mSgxKJ6VAqkY04xB4OrgB9afE77JZo2vi8THBHL+gN+ 821bOIR1hfafGixQvhSxciSKZguie+2em4L95giU2SSooPGimF4348SpM603/WPS41bl 2BbQ== X-Gm-Message-State: AOAM533AHZViDc9k4pzR205BKZftWV9qzt0eXDPARwCKYBdHBSUOGcqI J5Fo3uRKvkgQgwHATKdaFA== X-Google-Smtp-Source: ABdhPJxqGL2rYGTLd4lmJ9hpkXvtgU1omEZJ82uy+vc3bVbntykS23hu/PcAgWaMqP8CbQy4JAssJw== X-Received: by 2002:aca:545:0:b0:325:6e7:992d with SMTP id 66-20020aca0545000000b0032506e7992dmr673969oif.244.1651696737433; Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id dv2-20020a056870d88200b000e93d386d97sm8387005oab.31.2022.05.04.13.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 13:38:57 -0700 (PDT) Received: (nullmailer pid 2187220 invoked by uid 1000); Wed, 04 May 2022 20:38:56 -0000 Date: Wed, 4 May 2022 15:38:56 -0500 From: Rob Herring To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: Mark Brown , kernel@collabora.com, AngeloGioacchino Del Regno , Jiaxin Yu , Krzysztof Kozlowski , Liam Girdwood , Matthias Brugger , Shane Chien , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 1/3] ASoC: dt-bindings: mediatek: mt8192: Add i2s-share properties Message-ID: References: <20220429203039.2207848-1-nfraprado@collabora.com> <20220429203039.2207848-2-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220429203039.2207848-2-nfraprado@collabora.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Fri, Apr 29, 2022 at 04:30:37PM -0400, Nícolas F. R. A. Prado wrote: > The Mediatek AFE PCM controller for MT8192 allows sharing of an I2S bus > between two busses. Add a pattern for these properties in the > dt-binding. > > Signed-off-by: Nícolas F. R. A. Prado > > --- > > Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > index 7a25bc9b8060..5b03c8dbf318 100644 > --- a/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > +++ b/Documentation/devicetree/bindings/sound/mt8192-afe-pcm.yaml > @@ -54,6 +54,11 @@ properties: > - const: aud_infra_clk > - const: aud_infra_26m_clk > > +patternProperties: > + "^i2s[0-35-9]-share$": > + description: Name of the I2S bus that is shared with this bus > + pattern: "^I2S[0-35-9]$" Why not a phandle to the the other bus? That would be the DT way to do it. But I'm not sure I really understand who is sharing what here. > + > required: > - compatible > - interrupts > -- > 2.36.0 > >