Message ID | 20240120135529.899403-4-tim@feathertop.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp1625486dyb; Sat, 20 Jan 2024 05:56:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMCeSi5JAUPhEM5QSeYOUgpS2Zk+YFRZlmDx+i05AM7M2pguOHvUnk0pn6WeC+IBkwmLR4 X-Received: by 2002:a05:620a:469e:b0:783:92e9:613c with SMTP id bq30-20020a05620a469e00b0078392e9613cmr1290995qkb.67.1705759001475; Sat, 20 Jan 2024 05:56:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705759001; cv=pass; d=google.com; s=arc-20160816; b=fX1PwQ5XklBQMh/RWvqyYmrdUfgkm4vAGgleOIphnvPOd6XOabtW5AYPYzPos8eKfC miYslggc/QNxOrBNmSK+Dtn+4nXd8qsNHeaYh6JMxzrVXawVqLFJ6rHJmi8nRWYhHMUe IY63UZP+hmjKbMrnlghBJtVLsSU4HW28JZrjCcum6q6PeXTtnGGhiDJkiE5SJurYJoUt yAJVJJWcrQo9TLgvMWp5MnPmr6INywU0SZYlINZS9JmGAlncByvwn3hs0jYWGVhmw/iJ 4q1pc2SNfGZQaE+VwFp96F5NKfT8buhSv/daSx2j52Q2S4tF7oaMZI1uj3BulHLyLcg5 cOEA== ARC-Message-Signature: i=2; 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=tyVLqYgWirTx9KCAu+OuFKeKwsREXEGBOgBztayJRGQ=; fh=MqW9iCxmbVp2B4KR7c0hR79uyypX4xgnAkUyhBCQklg=; b=yeoXANa3NY6mqJNqcdAjiEmhjEEpCHTVORi8/jnpGC6pWiF6kx/bQiyeHRJBA8XqZ0 XZ4nPxTHJp+mKHxv3f3l2Y460vCXPPa5oqYT9dAizqFnUbiS5WXzN7VMcfdn92fq57N3 /bge3Sz1uIzeBnj/ym0axETZxbRBYEr41ssejZmF7zxH6R0u1bi8pLNH066FqjdpCW4x uZskS0R/uyRyZwpl5MNCtRGPdUgmPOVh0XqvUeNBeQd23rGbxLYnl5gLSMhGqW9faqdJ fQ4MV8bDz3NbijSsLSGiB36OIk4LRMgFT2JMnlj/BhKvtdJ20qafTtWPEdO8B4SNDa5p eCFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=ADznj0gl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JhZmH4kZ; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id pc20-20020a05620a841400b00783155238bbsi1432027qkn.67.2024.01.20.05.56.41 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jan 2024 05:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@feathertop.org header.s=fm2 header.b=ADznj0gl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=JhZmH4kZ; arc=pass (i=1 spf=pass spfdomain=feathertop.org dkim=pass dkdomain=feathertop.org dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-31810-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31810-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 3954B1C20B35 for <ouuuleilei@gmail.com>; Sat, 20 Jan 2024 13:56:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B13E11727; Sat, 20 Jan 2024 13:56:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b="ADznj0gl"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="JhZmH4kZ" Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 D855C1094E; Sat, 20 Jan 2024 13:56:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.26 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758977; cv=none; b=aqdwXg8U7fL3QuoReDM63fR7klo3J97P3YA/aiFR1lvI0GCNLRqqUdFeww1ehnyWE/6p2Cs3dT1AQ/GkMgBd5dSgzPTmnVPRoFuCw4NoZPvtm9KmdIWcGXH9ckjwA30zkAN+NE0uTyaN4r0OCaojrCPM6Poux/OqMYzHaXoGA0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705758977; c=relaxed/simple; bh=G1BajSfR2TDS+zWxcpFImQCmFzmvtbzvPyYBnFF1ITU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tyIYoAoW5i5mtb6iEIJ5XQBC0SzLXXeOiNorN8451f8tkvzcMBLd4BZhICkZSifJJUSsV7PTAIKJfmtH1ZGqWnLKffu1Ys1GHbR83qFwF+0APOUQKcc4LLipi5zaXS1TrPAbpuW/Hkgb9YQmq19dV/Tyq48LOL1xcLNFFEjkX0s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=feathertop.org; spf=pass smtp.mailfrom=feathertop.org; dkim=pass (2048-bit key) header.d=feathertop.org header.i=@feathertop.org header.b=ADznj0gl; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=JhZmH4kZ; arc=none smtp.client-ip=66.111.4.26 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 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: <xms:_tCrZUAD0WjiGyVoJO9iL9US9ZNE6SNztXKQ3SliDpRYxNMPN7uP5Q> <xme:_tCrZWj-3zDa_KnkcJUKXs_N9ZMj3ERI2rofCha6S6H6vdC0QhCyPnqo9j3SCHEEC HhJwBwxTQ> X-ME-Received: <xmr:_tCrZXkaMb0rWkY1kwB13x-vvG4wB9z-ZmYSUzYacM-22n_1cgsVjXlrno3fMyK-N8PdTlGw4mEjRtwZO3rTRbj9rrl3Dhg4--k> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekvddgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhimhcu nfhunhhnuceothhimhesfhgvrghthhgvrhhtohhprdhorhhgqeenucggtffrrghtthgvrh hnpeefffeuhfetgeeikeejvefgtdefteehgfdvhfetfeeuffeuhffhfeekgfekgeehieen ucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehtihhmse hfvggrthhhvghrthhophdrohhrgh X-ME-Proxy: <xmx:_tCrZaxnIEZ7GdC1bMi7qW8CsMs2AP1fvI3Z4i7iAh66UMSSe60TKg> <xmx:_tCrZZRwxO-8BIsLlyTm-iJwbX92SEbL4eN5aFVUAyf9oRlLGNKChQ> <xmx:_tCrZVaDHzW345i3EpuY8kovC1HXGxfDNEKtfCEOG9Njo12Z-ycR4w> <xmx:_tCrZYJSvmacN2IYg0GPImVzMjd--9xe_Q0dDRkruHMEphld1qjgeQ> 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 <tim@feathertop.org> 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 <tim@feathertop.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>, Zhang Qing <zhangqing@rock-chips.com>, 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> 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: 1788617950648035439 X-GMAIL-MSGID: 1788617950648035439 |
Series |
dt-bindings: rockchip: Add support for rk809 audio codec
|
|
Commit Message
Tim Lunn
Jan. 20, 2024, 1:55 p.m. UTC
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 <tim@feathertop.org>
---
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(-)
Comments
On 20/01/2024 14:55, Tim Lunn wrote: > Rockchip RK809 shares the same audio codec block as the rk817 mfd, and What rk817 has anything to do with this? > is compatible with the existing rk817_codec driver. This patch Please do not use "This commit/patch/change", but imperative mood. See longer explanation here: https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 > 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. Typo. Also, what consistency with rk817 driver? I really do not understand which problem you are solving here. Best regards, Krzysztof
On 1/22/24 19:16, Krzysztof Kozlowski wrote: > On 20/01/2024 14:55, Tim Lunn wrote: >> Rockchip RK809 shares the same audio codec block as the rk817 mfd, and > What rk817 has anything to do with this? The existing codec driver in linux already is from the rk817 and thus called rk817, however that driver is also compatible with the codec in rk809. > >> is compatible with the existing rk817_codec driver. This patch > Please do not use "This commit/patch/change", but imperative mood. See > longer explanation here: > https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 I will check this as well. > >> 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. > Typo. > > Also, what consistency with rk817 driver? The rk817 codec driver that already exists in mainline linux tree. > > I really do not understand which problem you are solving here. I will fix the typo and try to clarify commit message further. > > > > Best regards, > Krzysztof >
On 23/01/2024 05:25, Tim Lunn wrote: > > On 1/22/24 19:16, Krzysztof Kozlowski wrote: >> On 20/01/2024 14:55, Tim Lunn wrote: >>> Rockchip RK809 shares the same audio codec block as the rk817 mfd, and >> What rk817 has anything to do with this? > > The existing codec driver in linux already is from the rk817 and thus > called rk817, however > that driver is also compatible with the codec in rk809. Sure, but how is this any related? Your commit msg says two independent things: 1. Something shares same audio codec block 2. Add clocks I don't see how they are anyhow related to each other, IOW, how from (1) comes (2). Best regards, Krzysztof
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 <dt-bindings/clock/px30-cru.h> #include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/gpio/gpio.h> @@ -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>;