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: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 13785552 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A0AE9166F0D; Fri, 30 Aug 2024 20:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; cv=none; b=e7SbwfB+/Zf0G3E3w/tOLOTW7CGZCncKUWB1lMDUHQQWBcSt8RcLIdfEGxZSJQ+4NBSFYhvq3wSbsT8yqLnbxgX+wurNWfOoykhD3u0MIw+0vX8Nf25QjoA9yY6NMcw4xX7/zGhaEQUMsMNPm+oJE0qUmEffDpIjpE1Ygbn/1Dg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; c=relaxed/simple; bh=8BB2ufA+ylkkkmFozby1+CKWPfzBX92egLTtQrFhEy8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=de0qysk8+9Jc2DEbCj2++YSUMOuFJIiC1kFdiOzK1ZClfv4mgfSLVIpHnbRFozAXYuGktakeAtKkFlybm4i5k47Y9P/doyu2ZlMu9fhRqmsor0i9RNSVQhpnkaZzCIlpvr+dbWAFQ6Ln8pQFYkq4ZYiREKuANcs7wYWLlauMOmQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=SwHgq+kp; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="SwHgq+kp" 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 13785553 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8AF281BF7E5; Fri, 30 Aug 2024 20:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; cv=none; b=VKfhuNbQYvp9yE0TPvBzQ23ev45zpU56HmocedLpR48Zggb9xGJ7dD7t2BkmH6D2rWvd4F/3xy6INULNd11Y6mOZ4qHi7scYhxIhaQHwFsRG6fvYtn5p+L8vT5sik9jbRmN8t90Vmqe+/4ZS3quKYPRGlsBX2TTTcEprrHKj8vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; c=relaxed/simple; bh=ahXzD4vAJ8aNAdHeGAFeLGMOl9NsfJ3WUZt3j7BnC74=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Ox1Jc8/Rv9R9+gaXaDxUMRHPZ8XPpxXmSe/9i+ifeIh5ZPBDTbBx8dkyxbWHdEjRQtP9O46R2dR5kNcpOf7ueCtJpweP1KZ08B+8mQRIvxm/Ezz7yS2DCxpwsiuuTUmc9795JlJHj5I638DMcFdGX9zQ4Ijh2c5bPTgnE+aeNP4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=G/P2JBMB; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="G/P2JBMB" 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 13785554 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB7701BF7E8; Fri, 30 Aug 2024 20:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; cv=none; b=epygisUS67ITvgzqrknbjz684Erfs61l6z0jx8vakI1UU0z0qruDnArNnz3p/rFnjeVUup1Zy/SrfGP+DsEIZYVZI+eAuYaoNYckCxWZXNi8wQVDZsjhi93LsN7VA2v48nvRtafrFa3rd9msCT+fsRWw+Cyexq8yNomNSCVsi90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725050319; c=relaxed/simple; bh=Ef607E2g0tU8wvWvFaFSKsAoh5Nt4fV2ak2rt+miEbg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T0sWQUzKS2RTFIacHK0OgXxnvTyuez7iUI8DL6SyTcubnMe4HclbsNuVw1CNKQ7ZmRuYKJ9ncnxlma1a1hqQiiljYU5OQzGEvQ9ReSHNLqXEbNZedNEydzJHmpNIKqdy5JGnOYGYU61e9wmAerYx/pP+w/UjAlM6E9CImv4ia+k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=XsLRjzgJ; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="XsLRjzgJ" 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> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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",