From patchwork Fri Apr 29 20:30:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 569044 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 C832BC433EF for ; Fri, 29 Apr 2022 20:32:19 +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 03D3E15E0; Fri, 29 Apr 2022 22:31:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 03D3E15E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1651264338; bh=iA81JYnLAQQ56KXiWfdUYhI2+oyfPVXJFjeDzQn33UQ=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GnJwJk+O+yffCiC6eFdPWTVEiVuvNw4qL8sicGWDTFu/EGwzsLZhheIq8qDPgWyA8 LnEuB2bvYNN/XxHsRaGV3757xwztOpF2CTUdBvi1/tURrfUo9UXN+ibA3rRabOiiUs gJ+hRDG0E5OArJSFIugJKzI4fZSGud3FHBQ9iygg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 10C4CF8012B; Fri, 29 Apr 2022 22:31:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 41581F804B2; Fri, 29 Apr 2022 22:30:59 +0200 (CEST) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F3DF8F8007E for ; Fri, 29 Apr 2022 22:30:52 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F3DF8F8007E Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="IEXLTWvq" Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 13ED91F469D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651264251; bh=iA81JYnLAQQ56KXiWfdUYhI2+oyfPVXJFjeDzQn33UQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IEXLTWvqDvhD8CXoQFsb1+gzKNMCACdb8rlEhLrPyFd5Ezy+kLRcmFRgNDdCBsuKN F24McZ6t0CsiSnp6455dCY4H1vu7lXGmcYxl5ke4thYo5fhgXDCtnWhmwohSXFFCEj HR3NsmGWzRONXwoUFTxpZ98PUXsHAO6evwLPcOIAtkBXwsmkitIWiu1guxTspIsf2W I1oW750Zw+95Up0iRS8Enhwhs6IwLCwc7gx+FF85yE0Y6AuXegjBGms3Z/+t5khTEL tMxYkikxZsfLJf6KdIeL8LLyPo6mozWksZutDOsDDeMHPdcQdcmlNv0c3MRm5bX/y6 35CkcCaxg8KMw== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown Subject: [PATCH 1/3] ASoC: dt-bindings: mediatek: mt8192: Add i2s-share properties Date: Fri, 29 Apr 2022 16:30:37 -0400 Message-Id: <20220429203039.2207848-2-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429203039.2207848-1-nfraprado@collabora.com> References: <20220429203039.2207848-1-nfraprado@collabora.com> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, =?utf-8?b?TsOt?= =?utf-8?b?Y29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Liam Girdwood , Jiaxin Yu , linux-kernel@vger.kernel.org, Shane Chien , Rob Herring , 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" 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]$" + required: - compatible - interrupts From patchwork Fri Apr 29 20:30:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 569043 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 867EBC433F5 for ; Fri, 29 Apr 2022 20:32:46 +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 C46D81632; Fri, 29 Apr 2022 22:31:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C46D81632 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1651264364; bh=WhBscFKU5VQm6TYc14qc9KQvHxuRNZWGVfBdWHdQHXs=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ajCTgnS3ey9MGlQgXTgV0E6SoX0oxRP/4pHdY4eCEoDMLWaccG2A13Hr2Vq2GMUIi obwHEMdp27DmH1wrUUlKI50VhZ08cZK+ZBXh5cWnquc2drJcK2tnyYhaZK4NKEqEh4 YxxxqyFij/a2ksE0bThT75tcON4jWNWrp46FIXMM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 27FA1F80507; Fri, 29 Apr 2022 22:31:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3D804F802E3; Fri, 29 Apr 2022 22:31:02 +0200 (CEST) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B2E7AF802E3 for ; Fri, 29 Apr 2022 22:30:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B2E7AF802E3 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="nzrNWsSp" Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 34B901F469DE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651264254; bh=WhBscFKU5VQm6TYc14qc9KQvHxuRNZWGVfBdWHdQHXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nzrNWsSp6JZEP7EJUXWhPnsMk9MF6vL/DrIUeXX8sAUc7eTH/ttqpRkuUwOpCoBgw O5N9OanBEMtqznT8pilVThDDRbI8bluWX3FCxZH40EjMhAGCM6QxgBduuLIHxCSQOy ufYCw801a3bIomSWdEqqjw9F3GN9XkZzTSEaY2IUCOY4DaNkG5ybamBrF5YaUpctN9 5/sUKNOZX3FlSyGf0iBJ1FzEEpUafIhvmMJhVCWMFu+NZWVAz/8Hh8fzqZVco9vFl5 lHXKzVHbuljWmzpF2qEn3IdVe84Fl6u4jKFHW0PSnjdp+OieSrmOt25FDlzeHhynHE 0LY1b2ELlZ31w== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown Subject: [PATCH 2/3] ASoC: dt-bindings: rt1015p: Add #sound-dai-cells Date: Fri, 29 Apr 2022 16:30:38 -0400 Message-Id: <20220429203039.2207848-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429203039.2207848-1-nfraprado@collabora.com> References: <20220429203039.2207848-1-nfraprado@collabora.com> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, =?utf-8?b?TsOt?= =?utf-8?b?Y29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Liam Girdwood , linux-kernel@vger.kernel.org, Tzung-Bi Shih , Rob Herring , Krzysztof Kozlowski , kernel@collabora.com, 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" The rt1015p codec can be pointed to through a sound-dai property to be used as part of a machine sound driver. dtc expects #sound-dai-cells to be defined in the codec's node in those cases, so add it in the dt-binding and set it to 0. Signed-off-by: Nícolas F. R. A. Prado --- Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml index fdb7f295ef2d..1d73204451b1 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt1015p.yaml @@ -25,6 +25,9 @@ properties: 0 means shut down; 1 means power on. maxItems: 1 + "#sound-dai-cells": + const: 0 + required: - compatible From patchwork Fri Apr 29 20:30:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 567486 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 CBF0EC433EF for ; Fri, 29 Apr 2022 20:32:38 +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 772DC829; Fri, 29 Apr 2022 22:31:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 772DC829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1651264356; bh=TGXOnKC566KySlgE7TthYsPemPWKYachLNySsPYvAsg=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rWFpQ5DOa7GJZQabqj4gwZC+PpF1mbG9eLsO3aDi9CC4tQ9H7SI2yGYhDZen+9nyj Iuva0XtLwVaZOP/eac4Ayby3uAzCS05xdKlfqsAK7mrwhYnjfvA1VwL3ejz3jhYFQ4 zitVz51pcuW6dYKla8cvvJgLR5dYFIZheZEI42Sc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A19A6F8047B; Fri, 29 Apr 2022 22:31:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3A9E8F804FD; Fri, 29 Apr 2022 22:31:02 +0200 (CEST) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8C998F8047B for ; Fri, 29 Apr 2022 22:30:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8C998F8047B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="JGBsEe1e" Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 8504F1F469DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651264256; bh=TGXOnKC566KySlgE7TthYsPemPWKYachLNySsPYvAsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JGBsEe1eRAd8NEWxwWO63Bgl5dZPFLGJlFdaRgKMETqsbNVgwXwcRfRlEFgcJJCyS ooSnwfpyncNz0b9V2AU76cO2jhtczgyap0FFpH/nIMS1NmP6xcx16YzEak2F/OUwYQ PgUgwY8wePE7RHEdwIuyqlLyM1e640JeXNvHWhG+dTcBPE/ZMTrDJEsCCKdjxLrg+C Si1Z4cK7N0emfsOSCGIMsZ9jcHJTj+FNk400VBay/6N+CnuPZ8D12I7/6w1S5HinvZ on70teL+QK4YgcrORHVrjzo4PXuPOjhTwo+xhyHngAwqz/7xq/xP/T33A/GHQbXv96 IE6c3nISQweTA== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown Subject: [PATCH 3/3] ASoC: dt-bindings: rt5682: Add #sound-dai-cells Date: Fri, 29 Apr 2022 16:30:39 -0400 Message-Id: <20220429203039.2207848-4-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429203039.2207848-1-nfraprado@collabora.com> References: <20220429203039.2207848-1-nfraprado@collabora.com> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, =?utf-8?b?TsOt?= =?utf-8?b?Y29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Liam Girdwood , linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , kernel@collabora.com, 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" The rt5682 codec can be pointed to through a sound-dai property to be used as part of a machine sound driver. dtc expects #sound-dai-cells to be defined in the codec's node in those cases, so add it in the dt-binding and set it to 0. Signed-off-by: Nícolas F. R. A. Prado --- Documentation/devicetree/bindings/sound/rt5682.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt index cd8c53d8497e..c5f2b8febcee 100644 --- a/Documentation/devicetree/bindings/sound/rt5682.txt +++ b/Documentation/devicetree/bindings/sound/rt5682.txt @@ -46,6 +46,8 @@ Optional properties: - realtek,dmic-clk-driving-high : Set the high driving of the DMIC clock out. +- #sound-dai-cells: Should be set to '<0>'. + Pins on the device (for linking into audio routes) for RT5682: * DMIC L1