From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (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 237443FC2 for ; Wed, 25 Aug 2021 14:54:39 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 4942D581075; Wed, 25 Aug 2021 10:54:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 25 Aug 2021 10:54:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=IqJM9t4viIksZpN3cNv1P81kyYI WsJz+PszGrJJmalk=; b=q0s2segFpoUph9ozZyNmF175KEKs6Jw9GmRitRQibTD KlsRtCsrwUtITeiUXVIfefFSqFR3WHjhdv4GY5lNJ0fQyzm9Yjk+ph/jw3r3Lp4m STdFxzfQiXSnaekbeA3dt5p46YqG+HKHP2favJ5qegt9vXNl9THGVKk9ADU9C5k1 c3QCpVRB8H8Hr+RLBETaTXFB0/cYwOwtdH5xAfn8/eaiGExCqc0vvMMwbAlTGj6R nGsJ+9csqoAj8FejrSwPy1SW7fBKvp2fBks9YKvio8zCHTfJCVLNJoP2MRZWlQAS 0tELQsIMTZmCUVgDeXZHOh4pAU6d/mcGoLSjKO0zMfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IqJM9t 4viIksZpN3cNv1P81kyYIWsJz+PszGrJJmalk=; b=noD1zg8iL2XnTLBPh+0OWT MVo4oaUJFG8knVLYoYtfJQkKl2Ih59G5GFOGPZBJxwBBSSY5M7/WUg5TWY+8ZA4h kAKInzBShxqjWyeNlFEGR22jgmdiwoE5W0VvhvvXbtu1muMV3VMnboZQNvQtwoaj 8mM4OvMrWxiGPuyxO/l8LEAw7VWQPwYVweMXMsX3h/IZkwFAU6qr3lrjhNK0UABj ST9ps2d697SGL7Mb9jSHlIObLoyBBqwVL8Wf64Z346LQvH888nBAtyP7jQFYi1iM +zxjijY1REKfu0Mt0oRTYYz0RzSWWqZDcOllr+ilWzynP/GAa0vfuZM9f2gKxR6w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtledgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Aug 2021 10:54:36 -0400 (EDT) Date: Wed, 25 Aug 2021 16:54:34 +0200 From: Maxime Ripard To: Samuel Holland Cc: Icenowy Zheng , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Ulf Hansson , Linus Walleij , Alexandre Belloni , Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/17] clk: sunxi-ng: add support for Allwinner R329 CCU Message-ID: <20210825145434.vdrhgrgblnnmvmve@gilmour> References: <20210802062212.73220-1-icenowy@sipeed.com> <20210802062212.73220-12-icenowy@sipeed.com> <3e56e53f-e6df-50cf-5545-e9132e521ed1@sholland.org> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jd6omazv7t4jt7hs" Content-Disposition: inline In-Reply-To: <3e56e53f-e6df-50cf-5545-e9132e521ed1@sholland.org> --jd6omazv7t4jt7hs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 19, 2021 at 09:41:26PM -0500, Samuel Holland wrote: > On 8/2/21 1:22 AM, Icenowy Zheng wrote: > > Allwinner R329 has a CCU that is similar to the H616 one, but it's cut > > down and have PLLs moved out. > >=20 > > Add support for it. > >=20 > > Signed-off-by: Icenowy Zheng > > --- > > drivers/clk/sunxi-ng/Kconfig | 5 + > > drivers/clk/sunxi-ng/Makefile | 1 + > > drivers/clk/sunxi-ng/ccu-sun50i-r329.c | 526 ++++++++++++++++++++ > > drivers/clk/sunxi-ng/ccu-sun50i-r329.h | 32 ++ > > include/dt-bindings/clock/sun50i-r329-ccu.h | 73 +++ > > include/dt-bindings/reset/sun50i-r329-ccu.h | 45 ++ > > 6 files changed, 682 insertions(+) > > create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.c > > create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.h > > create mode 100644 include/dt-bindings/clock/sun50i-r329-ccu.h > > create mode 100644 include/dt-bindings/reset/sun50i-r329-ccu.h > >=20 > > diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig > > index e49b2c2fa5b7..4b32d5f81ea8 100644 > > --- a/drivers/clk/sunxi-ng/Kconfig > > +++ b/drivers/clk/sunxi-ng/Kconfig > > @@ -42,6 +42,11 @@ config SUN50I_H6_R_CCU > > default ARM64 && ARCH_SUNXI > > depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST > > =20 > > +config SUN50I_R329_CCU > > + bool "Support for the Allwinner R329 CCU" > > + default ARM64 && ARCH_SUNXI > > + depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST > > + > > config SUN50I_R329_R_CCU > > bool "Support for the Allwinner R329 PRCM CCU" > > default ARM64 && ARCH_SUNXI > > diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makef= ile > > index db338a2188fd..62f3c5bf331c 100644 > > --- a/drivers/clk/sunxi-ng/Makefile > > +++ b/drivers/clk/sunxi-ng/Makefile > > @@ -28,6 +28,7 @@ obj-$(CONFIG_SUN50I_A100_R_CCU) +=3D ccu-sun50i-a100-= r.o > > obj-$(CONFIG_SUN50I_H6_CCU) +=3D ccu-sun50i-h6.o > > obj-$(CONFIG_SUN50I_H616_CCU) +=3D ccu-sun50i-h616.o > > obj-$(CONFIG_SUN50I_H6_R_CCU) +=3D ccu-sun50i-h6-r.o > > +obj-$(CONFIG_SUN50I_R329_CCU) +=3D ccu-sun50i-r329.o > > obj-$(CONFIG_SUN50I_R329_R_CCU) +=3D ccu-sun50i-r329-r.o > > obj-$(CONFIG_SUN4I_A10_CCU) +=3D ccu-sun4i-a10.o > > obj-$(CONFIG_SUN5I_CCU) +=3D ccu-sun5i.o > > diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-r329.c b/drivers/clk/sunxi= -ng/ccu-sun50i-r329.c > > new file mode 100644 > > index 000000000000..a0b4cfd6e1db > > --- /dev/null > > +++ b/drivers/clk/sunxi-ng/ccu-sun50i-r329.c > > @@ -0,0 +1,526 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Based on the H616 CCU driver, which is: > > + * Copyright (c) 2020 Arm Ltd. > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "ccu_common.h" > > +#include "ccu_reset.h" > > + > > +#include "ccu_div.h" > > +#include "ccu_gate.h" > > +#include "ccu_mp.h" > > +#include "ccu_mult.h" > > +#include "ccu_nk.h" > > +#include "ccu_nkm.h" > > +#include "ccu_nkmp.h" > > +#include "ccu_nm.h" > > + > > +#include "ccu-sun50i-r329.h" > > + > > +/* > > + * An external divider of PLL-CPUX is controlled here. As it's similar= to > > + * the external divider of PLL-CPUX on previous SoCs (only usable under > > + * 288MHz}, ignore it. >=20 > Mismatched (braces} here >=20 > > + */ > > +static const char * const cpux_parents[] =3D { "osc24M", "osc32k", "io= sc", > > + "pll-cpux", "pll-periph", > > + "pll-periph-2x", > > + "pll=3Dperiph-800m" }; >=20 > =3D should be a -. >=20 > Now that these PLLs are in a different device, how is this supposed to af= fect > the DT binding? Do we put all of them in the clocks property? >=20 > If so, we can use .fw_name at some point. If not, why bother with the clo= cks > property at all? This is another part of the "let's get the clock tree ri= ght > from the start" discussion. Agreed Maxime --jd6omazv7t4jt7hs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYSZZqgAKCRDj7w1vZxhR xf7MAQCaA0w3oNAOvdQ5ITxY5Ab2GivujOLUDDhU3UcM2ZnHEAEAxNsnCPVFwlPY bfCv++67RwNPa1FPsCUxvKudlvWfWQc= =Z5kK -----END PGP SIGNATURE----- --jd6omazv7t4jt7hs-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71B20C4338F for ; Wed, 25 Aug 2021 15:00:33 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 42A12610E6 for ; Wed, 25 Aug 2021 15:00:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 42A12610E6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4g7UyJXB9z8MkibjW32KK/lUWSvoXhN8wf3OAkUHPe0=; b=1LNhmVXNSckN6AfIXSFSkeKwiC RSH1kkgMYEmShnPhEoFrO38a7WUoD8a5IWiw1GSYMJ7rv4ZgcHPilBytjaUnLlQrMq8usgIZuX5lY ZBocgi6NcoIHDTTmVywGgUvq/QUGnu+WxGN2fWbSEivrdYgLWtdi+eFcbI2QPG7dXnmOcgxqOOakZ VM5YUD3t+HhpyBna3FWVCwR10O7N44JTwCzGq7b88IyXOCUilfcKNsEZXCiLy8s29SkiODCcb8ks9 npPNfE9mApN5gwnrbjpuq9OZwo2OPVmxECkbic0pm+JQbw1+zYy4i+JqfFzghuHaqZnBLm0JXtoVk R8RlN40A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIuLT-007NMW-Uy; Wed, 25 Aug 2021 14:57:41 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIuIa-007M4E-3p for linux-arm-kernel@lists.infradead.org; Wed, 25 Aug 2021 14:54:44 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 4942D581075; Wed, 25 Aug 2021 10:54:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 25 Aug 2021 10:54:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=IqJM9t4viIksZpN3cNv1P81kyYI WsJz+PszGrJJmalk=; b=q0s2segFpoUph9ozZyNmF175KEKs6Jw9GmRitRQibTD KlsRtCsrwUtITeiUXVIfefFSqFR3WHjhdv4GY5lNJ0fQyzm9Yjk+ph/jw3r3Lp4m STdFxzfQiXSnaekbeA3dt5p46YqG+HKHP2favJ5qegt9vXNl9THGVKk9ADU9C5k1 c3QCpVRB8H8Hr+RLBETaTXFB0/cYwOwtdH5xAfn8/eaiGExCqc0vvMMwbAlTGj6R nGsJ+9csqoAj8FejrSwPy1SW7fBKvp2fBks9YKvio8zCHTfJCVLNJoP2MRZWlQAS 0tELQsIMTZmCUVgDeXZHOh4pAU6d/mcGoLSjKO0zMfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=IqJM9t 4viIksZpN3cNv1P81kyYIWsJz+PszGrJJmalk=; b=noD1zg8iL2XnTLBPh+0OWT MVo4oaUJFG8knVLYoYtfJQkKl2Ih59G5GFOGPZBJxwBBSSY5M7/WUg5TWY+8ZA4h kAKInzBShxqjWyeNlFEGR22jgmdiwoE5W0VvhvvXbtu1muMV3VMnboZQNvQtwoaj 8mM4OvMrWxiGPuyxO/l8LEAw7VWQPwYVweMXMsX3h/IZkwFAU6qr3lrjhNK0UABj ST9ps2d697SGL7Mb9jSHlIObLoyBBqwVL8Wf64Z346LQvH888nBAtyP7jQFYi1iM +zxjijY1REKfu0Mt0oRTYYz0RzSWWqZDcOllr+ilWzynP/GAa0vfuZM9f2gKxR6w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddtledgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmh grgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Aug 2021 10:54:36 -0400 (EDT) Date: Wed, 25 Aug 2021 16:54:34 +0200 From: Maxime Ripard To: Samuel Holland Cc: Icenowy Zheng , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Ulf Hansson , Linus Walleij , Alexandre Belloni , Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/17] clk: sunxi-ng: add support for Allwinner R329 CCU Message-ID: <20210825145434.vdrhgrgblnnmvmve@gilmour> References: <20210802062212.73220-1-icenowy@sipeed.com> <20210802062212.73220-12-icenowy@sipeed.com> <3e56e53f-e6df-50cf-5545-e9132e521ed1@sholland.org> MIME-Version: 1.0 In-Reply-To: <3e56e53f-e6df-50cf-5545-e9132e521ed1@sholland.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210825_075440_327631_75062B4B X-CRM114-Status: GOOD ( 30.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============9135434382810637466==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============9135434382810637466== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jd6omazv7t4jt7hs" Content-Disposition: inline --jd6omazv7t4jt7hs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 19, 2021 at 09:41:26PM -0500, Samuel Holland wrote: > On 8/2/21 1:22 AM, Icenowy Zheng wrote: > > Allwinner R329 has a CCU that is similar to the H616 one, but it's cut > > down and have PLLs moved out. > >=20 > > Add support for it. > >=20 > > Signed-off-by: Icenowy Zheng > > --- > > drivers/clk/sunxi-ng/Kconfig | 5 + > > drivers/clk/sunxi-ng/Makefile | 1 + > > drivers/clk/sunxi-ng/ccu-sun50i-r329.c | 526 ++++++++++++++++++++ > > drivers/clk/sunxi-ng/ccu-sun50i-r329.h | 32 ++ > > include/dt-bindings/clock/sun50i-r329-ccu.h | 73 +++ > > include/dt-bindings/reset/sun50i-r329-ccu.h | 45 ++ > > 6 files changed, 682 insertions(+) > > create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.c > > create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.h > > create mode 100644 include/dt-bindings/clock/sun50i-r329-ccu.h > > create mode 100644 include/dt-bindings/reset/sun50i-r329-ccu.h > >=20 > > diff --git a/drivers/clk/sunxi-ng/Kconfig b/drivers/clk/sunxi-ng/Kconfig > > index e49b2c2fa5b7..4b32d5f81ea8 100644 > > --- a/drivers/clk/sunxi-ng/Kconfig > > +++ b/drivers/clk/sunxi-ng/Kconfig > > @@ -42,6 +42,11 @@ config SUN50I_H6_R_CCU > > default ARM64 && ARCH_SUNXI > > depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST > > =20 > > +config SUN50I_R329_CCU > > + bool "Support for the Allwinner R329 CCU" > > + default ARM64 && ARCH_SUNXI > > + depends on (ARM64 && ARCH_SUNXI) || COMPILE_TEST > > + > > config SUN50I_R329_R_CCU > > bool "Support for the Allwinner R329 PRCM CCU" > > default ARM64 && ARCH_SUNXI > > diff --git a/drivers/clk/sunxi-ng/Makefile b/drivers/clk/sunxi-ng/Makef= ile > > index db338a2188fd..62f3c5bf331c 100644 > > --- a/drivers/clk/sunxi-ng/Makefile > > +++ b/drivers/clk/sunxi-ng/Makefile > > @@ -28,6 +28,7 @@ obj-$(CONFIG_SUN50I_A100_R_CCU) +=3D ccu-sun50i-a100-= r.o > > obj-$(CONFIG_SUN50I_H6_CCU) +=3D ccu-sun50i-h6.o > > obj-$(CONFIG_SUN50I_H616_CCU) +=3D ccu-sun50i-h616.o > > obj-$(CONFIG_SUN50I_H6_R_CCU) +=3D ccu-sun50i-h6-r.o > > +obj-$(CONFIG_SUN50I_R329_CCU) +=3D ccu-sun50i-r329.o > > obj-$(CONFIG_SUN50I_R329_R_CCU) +=3D ccu-sun50i-r329-r.o > > obj-$(CONFIG_SUN4I_A10_CCU) +=3D ccu-sun4i-a10.o > > obj-$(CONFIG_SUN5I_CCU) +=3D ccu-sun5i.o > > diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-r329.c b/drivers/clk/sunxi= -ng/ccu-sun50i-r329.c > > new file mode 100644 > > index 000000000000..a0b4cfd6e1db > > --- /dev/null > > +++ b/drivers/clk/sunxi-ng/ccu-sun50i-r329.c > > @@ -0,0 +1,526 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* > > + * Based on the H616 CCU driver, which is: > > + * Copyright (c) 2020 Arm Ltd. > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include "ccu_common.h" > > +#include "ccu_reset.h" > > + > > +#include "ccu_div.h" > > +#include "ccu_gate.h" > > +#include "ccu_mp.h" > > +#include "ccu_mult.h" > > +#include "ccu_nk.h" > > +#include "ccu_nkm.h" > > +#include "ccu_nkmp.h" > > +#include "ccu_nm.h" > > + > > +#include "ccu-sun50i-r329.h" > > + > > +/* > > + * An external divider of PLL-CPUX is controlled here. As it's similar= to > > + * the external divider of PLL-CPUX on previous SoCs (only usable under > > + * 288MHz}, ignore it. >=20 > Mismatched (braces} here >=20 > > + */ > > +static const char * const cpux_parents[] =3D { "osc24M", "osc32k", "io= sc", > > + "pll-cpux", "pll-periph", > > + "pll-periph-2x", > > + "pll=3Dperiph-800m" }; >=20 > =3D should be a -. >=20 > Now that these PLLs are in a different device, how is this supposed to af= fect > the DT binding? Do we put all of them in the clocks property? >=20 > If so, we can use .fw_name at some point. If not, why bother with the clo= cks > property at all? This is another part of the "let's get the clock tree ri= ght > from the start" discussion. Agreed Maxime --jd6omazv7t4jt7hs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYSZZqgAKCRDj7w1vZxhR xf7MAQCaA0w3oNAOvdQ5ITxY5Ab2GivujOLUDDhU3UcM2ZnHEAEAxNsnCPVFwlPY bfCv++67RwNPa1FPsCUxvKudlvWfWQc= =Z5kK -----END PGP SIGNATURE----- --jd6omazv7t4jt7hs-- --===============9135434382810637466== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============9135434382810637466==--