Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2055421lqo; Mon, 13 May 2024 06:47:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU+5cLoa6fe6cjsrDxKCKWk9nG5PF7h6bbB8lQem/pxl3HW5O1zaJKqea/hnvhbNmumOg7tR55B4Lq0vTYDTomJLim+rSu3xl0K6r4NA== X-Google-Smtp-Source: AGHT+IEa891HWV+C4sIVTrGyCfyoPEEr+zzIqTyNWZpO7MfIgcirXOv41FdwvlfuMj2Gk/goS1QZ X-Received: by 2002:a05:622a:1b19:b0:43d:fca8:9112 with SMTP id d75a77b69052e-43dfdae260cmr111462721cf.22.1715608060842; Mon, 13 May 2024 06:47:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715608060; cv=pass; d=google.com; s=arc-20160816; b=s0E6GAYuShGLPIZGFNQfklWLKRDl8ehXM5eAyKYWGj8g8Y6jwyq4gt0H8KxRPo2QRz PTiz7QPB8BiR76di91F92tmXuEYDIvfWE64KkQCyaJcTVsvZ4P7Rcg3NOtcvra5PmREs SV1D9dIPY1QjVLg07koBs69ELTxK86aPTIiYnBPZncoaCcoaunbXbO9f2Xx9JPwa5GkT UluCeP4yDsdR8G3OMic3rc5/zxId2+jOGF+qnIEYX2R+g6ryr1i4pioxhhZ9gp8yVHEk KPfGINBqOPXaBgE5mjoEyKvEBHNqlgsjY7ywyCoLgk1r+ZFWDB3Bs7lMJlxetgn0R44a Ji8A== 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=hXM0sVWup9YdkURx0BPGiywKWy51MZ0a1/FHOhFw1K4=; fh=xs+8UV8AwGGlwXndxF/HGzQGb6NB1UYO8n18jp83VbM=; b=FQ37xwjZiAgYYCdTpv9VDSFn73t0JcFx4nN14v3QU9oxdor/GIP3LMXQa0paPJ62x0 LyFORkRkzK3dThi9E8TW6oIR1bV3n2IzM1q1ZUWGB90EAxozjw0RXdjiQ9+xcewA9tW7 DviwYwkyw8N1IalG9FEreOG246Ud2EoeXoD5z++giw5bIuQATsleNeIDt3xQJ9NO+pmu c6vtHkrZNknZKAxh2J5F8tGaanQSX/uw2WBN6T43G16hYkU+R0DpXwmZjdXSvXl72tUa jQKkrGEvGmPI+qLDAezDOZoLHUzVo3DUOm9xWmqR6RaUGiPtveSZOQiOF263idOffvMG NyHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AryBU4oc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177652-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. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43e04c99f41si66847491cf.571.2024.05.13.06.47.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:47:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177652-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=AryBU4oc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-177652-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177652-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 107241C22707 for ; Mon, 13 May 2024 13:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE337153BDA; Mon, 13 May 2024 13:44:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AryBU4oc" 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 E98231534FE; Mon, 13 May 2024 13:44:55 +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=1715607896; cv=none; b=rmsXlcpKW3IK09WNMwsBfE8cArPZ1xyj+HE61e+BF46Q7pB48TZL2VjG6aUL1QXVCmTT3Zpq6+Uu4npueZ3cCSFWM0LGfqJzGR96AfRtzT3nhGdxSqo8o0Jw90Q0v0IZNKRJLUB9qSZ3469J/wBien+1tl7nAjWHfwBhNRpWRwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715607896; c=relaxed/simple; bh=n87KKV+BF5dZ/93FCjBaWdbxZVC6KFuXqnr7dqwfO9M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HDQi0JCQxmZDmfeSPPGhIc0gE7xbToFVjs26MgjkO8FkR6AD6QxAiIvGrgB+zBf8rymbJe+c6NvrwZwXtoweQb3P85LfO48QZEf3CYCMjnmtYUUgf9Jf37ogTOsZpiVMXPHAK3El6hnlQtzmOzls9qtHBCWNHvnQiftFotiVXKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AryBU4oc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F040C113CC; Mon, 13 May 2024 13:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715607895; bh=n87KKV+BF5dZ/93FCjBaWdbxZVC6KFuXqnr7dqwfO9M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AryBU4ocAifL7bA09c9DHou1/vDq9KNXExgVjrCdQTBHE76Yqe9jo0zhooKH8ybNV 1v413UT50CSml6IumZti56rDdVYLr8PzKNRuca+lEdqUuoSwKV0BohLTOFEzvp1uiU IW8sGbo/FuicuNtqJ8sG1rL2UAnnCuUIgNZVP3FO31Nalpk/BxvXqQxsN36QYm5F1E sDtRcosdnmSFjD1Ajtq9f/GBTRoVCJaXhTmzw6f7wd+hwHRNi0qW5dDKgiDOs7iOUL 16hFYqCg8lUoJQ/1wpWrOKNUsQUclYiwMlgzOaPN15AYBLD6LhzGVnxcqHeS5glEy8 qn+H3fHdZmWyQ== Date: Mon, 13 May 2024 08:44:53 -0500 From: Rob Herring To: Jan Dakinevich Cc: Conor Dooley , devicetree@vger.kernel.org, Jerome Brunet , Kevin Hilman , Krzysztof Kozlowski , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , Michael Turquette , Neil Armstrong , Stephen Boyd Subject: Re: [APPROACH 2 1/2] arm64: dts: amlogic: list all slave clocks for audio clock controller Message-ID: <20240513134453.GA2482519-robh@kernel.org> References: <20240508144259.191843-1-jan.dakinevich@salutedevices.com> <20240508144259.191843-3-jan.dakinevich@salutedevices.com> <20240508175013.GA2244257-robh@kernel.org> <3fa610c2-1f69-41d4-b06a-035980483b3c@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3fa610c2-1f69-41d4-b06a-035980483b3c@salutedevices.com> On Sun, May 12, 2024 at 10:06:23PM +0300, Jan Dakinevich wrote: > > > On 5/8/24 20:50, Rob Herring wrote: > > On Wed, May 08, 2024 at 05:42:58PM +0300, Jan Dakinevich wrote: > >> Signed-off-by: Jan Dakinevich > >> --- > >> arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 27 ++++++++++++++++++++-- > >> arch/arm64/boot/dts/amlogic/meson-g12.dtsi | 26 +++++++++++++++++++-- > >> arch/arm64/boot/dts/amlogic/meson-sm1.dtsi | 26 +++++++++++++++++++-- > >> 3 files changed, 73 insertions(+), 6 deletions(-) > >> > >> diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > >> index 6d12b760b90f..28f4ec5f39b0 100644 > >> --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > >> +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi > >> @@ -1342,7 +1342,9 @@ clkc_audio: clock-controller@0 { > >> <&clkc CLKID_HIFI_PLL>, > >> <&clkc CLKID_FCLK_DIV3>, > >> <&clkc CLKID_FCLK_DIV4>, > >> - <&clkc CLKID_GP0_PLL>; > >> + <&clkc CLKID_GP0_PLL>, > >> + <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, > >> + <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>; > > > > All 3 cases are just unused clocks on the end. I suppose that's not > > always the case. You could just set 'minItems' in the binding to > > avoid needing to pad the end and the dts changes. > > > > You are right. I mistakenly thought that 'minItems' can not be > redefined. But not, it is allowed to redefine it and it works. Thus, > this patch is not needed for this approach. > > Anyway, what do you think about first approach? As for me, it is more > simple and readable. I prefer this one as it enforces the order. Rob