Message ID | 20240116132102.3272682-2-tim@feathertop.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:42cf:b0:101:a8e8:374 with SMTP id q15csp251485dye; Tue, 16 Jan 2024 05:21:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQTEcbm4JT2J3GsN4oNVbOnX0ORvc2UTuAMHBqrLK1Eg71YtdnL4mCEYHx/qmiX/4Ks2zA X-Received: by 2002:a05:6902:4c8:b0:dc2:2fa5:79c4 with SMTP id v8-20020a05690204c800b00dc22fa579c4mr220446ybs.49.1705411307577; Tue, 16 Jan 2024 05:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705411307; cv=none; d=google.com; s=arc-20160816; b=qbSXJJVnGDpaV7s6hKQ+pFjKhc6NYNrcnFe8Odm1x82Gpj63IdxwwCjOnJdlGRi00B EyEW2BLxBGQ87Jkzr5nKoYyWlESh7FsgS8OjyWqIAIaPegF2yTnOgbZ8fnczBSKu0Pud gDFvfVBY6fLXrsU0qmRyEpap38bcZ8hrm2HDVfe8mLXDXS2IZ3Nkj8pJi7WavgpYYP5b qMZI/2MBQjn3KkGtB06kE9gjFRNMVjtZXyom/UXOg1+YtqMGRvbgiElPvy+aSsNBg44F jbZIXXKyJSyDSho7ZITyUbFJXirUtwEedGguRWW4kTckgdrx+yWBg/CHrMqQE5YCSG8a 7E8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature:dkim-signature; bh=6q14v6w6o6wZVd1QBVP7W/zvz1NT2QlFXxst+m+13ow=; fh=Zy1/zZasYn0V9joiZQA7dtW5NRYK4ZkgY6RVFZ+WNVA=; b=xzzj8pY68XYuGF2AgTvP56QcKmbzKClz6zioiMiPaoJ+71yCCGe1/GQfVyBYl8Ilrs t4aJzsRzkefSk4EZimmFnsma/lHaal3bzc2izpuFXRJSBIg2azIP9NEGgtj9UcUNSZeY II4F3fjpOb+yx+wpGVzucUZnzBxcVlESA/1Rk7Ac7e13+y1+mnyjDnmquuDZcviYGrEa 3YezhR5B0SwjhhGrHqrucxhRQjtv6EFtgWvGXlrHpUlBixhbIU7wao949SKjo4150mJH bDgYchuwifx/ctLNrYMvH12diZwSDi7Kq9W57KMbN7AnRjAmIrJEMf9Q8VfYdPpKzg9D yI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=iTh0ElMk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=t6Wv8Omv; spf=pass (google.com: domain of linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t33-20020a05622a182100b00429992c4d68si9857504qtc.526.2024.01.16.05.21.47 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=iTh0ElMk; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=t6Wv8Omv; spf=pass (google.com: domain of linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27413-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5ECDA1C23457 for <ouuuleilei@gmail.com>; Tue, 16 Jan 2024 13:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5F4311BDE6; Tue, 16 Jan 2024 13:21:32 +0000 (UTC) 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 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 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: <xms:1IKmZYfGubW1rhmi9oswGsX2M1sGU_jwdW1MomBkxUYpr6WvHfTVAA> <xme:1IKmZaPt4KY1AC2jT7NBqkmojTj4uMG1UUvXAcb3Trga_zUFchkt79m7CTxSkYI7Y qyPI52yMA> X-ME-Received: <xmr:1IKmZZj46YaT2OF4TVcMUv4RgDA7RnL3m7JeWBaQM54RaGXBMWFyL0YkT8JcBjF8HjoQZVlUnP2tsck_pmAAW-eOd98CBFOVsLc> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejfedgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: <xmx:1IKmZd_U-ueqxw5kUdfcgaldn4fAqxSA1YthLe3VadgFAS0pmd8q4A> <xmx:1IKmZUvB5Pz1AoPrSfSSJ6AXorRv3m9zc1eVJkTxpq4ny8nsPs8jgw> <xmx:1IKmZUFLGu-QDgYzDPeWUFJ8a_RYp76fqmhnKl8mpXrZFEsUj3rA1A> <xmx:1YKmZVk8-kXcUn6oy1L_D6pvqDQCoXIRK6Nk5LgS9K3AoX9r_wwWTw> 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 <tim@feathertop.org> To: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org Cc: Tim Lunn <tim@feathertop.org>, linux-arm-kernel@lists.infradead.org, Chris Zhong <zyw@rock-chips.com>, Conor Dooley <conor+dt@kernel.org>, Heiko Stuebner <heiko@sntech.de>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Lee Jones <lee@kernel.org>, Rob Herring <robh+dt@kernel.org>, Zhang Qing <zhangqing@rock-chips.com>, 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788253367717946659 X-GMAIL-MSGID: 1788253367717946659 |
Series |
dt-bindings: rockchip: Add support for rk809 audio codec
|
|
Commit Message
Tim Lunn
Jan. 16, 2024, 1:21 p.m. UTC
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 <tim@feathertop.org>
---
(no changes since v1)
.../bindings/mfd/rockchip,rk809.yaml | 30 ++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
Comments
On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: > 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 <tim@feathertop.org> > --- > > (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 You have one clock only, why do you need to have clock-names? Otherwise, Acked-by: Conor Dooley <conor.dooley@microchip.com> Cheers, Conor. > + > + '#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: > -- > 2.40.1 >
On 16/01/2024 14:21, Tim Lunn wrote: > 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 <tim@feathertop.org> > --- > > (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. Nothing improved here. Implement the feedback. Don't send the patchsets more than once per day, so reviewers can actually review it. Best regards, Krzysztof
On 1/17/24 04:06, Conor Dooley wrote: > On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: >> 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<tim@feathertop.org> >> --- >> >> (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 > You have one clock only, why do you need to have clock-names? This is just documenting the existing rk817 codec driver, which is using the name to get the clock: devm_clk_get(pdev->dev.parent, "mclk"); Thus i dont think clock-names can be removed in this case? atleast not without patching the driver as well? > Otherwise, > Acked-by: Conor Dooley<conor.dooley@microchip.com> > > Cheers, > Conor. > >> + >> + '#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: >> -- >> 2.40.1 >>
On 17/01/2024 10:19, Tim Lunn wrote: > > On 1/17/24 04:06, Conor Dooley wrote: >> On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: >>> 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<tim@feathertop.org> >>> --- >>> >>> (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 >> You have one clock only, why do you need to have clock-names? > This is just documenting the existing rk817 codec driver, which is using > the name to get the clock: > > devm_clk_get(pdev->dev.parent, "mclk"); > > Thus i dont think clock-names can be removed in this case? atleast not > without patching the driver as well? >> Your commit msg claims this is for existing driver using rk817_codec. So what about rk817? It does not use clocks? Best regards, Krzysztof
On 1/17/24 20:22, Krzysztof Kozlowski wrote: > On 17/01/2024 10:19, Tim Lunn wrote: >> On 1/17/24 04:06, Conor Dooley wrote: >>> On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: >>>> 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<tim@feathertop.org> >>>> --- >>>> >>>> (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 >>> You have one clock only, why do you need to have clock-names? >> This is just documenting the existing rk817 codec driver, which is using >> the name to get the clock: >> >> devm_clk_get(pdev->dev.parent, "mclk"); >> >> Thus i dont think clock-names can be removed in this case? atleast not >> without patching the driver as well? > Your commit msg claims this is for existing driver using rk817_codec. So > what about rk817? It does not use clocks? > rk817 uses exactly the same properties as what I included here. i.e it includes both clocks and clock-names. My point above was that I dont think I can just remove the clock-names property as Conor suggested? I could be wrong though. > > Best regards, > Krzysztof >
On Wed, Jan 17, 2024 at 08:58:56PM +1100, Tim Lunn wrote: > > On 1/17/24 20:22, Krzysztof Kozlowski wrote: > > On 17/01/2024 10:19, Tim Lunn wrote: > > > On 1/17/24 04:06, Conor Dooley wrote: > > > > On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: > > > > > 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<tim@feathertop.org> > > > > > --- > > > > > > > > > > (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 > > > > You have one clock only, why do you need to have clock-names? > > > This is just documenting the existing rk817 codec driver, which is using > > > the name to get the clock: > > > > > > devm_clk_get(pdev->dev.parent, "mclk"); > > > > > > Thus i dont think clock-names can be removed in this case? atleast not > > > without patching the driver as well? > > Your commit msg claims this is for existing driver using rk817_codec. So > > what about rk817? It does not use clocks? > > > rk817 uses exactly the same properties as what I included here. i.e it > includes both clocks and clock-names. > My point above was that I dont think I can just remove the clock-names > property as Conor suggested? I could be wrong though. You can't remove it from the rk817 binding, but that doesn't mean you should add it here. If the rk817 only has one clock too, then the driver could be modified to not rely on the clock names at all. I'd be inclined to allow it here since that makes the binding compatible with the existing driver for the other device.
On Tue, Jan 16, 2024 at 05:06:34PM +0000, Conor Dooley wrote: > On Wed, Jan 17, 2024 at 12:21:00AM +1100, Tim Lunn wrote: > > 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 <tim@feathertop.org> > > --- > > > > (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 > > You have one clock only, why do you need to have clock-names? > > Otherwise, > Acked-by: Conor Dooley <conor.dooley@microchip.com> > > Cheers, > Conor. The codec driver currently looks for a clock named "mclk". Thank you, Chris. > > > + > > + '#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: > > -- > > 2.40.1 > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip
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: