Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp468411rdb; Wed, 17 Jan 2024 07:29:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKG89QCzks7VOv2ZgXBBU7c4owCQahfD8pBrj7EeFU320EihTzfe2AM03mvYD6ZbjveaSg X-Received: by 2002:a05:6214:21ed:b0:681:7141:ff49 with SMTP id p13-20020a05621421ed00b006817141ff49mr1363928qvj.11.1705505394421; Wed, 17 Jan 2024 07:29:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705505394; cv=pass; d=google.com; s=arc-20160816; b=pW4wDnoWBAMlq8mDov9Rk0hHedrhDWIpRiruLI076eGHxX29AEcusQGHJHx3a+6SpF 3b5WuvLK/YjWfNIbltEUKY7oKZgjhl6P3qrIFvc5lpIhF2ULWZZVKXPYfPp8jQgmKxVE ZiM8kqqV8OzSLmue4jppY2HpHUPvCGmTujjaS5jg6x0N0OJd9GQXTzyUdmNUJRPO3B05 y8tG6lt38F2XdNg7s4Ae9OjC/O9L3k5r+TLQVrJmPYY4q+uIt1MDVLUDdNv4g1IMgh+W rOd7epzvYm0T7drGDqTLGmIsT3NeRXSkrGqaF5JFYhvIgGGRslLKXyKLQPqpjIyq/LM4 w90Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MwYCBn1zGzGmdvatY6YZAMBsgrsEoEPMz9XzZbwtuK0=; fh=JQhu6Y7IMVaRhKPO63Qrw34/raGQb99GWxT0qoW8GjA=; b=oU6D77Fgx8KW6k4zXVsf4A9HhJJgcj82Qjmv369QKLk5ka2t54bHF+8pYqE917QkHk w2Qs2vIz34PDweXZ6tB0Lafky/zHl50HCh+/mixaA7dZ/OshIT1sRfbbXoRs+8SfriuU juAdnQCzOeP4JbkpqiIpJ58yEb3al0/N77qa+0u/zSs+3k7O7x/gaA/QNJ4lkpfo5YC3 NruAN9Xxhk9uwfyeXzNRkVt5rPU0XJufXpByIZqYAM8yGNsY6+4l1qDzhVcWKMWuPZSW hOzlY9zAlSgQ0Ry6iN1SvgyHf5tqH4ifRk3SBt6hdvjipo4iTi/Hnzt3W/+ceJFcp5eU rtIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GthVqAlu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q11-20020a0c8ccb000000b00680f685d333si11429048qvb.18.2024.01.17.07.29.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:29:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29156-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=GthVqAlu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-29156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 2F0FA1C219FF for ; Wed, 17 Jan 2024 15:29:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A34D21A02; Wed, 17 Jan 2024 15:29:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GthVqAlu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 871FD21347; Wed, 17 Jan 2024 15:29:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705505386; cv=none; b=RKdcn+JGqGZVplqRfakXxMef7fFu2LAYB0pqweLiWjdB+q54mJXxZkdqw68T/UplT5Cvrov15cKZ+HwOANsnGbzmMDc0GmBkNiSfDX9NPUnp7/RYM2qVlI6dTSxSAYf1mtMnuz6trk3GuX8iHVGcaxsOdkcytRIjHDAhqVP+xQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705505386; c=relaxed/simple; bh=qxxZ9RjuckhZiHlpj6s0cb/PxO0021+SF6EF75yf3pg=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=ZfluIuJYEpr9IP/Upu9TFGtNYYwPTonP5RyelJm0SGHlcC3XleHkGoxmUI+WDLRMqMiUwoWSVKSI8nfynABJBNZecUiQkvQoJNImzvCvsplianUJoQG0gRNTNyKrs5IFcdQETbynFLbwYsUsYvpdwTx3AND0VIedzTR6hsyRNR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GthVqAlu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45890C433F1; Wed, 17 Jan 2024 15:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705505385; bh=qxxZ9RjuckhZiHlpj6s0cb/PxO0021+SF6EF75yf3pg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GthVqAlu8QyItM872HC2zFIziyZXmGUFTUjvYc9wybCEfU0Uji5Q0Z1fLCfOKTyH5 jQmKY5Sp7TYEn2z6YfVz5HUy27zQlKnaxTEYSJu4UpJznLrShbS98wlOlrKH8KRHDo XEB1ZXUTq1hjgbIIegibTODOMV8tEoIN2MuhyQKgmZHxsPKCLDk4GQLL10Cir11YRx lJYlsHef/2rCvt4vJAqQBa77Cqj6m1+E+0vEw6uBiAjScWB0kZUMno3rcYuYP/3Hti RrurJJSDNsDWmy7SSOIerlHNcdrhr55r4i3Od2tkAUKP/WuZ7X6sTPE96jgR7kZDnZ QQoIjHbGGLSwQ== Date: Wed, 17 Jan 2024 15:29:41 +0000 From: Conor Dooley To: Tim Lunn Cc: Krzysztof Kozlowski , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, 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: Re: [PATCH v2 1/3] dt-bindings: rockchip: Document rk809 support for rk817 audio codec Message-ID: <20240117-motto-uselessly-b27523fac94d@spud> References: <20240116132102.3272682-1-tim@feathertop.org> <20240116132102.3272682-2-tim@feathertop.org> <20240116-mangle-parish-93b5cd672d17@spud> <72ed509c-f754-4e65-a65e-130185777c53@feathertop.org> <9636bcb9-6b4b-41ef-bcfc-ff39c11d127e@feathertop.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yBdANV7KjVXVo10Z" Content-Disposition: inline In-Reply-To: <9636bcb9-6b4b-41ef-bcfc-ff39c11d127e@feathertop.org> --yBdANV7KjVXVo10Z Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 17, 2024 at 08:58:56PM +1100, Tim Lunn wrote: >=20 > 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 i= s also > > > > > using the same rk817_codec driver. However it is missing from the > > > > > bindings. > > > > >=20 > > > > > Update dt-binding documentation for rk809 to include the audio co= dec > > > > > properties. This fixes the following warning from dtb check: > > > > >=20 > > > > > pmic@20: '#sound-dai-cells', 'assigned-clock-parents', 'assigned-= clocks', > > > > > 'clock-names', 'clocks', 'codec' do not match any of the reg= exes: > > > > > 'pinctrl-[0-9]+' > > > > >=20 > > > > > Signed-off-by: Tim Lunn > > > > > --- > > > > >=20 > > > > > (no changes since v1) > > > > >=20 > > > > > .../bindings/mfd/rockchip,rk809.yaml | 30 +++++++++++= +++++++- > > > > > 1 file changed, 29 insertions(+), 1 deletion(-) > > > > >=20 > > > > > diff --git a/Documentation/devicetree/bindings/mfd/rockchip,rk809= =2Eyaml 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 c= ontrolled 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 us= ing > > > the name to get the clock: > > >=20 > > > devm_clk_get(pdev->dev.parent, "mclk"); > > >=20 > > > Thus i dont think clock-names can=A0 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? > >=20 > 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. --yBdANV7KjVXVo10Z Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZafyZAAKCRB4tDGHoIJi 0hr9AP96djRfCAp8WT+Xh0+AVthBfqn4ug+yWw3y2+LGgfJ1SgD/c4Vmyl2Gq+Yp G2XGQ4njjJGSmJYhMHhdhBJnPSRvrAQ= =ZR79 -----END PGP SIGNATURE----- --yBdANV7KjVXVo10Z--