From patchwork Tue Jan 16 13:21:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 13520809 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 18FE2C47258 for ; Tue, 16 Jan 2024 13:22:00 +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=3+seyLN35FVWlUwCSi8JDoNsZSdBg1V3mLcmgFu+tR0=; b=bSUec0KCGDIPkR FhhFyakXNQSGtNLvmRPm3VLK4dH63v2YGoEs2BhKZGLmVhmhuLcKhPG3lG9b4HjmG19inVGuRQNxI JbFRYxsRSHTbebBB3SKjpwaEcV1XKHMhuYbEvva050ZqwUW8a/+zEO6zbyhnX4NKaB3EQyj2MAmHL j+QRACnurBvBCs0/pD5sMNwOpt28K8QEb8+aIARS++p6hFE+7g60JvDTTPj67NctT/0yyIYB6rC1d bqi1q/0byJottPUbfH+mzaVQlxaLm8g/NJnBxYPLOx+NaCzTEDSj3Vtscyr9w+DKOgxpIXljkwWph PaveK9odf++hawe1SIlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rPjNh-00CA27-38; Tue, 16 Jan 2024 13:21:29 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rPjNd-00CA0l-3C; Tue, 16 Jan 2024 13:21:27 +0000 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240116_052126_102324_9690ED15 X-CRM114-Status: GOOD ( 14.54 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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/Documentation/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: 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. properties: compatible: @@ -93,6 +93,34 @@ properties: unevaluatedProperties: false unevaluatedProperties: false + 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: