Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1065007lqo; Sat, 11 May 2024 06:08:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbGWGw6J+e77ggehNnohMHquR0qK0Ma3TEQa6NtnqgBm4YyaNzfwC2sUrxGujfYpDn/8Sn3ay1Bo4mDF+qgi1KlYj3v12j9R5tbyryUA== X-Google-Smtp-Source: AGHT+IE8BQZaUBd1JmCWCDhF55+PS65aQjy+/tAOw1NsjTf3jDeOwFlngwXqirW9/XXeZ3ICHb/H X-Received: by 2002:a05:6214:3f81:b0:6a0:bb9d:e890 with SMTP id 6a1803df08f44-6a168377242mr71557626d6.41.1715432897756; Sat, 11 May 2024 06:08:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715432897; cv=pass; d=google.com; s=arc-20160816; b=J73QQfAMbMKpXFrGSxyfS5FhxFhdFUU8H2oqs8VpgoWa8X25X+qxatWrrW27r2S6AN 7Fi91apkQd1RuiNkqD2M3bVZk8/fJ+bgsu5k2HkksBCRsY4VJXYXWNRz53Z46OtYcKmt +8aYpwSrIxy66fuerr0UPZxqVhCsX679fLFcS+ntC80+PrZBhCKAb2LvxImYvNMR/7s0 SaTGp806vAa+j7vVToGVl0iNNKMp939QeAb4UaWbI9d5OuDGr+yoRPTg+8/WT+ptsI51 CtLjOHE9lnPiATJX5ParXc/Uk4SUJPa3Fw2+3Rd3fyNi+YSHu+QIISYCG7zpDuwXwDdY zvrA== 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=KsmQVLJZ8Lq3FM53otMO595WVU0zyWORf/PdkA62VYo=; fh=Vsl6HXWfDQYPaiz4yg0EqCzeCsupgG+nvDNTzRG/eq4=; b=mBOgzCxxpz8sw4JaIy3FI+fkjAcSTFw9zn9gYxfMhfoO+hhS8f9I+2zypPV0dpVWaX aZVhUsUnpQ4o88E+W+c2DntBziCHFJ9LzRHaM4ajbZGxKVvhK1Zejv8EiXo6Xj3NQAmW qBz8Oe+cFYWkJjV5uDAmb/SdJ0T/DC+GeeiL6/ZEmEDFS46u7Ns8WB6TaRgOSZhQx7zS LsvBdtA/6zRSBKCWWZR+eP429fnR22iV2UBnoakK7AyaSUcslD2YU62bpBVi3FdEhRma ifeqQxWx+Vo5MHr2DByUgb5SnsOXySwhw7gJCcvMlS87p95jNQYXL1yTr092jwTWVw1F QuBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="DMBV/L0R"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176554-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 6a1803df08f44-6a15f1d7080si58691126d6.88.2024.05.11.06.08.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 06:08:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176554-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="DMBV/L0R"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176554-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176554-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 6F4F21C20C44 for ; Sat, 11 May 2024 13:08:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87F5451036; Sat, 11 May 2024 13:08:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DMBV/L0R" 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 A6C374F5ED; Sat, 11 May 2024 13:08:09 +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=1715432889; cv=none; b=S+eWDeuwZTI4d/ZdAqG9pzWRqfnCFYHvGnW7Wm91w48JWi9c7mSWAZPVQ3QiTp/e8xP9EvYoIuLKjO0LhpGMkg5GGWTm3de9Gwlufzlwz8NTJHtf2hzgaKosGIIi0YY0lvxPK1LvNg+ip9ywAH2AoLWGvNz6wHswXU+JOxa3/0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715432889; c=relaxed/simple; bh=nn5CCGqDXRDW0kal5/Z0nExGsCcCmd7RqOdWPQZZ+Fs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GJzxrj/c/3RFCbTChuRcPipoaQ2OHONumAUyXR1FkzqSALYbslUSfGdh8z8XSMTk/uNu2rYeZAMjfgirBz7S73XSHg04xtC7Qra1GdHn/mTPM77fSHj/oob6m4rQic4/O55AEaS/dffk5C5MFc/ySlyKmbl/JW2B2YO4VcMEiuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DMBV/L0R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08707C2BBFC; Sat, 11 May 2024 13:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715432889; bh=nn5CCGqDXRDW0kal5/Z0nExGsCcCmd7RqOdWPQZZ+Fs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DMBV/L0Rf02+pxMLC/ZTNs8StcL5fKgQTU5ppq5oaWJDipa8ukbCHuu/An38u5vZU NnvuNdjhyXgdTFMGWo8KlgW8zLJmi3r7tGype6lRozJK8NjdT6VfopQtHp/fe1MEnX SNlppIGviW72sy/N86tNc1o4u9AfAZcoo4x96htViPYEdUyh/egQzsQtT/0S6IIlND TFqDsQ2KaXVatNx1bFwXu6QFyGvbnmYHwoV42p57DbnAQdI7Hri0K8vHJzciBLqfvz +CRGOg8oJbrFXEHKBNvNDKDvLyF8imNkO+DwfSnPqPPxj4sWLcOAAAymdDRm15AbLo LZgR1LdLH6XtQ== Date: Sat, 11 May 2024 14:08:03 +0100 From: Conor Dooley To: Dmitry Rokosov Cc: neil.armstrong@linaro.org, jbrunet@baylibre.com, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, khilman@baylibre.com, martin.blumenstingl@googlemail.com, jian.hu@amlogic.com, kernel@sberdevices.ru, rockosov@gmail.com, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/7] dt-bindings: clock: meson: a1: pll: introduce new syspll bindings Message-ID: <20240511-secret-barcode-e25c722ddf1d@spud> References: <20240510090933.19464-1-ddrokosov@salutedevices.com> <20240510090933.19464-3-ddrokosov@salutedevices.com> 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="BapyMlBTqqZEbUPF" Content-Disposition: inline In-Reply-To: <20240510090933.19464-3-ddrokosov@salutedevices.com> --BapyMlBTqqZEbUPF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 10, 2024 at 12:08:54PM +0300, Dmitry Rokosov wrote: > The 'syspll' PLL is a general-purpose PLL designed specifically for the > CPU clock. It is capable of producing output frequencies within the > range of 768MHz to 1536MHz. >=20 > The clock source sys_pll_div16, being one of the GEN clock parents, > plays a crucial role and cannot be tagged as "optional". Unfortunately, > it was not implemented earlier due to the cpu clock ctrl driver's > pending status on the TODO list. It's fine to not mark it optional in the binding, but it should be optional in the driver as otherwise backwards compatibility will be broken. Given this is an integral clock driver, sounds like it would quite likely break booting on these devices if the driver doesn't treat syspll_in as optional. A lesson perhaps in describing the hardware entirely, even if the drivers don't make use of all the information yet? Cheers, Conor. >=20 > Signed-off-by: Dmitry Rokosov > --- > .../devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml | 7 +++++-- > include/dt-bindings/clock/amlogic,a1-pll-clkc.h | 2 ++ > 2 files changed, 7 insertions(+), 2 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.= yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > index a59b188a8bf5..fbba57031278 100644 > --- a/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-pll-clkc.yaml > @@ -26,11 +26,13 @@ properties: > items: > - description: input fixpll_in > - description: input hifipll_in > + - description: input syspll_in > =20 > clock-names: > items: > - const: fixpll_in > - const: hifipll_in > + - const: syspll_in > =20 > required: > - compatible > @@ -53,7 +55,8 @@ examples: > reg =3D <0 0x7c80 0 0x18c>; > #clock-cells =3D <1>; > clocks =3D <&clkc_periphs CLKID_FIXPLL_IN>, > - <&clkc_periphs CLKID_HIFIPLL_IN>; > - clock-names =3D "fixpll_in", "hifipll_in"; > + <&clkc_periphs CLKID_HIFIPLL_IN>, > + <&clkc_periphs CLKID_SYSPLL_IN>; > + clock-names =3D "fixpll_in", "hifipll_in", "syspll_in"; > }; > }; > diff --git a/include/dt-bindings/clock/amlogic,a1-pll-clkc.h b/include/dt= -bindings/clock/amlogic,a1-pll-clkc.h > index 2b660c0f2c9f..a702d610589c 100644 > --- a/include/dt-bindings/clock/amlogic,a1-pll-clkc.h > +++ b/include/dt-bindings/clock/amlogic,a1-pll-clkc.h > @@ -21,5 +21,7 @@ > #define CLKID_FCLK_DIV5 8 > #define CLKID_FCLK_DIV7 9 > #define CLKID_HIFI_PLL 10 > +#define CLKID_SYS_PLL 11 > +#define CLKID_SYS_PLL_DIV16 12 > =20 > #endif /* __A1_PLL_CLKC_H */ > --=20 > 2.43.0 >=20 >=20 --BapyMlBTqqZEbUPF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZj9tswAKCRB4tDGHoIJi 0pj2AP9o4HZKD5fAbbwEJlMifsTMl/7hSOmkyRbcNK3IJjs/IwEAovKPd0n+svw5 TYMMJ7Bah8z91bGRNWgo/Zn/yyRxdw8= =ohus -----END PGP SIGNATURE----- --BapyMlBTqqZEbUPF--