From patchwork Sat Jan 20 13:55:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 13524381 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 8BD27C47258 for ; Sat, 20 Jan 2024 13:56:19 +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=8J7aHrhyaLNr13ulYTh4OxvA5R7NZHMGTCZqV9/IetE=; b=uNPYnoNPlqaHVe Dri1iblEricqAlZ31xmPXPvs7xk8kwqGNW4rWtj7AB8tsFNwFzLVQr392eqpuGvzS6ZJW2vTQIHXV mv/uPrfbQRqJkhTtYE4r6HV8hqH7PDdiIHw6QKxOlTvaVM/4qxdmqTsmC83f/ZRZJ/N6v3C6dQlbg 3P2+VCjQp/GiJX1reAwDfMrU8J6IhPFyLa9q2uVDsFo40xmjIwnhSSxVk2E71a+4vNIcERKzcB2Mg 7F+6WwZk51NnJ5U3EQzxhhdM5YWO2kJk9vaqd7orKST578AQar1BHRatn4etpnyszmmJIn4bDf6md lfoYYNu4i66H65vAP7LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpK-007w5S-1g; Sat, 20 Jan 2024 13:56:02 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpD-007w1f-0J; Sat, 20 Jan 2024 13:55:59 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 6C7F65C0111; Sat, 20 Jan 2024 08:55:54 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 20 Jan 2024 08:55:54 -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=1705758954; x= 1705845354; bh=82nmu2DyJPwmac1Y1zUdWc9LMCywxycb33mNUkKF/Pk=; b=Y 1TNoElf7L0Tiz7cvPKzRTJ/Z65vkfcg728xZm32T9V+qHzy4y/ITJYn14uNV1l8n 5/8QzBEfbVvvHJpIo+heI3z/LL7euL1ra5wRh9dHiOCm1vgpHtk9PVimuu3mkqEf fpbl1Y+BApk8OQpWbaq6jJengkutKE999WyLmDc9n3NgstoxD7p1SzeIHwQ+OFjR bTpRstCZ5n23Q27IPS17000yhVYfzcPyQJVb7cN3NeVQ0Fxyo8oHp4ewI04kU0/+ LJCA+PKbehOYSunreYefwciBTv+j3z6wa/YtOaUFZXvEBohN83hFxbPHNvKK0LCG RkBG7OKmiMk2/XkYPd4Dw== 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=1705758954; x= 1705845354; bh=82nmu2DyJPwmac1Y1zUdWc9LMCywxycb33mNUkKF/Pk=; b=g C7Mc/MXYwOt4TvOfksJ5XlcmEfxsVzsQUFg4DHMJGu0a/IvWr86c2ucFjjRjobsn OemaIBL4/3dZp4/X7SnJo/kCaA/fCPb3aDC8us92KF+u9R1piPXNqfEQXknnMPnW 8UdCBTZh706eNyxLs13bptIPjECnBk5KWkuXlA0BWmdMM/JwD4JZ5hQkaGDmHI0G NLpRjGVpApWsuzRbpFwGa+dGYt9vyLK8uzVyDn55l/tGMu5WnLr3n2gdE3V8pIOA tBdsmaJxIo1TuIxzBAJLsFr5OnVVMFwJcE4tsweNtRLS8F1yYmvuMqv6FtobMDl8 3ZOosW0dk0zmydYQItKtg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:55:47 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:55:43 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Morgan , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: rockchip: rk809 fix existing example Date: Sun, 21 Jan 2024 00:55:27 +1100 Message-Id: <20240120135529.899403-2-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_055555_199292_C1ECFA26 X-CRM114-Status: GOOD ( 10.71 ) 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 example for rk809 picked up the wrong compatible string when the binding was converted to yaml. As a result it also specified too many vccX-supply properties. Fix typo in the example specifying wrong compatible string for rk809. Remove additional vccX-supply properties that dont exist on rk809 so that binding checks pass again. Signed-off-by: Tim Lunn Acked-by: Conor Dooley Fixes: 6c38ca03406e ("dt-bindings: mfd: rk808: Convert bindings to yaml") --- Changes in v3: - Drop label from rk809 node 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/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index 839c0521f1e5..eb057607dc54 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -126,8 +126,8 @@ examples: #address-cells = <1>; #size-cells = <0>; - rk808: pmic@1b { - compatible = "rockchip,rk808"; + pmic@1b { + compatible = "rockchip,rk809"; reg = <0x1b>; #clock-cells = <1>; clock-output-names = "xin32k", "rk808-clkout2"; @@ -146,9 +146,6 @@ examples: vcc7-supply = <&vcc_sysin>; vcc8-supply = <&vcc3v3_sys>; vcc9-supply = <&vcc_sysin>; - vcc10-supply = <&vcc_sysin>; - vcc11-supply = <&vcc_sysin>; - vcc12-supply = <&vcc3v3_sys>; regulators { vdd_center: DCDC_REG1 { From patchwork Sat Jan 20 13:55:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 13524383 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 C7A47C47258 for ; Sat, 20 Jan 2024 13:56:28 +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=cOYBq8jUvBaHteIJMCiKHZBhdHF2Gs1Yfq2qk0ePfDY=; b=NQ+/WXHuT+z/lS bRDkdYviGthNDf+7BQFD9qZOkbZKBq04ZYFJJiNX35ru+lickGjKb6AUxluRzmtH3oWfPq9zqfmm7 h64YJKxWyzC8WOSR9MAznPqrXrwCRAavwFkjCNnqLrkUuSk3PZNlEVVLjs8y+8F2xnmJ8zfNWSica jhv/JTs1Xl0B9lsMKX7CmFgT3VFMrFrmUa7ib/GXxWPnm456XyHfk2QxlNyZKPyMuUoiTDM8wT6zE vZz+gypQlT3PSzN/dKRLSXEklhH+Ak0QQ2HrC9i8M9TdR1f/WyNshfA+TIEea+boPMdVGlM85GMUj CgVzxYGPAT0mAof2GIhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpU-007w9O-11; Sat, 20 Jan 2024 13:56:12 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpN-007w6X-26; Sat, 20 Jan 2024 13:56:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 00B7E5C0109; Sat, 20 Jan 2024 08:56:05 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 20 Jan 2024 08:56:05 -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=1705758964; x= 1705845364; bh=H3ZIhWvDzeIyb6EIczhf//Qpvcp1gbT/BqWghJiTSGw=; b=l 4w2gcnQq2kdMz316sGwX2QVWhr127q+uhsCfYs2W7sIQtYJtGDNACi3vxNsMhtvp fOK3quuX0+JRhWAkWuf5i5RshiZlxwKo21F2nXVMYBbnRulIXNe+1x+kM+jk5y6P +cxjUA5X9NGhc6j14OAclMkYx6PV631ItqGkgjWMzHgJoxL/YtcyA3NNmAAk/dUq hXchz+6iyDIK+GyZtHL29OnH1M2nXGzjpMpGkdJe8pvVGs0F5SgShqxZqmJI2dWm 5HhvFMFQcijNsiXRAaojm0m7jPuzJwP0KV28SgqH4Xk6gLrj6cLsJQ3T3KgcVZHY qHTwRTbYYVSZa4Df0thYA== 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=1705758964; x= 1705845364; bh=H3ZIhWvDzeIyb6EIczhf//Qpvcp1gbT/BqWghJiTSGw=; b=r 2yLakiMPGF5GD9lzyOksYt0B5QuZk5chHFuaSwd6upDhKn2NAIVLJnReX71DIfvS ZZkszwe1nkyrKTjwDfFDX2593jJA3k18HCYw5Oo1vwLIY6IgknLEJpCJE//zGaJJ qEUTHI3aZTnkja34jtaU7qxrmG864wSgg7IZbfDU79TLu3PETcL5NcazcufW3xdP QnyoKXml/rJhfYSC/dka9YPW9Dn358DesFz8KAxh5orux7JI800CUGSw3Cife6Ni TARtGA1L8tbcnypZ+/cPH3YzIpjCly2/SWVJ6UGrME0gOEFLROYmdLRRK+SMZRCc aZckcv2XSh3CbnTL9Iu0A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:55:58 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:55:55 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: rockchip: rk809: Document audio codec properties Date: Sun, 21 Jan 2024 00:55:28 +1100 Message-Id: <20240120135529.899403-3-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_055605_756097_275790CC X-CRM114-Status: GOOD ( 16.18 ) 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 Rockchip RK809 shares the same audio codec block as the rk817 mfd, and is compatible with the existing rk817_codec driver. This patch introduces to the binding the standard property #sound-dai-cells and also an optional codec child node to hold codec specific properties. Currently there is only one property in this node however the downstream driver shows a number of other properties that are supported by the codec hardware, that could be implemented in the future. This maintains the existing driver ABI and keeps consistency with the rk817 bindings. Signed-off-by: Tim Lunn --- Changes in v3: - split out clocks into separate patch and group example properties where properties are introduced. - remove descriptions from #sound-dai-cells node .../bindings/mfd/rockchip,rk809.yaml | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index eb057607dc54..be0616201f52 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,22 @@ properties: unevaluatedProperties: false unevaluatedProperties: false + '#sound-dai-cells': + 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: @@ -137,6 +153,7 @@ examples: pinctrl-0 = <&pmic_int_l_pin>; rockchip,system-power-controller; wakeup-source; + #sound-dai-cells = <0>; vcc1-supply = <&vcc_sysin>; vcc2-supply = <&vcc_sysin>; @@ -281,5 +298,9 @@ examples: }; }; }; + + rk817_codec: codec { + rockchip,mic-in-differential; + }; }; }; From patchwork Sat Jan 20 13:55:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Lunn X-Patchwork-Id: 13524384 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 77D73C47DB7 for ; Sat, 20 Jan 2024 13:56:30 +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=Wb13TUhuDxG2CfF0HjHpC0+OzIvEvQFoPVn2qw6Qsxw=; b=d53Fq8QHwMtI64 IU5DN3xVJZQ+2R2YGsLkLSqZshH2AqxkBTl6Vmfl5HCpyHfKGYN2AFmD0V9R4Xv+7SgsNMSt+AMwy Q5N1bD/h0+BiEr51E2z0oRduBi1zpVLq78XeZoIdIbHTm/Ty7ozoa9T8LRZ/Xkka1yHTxC+Zre3GX c4f8+HJVsSURoZPK+NEW4BU2wyY4YuWeR9z+wg4RTY5sUehtd0exat/3Xp3AwzyoKHeLrzc0i5LhF gOl6OuT4S60U6WJwxUPpeRU4zcyfhur4Fpvo5PkVgbHqPau1ijmH6h53EG21KicHepr0mGVSUcopd z6ddKLdij1Hmggtzml+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpe-007wFX-2d; Sat, 20 Jan 2024 13:56:22 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rRBpX-007wBS-1m; Sat, 20 Jan 2024 13:56:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D613C5C0110; Sat, 20 Jan 2024 08:56:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 20 Jan 2024 08:56:14 -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=1705758974; x= 1705845374; bh=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; b=A Dznj0glwb950CRBoGhKJlZKLZcHFthp5aBCt/90elos34umI7QBTIOc8fYAB1tFp kDf5D+Rg0ibcciGFW6eCmB+PEnpfOPb/vfD0AtwK0u4jJn+LYN6tEg+i2nzi4Kpg m5FSFtAvmXBMGz6svZjx11B3P0aMiPjlnrhtw72Gv63kpx9Uv1nmsJ35/JxyhtH7 JryWrMlMyHnL74lytv0KG0dHsUF0yvxz/gDpLUDEd21zPl0sTvgdloZxPYF4EkWb ltthWWQuUJVdsg9ewI12z5kJUJOy0xnb2NPedumwaxj7hYWfmnHFxQAmVao+CKPU sqb8jsbnFWFUlYnN1QYog== 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=1705758974; x= 1705845374; bh=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; b=J hZmH4kZXC5IJJKIlmJLpfWOWlgNr1DHHYKGdk8a3QPsYCSSP+T3FBwAR8jsanb6G EOiJgjt8yEsjdl4By1vD7rEgncdLmDmbf3cCTFCV10V+PKmNCf3YgwnUXvWhGNcA pft7rNx+FHjG8tyqSxr3hjOH4yBtS1j2xuA+uW07Mqc4stD0Rb68gmKS7Mi3SKBo g2WdvO124ttKzGuSINLllPLj8FqTJvboyhOmMPIKVpgGH/LMdtqHP5OV8ZxUVMYL IDY98FI6rSFgMbvocSAAeXdcmEbbgqMF2hDVDHt8zuSdV5zoblDKEH1hccTxd1/u vA7dx2YprwlBCqEG7ZEUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: Feedback-ID: i1f8241ce:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jan 2024 08:56:08 -0500 (EST) Received: by feathertop.org (sSMTP sendmail emulation); Sun, 21 Jan 2024 00:56:05 +1100 From: Tim Lunn To: linux-rockchip@lists.infradead.org, conor.dooley@microchip.com, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Tim Lunn , Chris Zhong , Conor Dooley , Heiko Stuebner , Krzysztof Kozlowski , Lee Jones , Zhang Qing , linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] dt-bindings: rockchip: rk809: Document audio codec clock Date: Sun, 21 Jan 2024 00:55:29 +1100 Message-Id: <20240120135529.899403-4-tim@feathertop.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240120135529.899403-1-tim@feathertop.org> References: <20240120135529.899403-1-tim@feathertop.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240120_055615_657650_7693DBC0 X-CRM114-Status: GOOD ( 14.87 ) 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 Rockchip RK809 shares the same audio codec block as the rk817 mfd, and is compatible with the existing rk817_codec driver. This patch introduces the clock required for the audio codec. This clock provides the I2S master clock for the audio data. The codec driver finds the clock by the name "mclk" and will fail to register if this is missing. Clock-names is kept here to keep compatibility with the exisitng driver ABI and also to be consistent with the rk817 binding. This series 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 --- Changes in v3: - split out clocks into separate patch and group example properties where properties are introduced. - Address review comments - drop clock descriptions that arent required - set maxitems on clocks Changes in v2: - Fix missing include and pinctrl for codec example .../devicetree/bindings/mfd/rockchip,rk809.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml index be0616201f52..0174261449ab 100644 --- a/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml +++ b/Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml @@ -93,6 +93,13 @@ properties: unevaluatedProperties: false unevaluatedProperties: false + clocks: + maxItems: 1 + + clock-names: + items: + - const: mclk + '#sound-dai-cells': const: 0 @@ -135,6 +142,7 @@ additionalProperties: false examples: - | + #include #include #include #include @@ -149,8 +157,10 @@ examples: clock-output-names = "xin32k", "rk808-clkout2"; interrupt-parent = <&gpio3>; interrupts = <10 IRQ_TYPE_LEVEL_LOW>; + clock-names = "mclk"; + clocks = <&cru SCLK_I2S1_OUT>; pinctrl-names = "default"; - pinctrl-0 = <&pmic_int_l_pin>; + pinctrl-0 = <&pmic_int_l_pin>, <&i2s1_2ch_mclk>; rockchip,system-power-controller; wakeup-source; #sound-dai-cells = <0>;