From patchwork Fri Aug 30 20:38:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 13785556 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 9A9F7CA101A for ; Fri, 30 Aug 2024 20:40:34 +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:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SuXj4mT+q9tPqRVosAvLWVhtn5xmjTTctkQVZuomBp0=; b=eB5jk8DQBuz1w0 2cE+rsWIueFkfhZP6dPs0F/oqIVfPOHJtqhhPw1VfjMl1xpgWUpE06GAWIEiwMq+60LR6dSIzkwj0 J7W3qLtehwcNOm7EeK/q14jeKyS2ikFw+epfpRkATqqTyNY65w/Ti5aH9RKnyVAb+nd1e9GgubMDC 2SrgyBq8Fs3axS6NsgT1a3ZcIEY4Xk0l0vJFn1Mk6cwbyAeLgu2y9XrLSap6H0+2zs+AxC0CtdPWo Gq8J3UG1bRZaMtBcDWzhlaaS9kOtOLxe96fK53QRjGBsn9tLtiuPwfGvynOOz1ic+Jru4yHfhPfiJ ojx5Lj7pciaUJAJaf+MA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8Py-00000007daI-1lil; Fri, 30 Aug 2024 20:40:26 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8OE-00000007d4o-40vj; Fri, 30 Aug 2024 20:38:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VC7uW2jsMg3kt3gjJ1vEywpnvPfD/SXYNyfLRKzT+Og=; b=SwHgq+kpTqUByPY+FNnjPCwfpe n7NnN0G1bwg5kjtA/H8jyE9OFwvsLGHdvvL+J8xFIaVe5Y5BhWS8l79NJy5mVPtWmMtGWOXs2xSDN JguDzXlUgRxA6gX0SieSHb9ktarPUbQgMSiC8HGWIsmzZsGO8AoWqmPVSVcuLrFFpzMGynM+zt1E8 n20oENcOFXWLRrc/wbtrf07Mf/cTTjyj1yaLgA6R7c9/TNaJGsfljAOPrZXAPJPwOQOCILsZqXTmx aLCPScL8cQBW3dPj6oVUsPUcrcPvUqKCWzj5jtR5mLZKeoThfaXFt0p+6ywC757Vq4nfK1nZDG2X1 G700jrWg==; Received: from i5e861921.versanet.de ([94.134.25.33] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sk8OA-0006ey-4U; Fri, 30 Aug 2024 22:38:34 +0200 From: Heiko Stuebner To: lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, marcin.juszkiewicz@linaro.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 1/3] ASoC: dt-bindings: realtek,rt5616: document mclk clock Date: Fri, 30 Aug 2024 22:38:17 +0200 Message-ID: <20240830203819.1972536-2-heiko@sntech.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240830203819.1972536-1-heiko@sntech.de> References: <20240830203819.1972536-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_133839_042190_82C1394C X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Both devicetrees and driver implementation already use the specified mclk in the field, so at least document the clock too, similarly to other Realtek codec. This has the nice additional effect of getting rid of dtbscheck warning. Signed-off-by: Heiko Stuebner Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/realtek,rt5616.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml index 248320804e5f..754111f2e70a 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml @@ -30,6 +30,14 @@ properties: reg: maxItems: 1 + clocks: + items: + - description: Master clock to the CODEC + + clock-names: + items: + - const: mclk + required: - compatible - reg From patchwork Fri Aug 30 20:38:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 13785558 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 02911CA1018 for ; Fri, 30 Aug 2024 20:42:12 +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:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q9uYPJaJ7FmEi/m80Ced9M+5UwdIvEZr/lqj1KLJDdE=; b=zBXNBZPeIn9wfn 0axRf0GUDaXV3eGXRQO2SRpCLiWqbz/FgLbEYqYDFvEYODMwZJLmeMI6v6Io0UoVLtmFFjD2nGCfc KDfY8tK3JBeIHMO9eaoFQAssciqTZbCCatOsN3b0syqbsqwKo6xjpAc3PrHL55DPySgX6T8nidTkV 0r0UQw6e5IsqkDi8Rkutf78ggCBJjyPxSZagkng8BsB2HFJPlUbLFeVLwPxLrV/TZlY8JXLTcDsYb 51kruHcWdO3g/tLCudywTJMrQdL4v0O4HzGOT+1ItjfX19NaEaxt2fiC0H9pmUJRUuegTjWhrTkeM mxBTplfH8zzssQFGIP8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8Rd-00000007dyh-3oad; Fri, 30 Aug 2024 20:42:09 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8OF-00000007d5B-1y1g; Fri, 30 Aug 2024 20:38:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Cve/jX2zAtDpvODGJR1P6htvkNqxysFCrhk+BT6Ib2c=; b=G/P2JBMBMxZ98lnknTZtZqnFrT 55n4lNzdne2ig1jsP/WrHu43ppM2wQ/tTpDG9Uw8rJ0Pf7NWRWWKnc8UOgkfmpsDtSACnBpDSpo0m rbfpVfxuhZRctGTLvO4cMyrL8GhZijFIzuA2DrtmFSgNkDvUt8+xkGZHJ9QlHqC9CzldWyqWGGytP Z+kXrItkd1ckHJImL/z1BMmXjkhDPzKwYEjVYIOLJ4sCMlq/T9mdixmb+zhW8Qa+Acgs+WxYECXaY YFkO+mcZ6K1Ht5lRbGFZn6m+dX01GEvyb1MiRzcrYd7/xE8j45f5+BWn12p0/4U8T7feaVn5EwT4K bUboFwQQ==; Received: from i5e861921.versanet.de ([94.134.25.33] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sk8OA-0006ey-Lz; Fri, 30 Aug 2024 22:38:34 +0200 From: Heiko Stuebner To: lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, marcin.juszkiewicz@linaro.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 2/3] ASoC: dt-bindings: realtek,rt5616: Document audio graph port Date: Fri, 30 Aug 2024 22:38:18 +0200 Message-ID: <20240830203819.1972536-3-heiko@sntech.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240830203819.1972536-1-heiko@sntech.de> References: <20240830203819.1972536-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_133839_527537_210E0705 X-CRM114-Status: GOOD ( 11.53 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The codec can be used in conjunction with an audio-graph-card to provide an endpoint for binding with the other side of the audio link. Document the 'port' property that is used for this to prevent dtbscheck errors like: rockchip/rk3588-nanopc-t6-lts.dtb: codec@1b: Unevaluated properties are not allowed ('port' was unexpected) from schema $id: http://devicetree.org/schemas/sound/realtek,rt5616.yaml# Signed-off-by: Heiko Stuebner Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/realtek,rt5616.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml index 754111f2e70a..29071044c66e 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt5616.yaml @@ -38,6 +38,10 @@ properties: items: - const: mclk + port: + $ref: audio-graph-port.yaml# + unevaluatedProperties: false + required: - compatible - reg From patchwork Fri Aug 30 20:38:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 13785557 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 7B823CA101A for ; Fri, 30 Aug 2024 20:41:20 +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:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aPqKK5rkteSHwZWd2dCL165l599kxZ5+Sk4/5fezJaw=; b=ELsXin7Ch0zGZG qsB0tdEHuM00nkWd3IFv4j650O2/BGxMIyzxvnyjoh5yZhVgiCR1QL0TN+TlQsWZnRTf8vAbhq9yP GuUm38hDzAa6n9qsWLujBBRSCOO7rSuG8iwq1C+e34gbAml3WdfzP5A2nzgXHKjzTWEuz8jxQDI1J hPoRgB+VfaeL4vXhZUOQsbnsQdGapSrBsjtMYtd0VHwNBhA8GFHk3ruxOX4/jKPj8yX+hZ6vUrwKe END1Fj4R0IwXjkR2bg8igEceWMEMRxxNfB6Sk1BSYrw8F0pC3MAZRww1NvEyy6HZZR6GUmW5kVRgJ PsRapnVSIZ8XmeFpD0gA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8Qn-00000007dii-1gTC; Fri, 30 Aug 2024 20:41:17 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk8OF-00000007d5f-3Xue; Fri, 30 Aug 2024 20:38:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8DvzeP3tqcbLB2wXKxIBy3jnG0TMddl3cDp0QaYPiaA=; b=XsLRjzgJGXMEb/+z2CZiqfDC5s ZVXzq9qA2vSVzHcgB35kYMMblQTLASvgw24SRLagmYMRxwazFCeZ4b6jIW6UH0dtKpkHfVFsl1PvZ ncyW8Yrqc1AJ9C/4TJ6b1bURrfmh+1akLneCEpkteUQDSwHRLnd2wzzQpJFdQ9D5btqQZWMK8+cxq J6DOipQCQ4jn5175KFC7D+bfPNB4m43x8G8hJlPX/GEwJz2N/z5PADoK4lweC1+okbiPTlLtfOVzZ hGFL762NNbl/erFmtDYphDRkhqvxWUCKNqqcl5aAyHpRVFQS4MtRyZvrCDH9NV4iIfkLR65SLJBVf F2ECCFlA==; Received: from i5e861921.versanet.de ([94.134.25.33] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sk8OB-0006ey-6A; Fri, 30 Aug 2024 22:38:35 +0200 From: Heiko Stuebner To: lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, marcin.juszkiewicz@linaro.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 3/3] arm64: dts: rockchip: drop hp-pin-name property from audio card on nanopc-t6 Date: Fri, 30 Aug 2024 22:38:19 +0200 Message-ID: <20240830203819.1972536-4-heiko@sntech.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240830203819.1972536-1-heiko@sntech.de> References: <20240830203819.1972536-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_133839_902274_2FA3A8C1 X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The audio-card contains a hp-pin-name property that is not part of the binding, and its contents also are just a "Headphones" string. So that property also does not fullfill any specific use, therefore just drop it. Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi index d035a44e5b20..fc131789b4c3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi @@ -76,7 +76,6 @@ sound { simple-audio-card,mclk-fs = <256>; simple-audio-card,hp-det-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_LOW>; - simple-audio-card,hp-pin-name = "Headphones"; simple-audio-card,widgets = "Headphone", "Headphones",