From nobody Tue Dec 16 19:55:48 2025 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 2D10212B7A; Tue, 16 Jan 2024 13:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="iTh0ElMk"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="t6Wv8Omv" Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 63EC05C01A8; Tue, 16 Jan 2024 08:21:25 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 16 Jan 2024 08:21:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705411285; x= 1705497685; bh=6q14v6w6o6wZVd1QBVP7W/zvz1NT2QlFXxst+m+13ow=; b=i Th0ElMkuQQKGDG/jWWfE4GIwsFpxwFr5kNHYJ1fj0HHbJnsuS5gwFLd6l0+7rCNs 5AXniQs6z/5b2nOVY04pbxGHconsVmuXDk38BNHVwvmzDHL5bjUnVBce6MR7LP/d tlfdnAkV9xvfMbQFqvTTlKQEwo1qxITSr6Jnc3GdaNA6QzioKJclSuovgtu1eMsU SjB+uXsgTcLr+CgAPU5oQp6bgFeo4/KkO7PK6elqyQK0euhLvOnukZXRCNfwgq+B jL3hbL2AUvQZp307Ir5HHhCFijmHshq4rJs2ue98Z8/aCk2oYsFEiZsPIiDGSqNZ x+u9jCAdyKlgRLp5VMKgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705411285; x= 1705497685; bh=6q14v6w6o6wZVd1QBVP7W/zvz1NT2QlFXxst+m+13ow=; b=t 6Wv8OmvX3R1/E8QXDDNzC/EIl1wE5RyHI26wfxF3S8C2U64uecJDDDDyXJnJ5ihj JNjPOy2YC1J9Nj5cztAWFlmhh9vw0JfoDG3oNoBXq3ZrpbafsuC6FLwF/02lUvNV by0J+qkIzmlrEnrPsfBxJw9sIuj/5eudzcVyGeBXMtY/RLR4iLMmOrF3aTsXDHft qLQT4Bp2TK8m26KHRzfAkioo8yktE8v8t5I7RlYGffbDe4OgFsuDgTJhhMwCXcgJ k8gmHqej6MZnr29l3uaH9seE6bywLw+dcB5kYIq35wrNzQHjDTQIRF74tBe8T/mU Gn7f2+4+FPlMdvu0EdRNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Jan 2024 08:21:19 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Wed, 17 Jan 2024 00:21:16 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Cc: Tim Lunn , linux-arm-kernel@lists.infradead.org, Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Rob Herring , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: rockchip: Document rk809 support for rk817 audio codec Date: Wed, 17 Jan 2024 00:21:00 +1100 Message-Id: <20240116132102.3272682-2-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240116132102.3272682-1-tim@feathertop.org> References: <20240116132102.3272682-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Rockchip RK809 shares the same audio codec as the rk817 mfd, it is also using the same rk817_codec driver. However it is missing from the bindings. Update dt-binding documentation for rk809 to include the audio codec properties. This fixes the following warning from dtb check: pmic@20: '#sound-dai-cells', 'assigned-clock-parents', 'assigned-clocks', 'clock-names', 'clocks', 'codec' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Tim Lunn Acked-by: Conor Dooley --- (no changes since v1) .../bindings/mfd/rockchip,rk809.yaml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Do= cumentation/devicetree/bindings/mfd/rockchip,rk809.yaml index 839c0521f1e5..bac2e751e2f2 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -12,7 +12,7 @@ maintainers: =20 description: | Rockchip RK809 series PMIC. This device consists of an i2c controlled MFD - that includes regulators, an RTC, and power button. + that includes regulators, an RTC, a power button, and an audio codec. =20 properties: compatible: @@ -93,6 +93,34 @@ properties: unevaluatedProperties: false unevaluatedProperties: false =20 + clocks: + description: + The input clock for the audio codec. + + clock-names: + description: + The clock name for the codec clock. + items: + - const: mclk + + '#sound-dai-cells': + description: + Needed for the interpretation of sound dais. + const: 0 + + codec: + description: | + The child node for the codec to hold additional properties. If no + additional properties are required for the codec, this node can be + omitted. + type: object + additionalProperties: false + properties: + rockchip,mic-in-differential: + type: boolean + description: + Describes if the microphone uses differential mode. + allOf: - if: properties: --=20 2.40.1 From nobody Tue Dec 16 19:55:48 2025 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 C7DA61BDC5; Tue, 16 Jan 2024 13:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="Q4A9nCDO"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="M9OJFDYO" Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id BBA785C01A4; Tue, 16 Jan 2024 08:21:34 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 16 Jan 2024 08:21:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705411294; x= 1705497694; bh=mqRapvDpAQ7FPAyJBmNhOYsAn7gqgD2a+gSOVpqzeBY=; b=Q 4A9nCDOj2O4z55kRsqrOU8cyRblkqsxjY9aWZ1RLm9c4SoYaP8KtpepdoZlyNh8C bkGNaRMKNC4eQyvjVp0uLbiI5vcxAWwKUr5YVHrYgBdLPx7WZZscA2Zjm/ld4k8U rXilvmaz/g9U1o8GL9ApgmSj7rMF4NTpvlK2oP82t9gcQb2K5c9TUlRGaifWrIeC 3mO90zFZERnpdTu/A0DFjHuSIQy+DJMvXlNOcMYB1/6hD+i24VN9Nxey4VoSogfz oM2aCNlLAFqPiBmhUZcTJ7mAIUfBho4x3d9GukAXpVllQb2I/CSK6eGi6yws2BCj j1SBGtstEtO1azJFl9XJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705411294; x= 1705497694; bh=mqRapvDpAQ7FPAyJBmNhOYsAn7gqgD2a+gSOVpqzeBY=; b=M 9OJFDYOppzJqOKls4EBmRmOpQCIGzkuYDHaUQNoKh5IsaT0sWibeExfkEy21TcrS bSyyVA8sz6fg96LEQWZ1eCJYdmj5OpM5WoFjUe8GOLjgo4hl0JTQSPayuGYWX+SC ljVdFPXxVcWxstZgqMlzSVQVnMpYpRdoRHnYmdYbHMfdlmp9Jhw3VuBHEPZGSsOT QoIg6SAU1NA4Fnff7IJRD8zcTKeKqFM1+1o1mRgyDlkBmkBVi/SmP0wweMMcgnV+ Oq6VsLp7dn8TTTqLEbzcYA3Th5IqNl6z3xoDDNCnBJ2yqu+9IcBzasWVH6E8Ok5/ PhTjPbh0ON+5iRC9dBUSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Jan 2024 08:21:28 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Wed, 17 Jan 2024 00:21:26 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Cc: Tim Lunn , linux-arm-kernel@lists.infradead.org, Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Rob Herring , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: rockchip: rk809 fix existing example Date: Wed, 17 Jan 2024 00:21:01 +1100 Message-Id: <20240116132102.3272682-3-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240116132102.3272682-1-tim@feathertop.org> References: <20240116132102.3272682-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fix typo in the example specifying wrong compatible string for rk809. Remove additional vccX-supply properties that dont exist on rk809. Signed-off-by: Tim Lunn Acked-by: Conor Dooley --- Changes in v2: - Fix vcc-supply warning detected by dt_binding bot Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Do= cumentation/devicetree/bindings/mfd/rockchip,rk809.yaml index bac2e751e2f2..9b9d670708ce 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -154,8 +154,8 @@ examples: #address-cells =3D <1>; #size-cells =3D <0>; =20 - rk808: pmic@1b { - compatible =3D "rockchip,rk808"; + rk809: pmic@1b { + compatible =3D "rockchip,rk809"; reg =3D <0x1b>; #clock-cells =3D <1>; clock-output-names =3D "xin32k", "rk808-clkout2"; @@ -174,9 +174,6 @@ examples: vcc7-supply =3D <&vcc_sysin>; vcc8-supply =3D <&vcc3v3_sys>; vcc9-supply =3D <&vcc_sysin>; - vcc10-supply =3D <&vcc_sysin>; - vcc11-supply =3D <&vcc_sysin>; - vcc12-supply =3D <&vcc3v3_sys>; =20 regulators { vdd_center: DCDC_REG1 { --=20 2.40.1 From nobody Tue Dec 16 19:55:48 2025 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (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 C5C7E1BDDB; Tue, 16 Jan 2024 13:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=feathertop.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="pa+BHsnO"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="dpe6lJJ6" Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C3C905C01A9; Tue, 16 Jan 2024 08:21:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 16 Jan 2024 08:21:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=feathertop.org; h=cc:cc:content-transfer-encoding:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1705411303; x= 1705497703; bh=RMgaWg9hRvrDkXQrNiaOtNKt79w/zahXRyvkBwhz6CI=; b=p a+BHsnOVFNEhy4yroFQTqyqGKxJHdfzMVtGcrghhCnmGnu7l/2WTldCeAcpg/ynE lQzVY2QPl4//PZi1ABJaavnLl8Ik5hacXgJyoAnZf2OCDeRwjt5H1sCwK1roxMbe pUATKmdRibIr0wQSq6Ov3IV69qg05lJ7gLpf3M8bKeb/6ZNl6xxzFvXsyw0oNonv 80jg+DhcosuFaZSA9qcITIVPd3QwaB0twwW0L+myBfJe5JPJTO3tZwk1VHAcpCwJ clwXVZOa+8TdHhK6ZB+81QabL7Qpcpuk6AZ5YToGHdZpd9FS9plpFb2xNHgyo47A pat4pK7DuAXHvQQ2w+Ckw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1705411303; x= 1705497703; bh=RMgaWg9hRvrDkXQrNiaOtNKt79w/zahXRyvkBwhz6CI=; b=d pe6lJJ61pl+D1ECDjyP2pmZChQXohrzTJBB6IkRQXSkq6mCLVTbrQCR8uGvWbjLY +NzOAuiPjst8ILYJz3CHI29aSJ2gY+b7bP27+mUDUpBwljUjO+Ju4KwYhEIUlYz7 4V09T+9b+BMYFV2t9AlKHBBCZfZhgQXtCGpMyaVJyxeAn3oag5g8CRJhQcxb0q6q y+d8nmvdBCBL++1b7pNKNbmvZ821Qhm8v/qEkV/C6lImMdMLhXIYMzd0/Ptjm6LV oLJQOfj+NEdcAVS3guxGKqjtuNjl+5eROqiNBsz0lqGIc4TOOKZk/SmSoBRj1rkF NZblvcas2100to8KBhPCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 16 Jan 2024 08:21:38 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Wed, 17 Jan 2024 00:21:35 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Cc: Tim Lunn , linux-arm-kernel@lists.infradead.org, Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Rob Herring , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] dt-bindings: rockchip: Update rk809 example with audio codec properties Date: Wed, 17 Jan 2024 00:21:02 +1100 Message-Id: <20240116132102.3272682-4-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240116132102.3272682-1-tim@feathertop.org> References: <20240116132102.3272682-1-tim@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update the example provided to include the properties for using rk817 audio codec. Signed-off-by: Tim Lunn --- Changes in v2: - Fix missing include and pinctrl for codec example .../devicetree/bindings/mfd/rockchip,rk809.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Do= cumentation/devicetree/bindings/mfd/rockchip,rk809.yaml index 9b9d670708ce..fee8338b230b 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -147,6 +147,7 @@ additionalProperties: false =20 examples: - | + #include #include #include #include @@ -161,10 +162,13 @@ examples: clock-output-names =3D "xin32k", "rk808-clkout2"; interrupt-parent =3D <&gpio3>; interrupts =3D <10 IRQ_TYPE_LEVEL_LOW>; + clock-names =3D "mclk"; + clocks =3D <&cru SCLK_I2S1_OUT>; pinctrl-names =3D "default"; - pinctrl-0 =3D <&pmic_int_l_pin>; + pinctrl-0 =3D <&pmic_int_l_pin>, <&i2s1_2ch_mclk>; rockchip,system-power-controller; wakeup-source; + #sound-dai-cells =3D <0>; =20 vcc1-supply =3D <&vcc_sysin>; vcc2-supply =3D <&vcc_sysin>; @@ -309,5 +313,8 @@ examples: }; }; }; + rk817_codec: codec { + rockchip,mic-in-differential; + }; }; }; --=20 2.40.1