| Message ID | 20241227165719.3902388-11-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBBNZXO5QMGQEMYHVGDQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com
[209.85.208.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 855AC43434
for <linux-amarula@patchwork.amarulasolutions.com>;
Fri, 27 Dec 2024 17:57:42 +0100 (CET)
Received: by mail-ed1-f72.google.com with SMTP id
4fb4d7f45d1cf-5d3f3d6a922sf3848202a12.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Fri, 27 Dec 2024 08:57:42 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1735318662; cv=pass;
d=google.com; s=arc-20240605;
b=eIKOkNu+EuJY3QqIf+eCF0uRm2FRgIRWvmumAlDFrW8JGcOmDlJgJcsPExGAs/d2qc
cPOk95Fgi3ChqSO4RASoO5kCvB/qniO6aytd1SVrG5bKGkzyOGhNbdgfhdeCSMzL6uMf
PP/Js+q7vSC07n0q86UQxumfhQdj6P5rn9meWQ511vHuSSh0Odb2mn1qHMG3Op1hISZs
6cAtRvfX8gSAWG9v4vrsQDDHFTXOZfmAv6gTdxyvMrMz/C1EqUqrmpZd824HtnIE9Pp4
4ZYEUOiDZOIvgNpGF1xqXgigO4M4QYaGbEteTAKYnJuYpUAiW77KgdZUCp87gRtUeOjP
yKXA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=cZjs6K1YFJKDBvyIJeQRykkT1rz3mPG4AwmYiZll1eA=;
fh=Prlhyp6jyufoKEHqXOWjzq2Is/EEbYs6RCUjWaUynJM=;
b=O5Ogogv5VpUa780UHP/N0UEfpXtxkJQn2CyrpD1KvUVdPUl3X4mo8pmKXBU52TCQBi
oFqqH4PugnJxmO9MDn+WCcedWO8j65IMboQKAcJHpnNHfWJ+Cs3C4NhnVCWFscErFqfC
uKdRbb6ysHj+m9HCrbLYVJieRYp6yxODTeC6+fbUPLnqnFlvQzDsMvogDwgiFLSyAgw0
j65VM0Ebxod8ldyzFJ0w+l7RAtcUNXiZkGIhN9s/AvTNgMqM+MqTFlcl7xN0FOnzM4UQ
BP7zI+Ug41oEmHvfsPROtjaKvdYYXnZgPF7x5g6XF6w19QAdY48zxioHVw6+rnc0WK07
XotQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=aqVe7fQa;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1735318662; x=1735923462;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=cZjs6K1YFJKDBvyIJeQRykkT1rz3mPG4AwmYiZll1eA=;
b=hhsxpsRVlnrJmpAB3oFVO7j55EJSETipNlDDIcefcgmdaC7PTR/yrnuXfKy8Z59QZi
M0DZ6eKFZsOmWMhJUR6zs8kzso26bSAUIXUNGQfppSAnscekDd9PlPCLVUqv/PjqCaM5
c7gj9W27iMGCI4TFMSmVbqPc7RsrMUVFlLwow=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1735318662; x=1735923462;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=cZjs6K1YFJKDBvyIJeQRykkT1rz3mPG4AwmYiZll1eA=;
b=wPCKXlGlVlfXVaa3X8BleIhGc11BhWdN9bJSJta/vSyMqrDZDwqyPMt2oSfWZOYMKd
4qdhurQQZNXLEg5+mJ3v69ZaVUgQf0h531WMHTE1olXNQTOsGYBecqakvbmqN7784yQC
7psXMSl/glKX2t9uisvZn/3KPn+yyhq6BHUcRBoSYNX6qM5+aDSdf1aU5PTrg/Rqe43Q
TzWfAAgoJnaiDZjSAt7Ot9bg9XwoO22ONa0baB0p+hOjr8hOck2Y4U3ENtWMbHxzUw50
mLxyPN018ME6RxDZSimyW/DEdUKn7jUFe9aeVBg9eVBPcbRteZp83qrZEpEBVN+3hyKt
5rXg==
X-Forwarded-Encrypted: i=2;
AJvYcCXY4NVu5JtqnjfdnRjGjzuZZwnW1mI5RUgMlcwAiJH6SURozTTxJgzjjB3mcbxbC86+AD5YA/LESNvUSvJ3@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YzyeUZNTmzOQ1tERUNKA9WE1e4bEvO8Rpp4GfWnsUEfWi39m7Hl
538Mta+UFHQYeQKAUs419caml84zUwV0fATnF/3LMZZX/Kr4GcOWi4Jh7slnsPsX6w==
X-Google-Smtp-Source:
AGHT+IHDt3CfkK+iNB0Nv8xzysd5LmogoSd+8dNUbziMpud0x7om9Yw08c5ZvgX39SNPPPYx5u6Rrg==
X-Received: by 2002:a05:6402:2346:b0:5d3:bc1d:e56b with SMTP id
4fb4d7f45d1cf-5d81ddfdf76mr20616162a12.16.1735318662153;
Fri, 27 Dec 2024 08:57:42 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a50:9987:0:b0:5d3:ecaf:6210 with SMTP id
4fb4d7f45d1cf-5d8b86c7b44ls89004a12.0.-pod-prod-08-eu;
Fri, 27 Dec 2024 08:57:40 -0800 (PST)
X-Received: by 2002:a17:907:7291:b0:aac:831:d35b with SMTP id
a640c23a62f3a-aac3352c965mr2297730466b.45.1735318660309;
Fri, 27 Dec 2024 08:57:40 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1735318660; cv=none;
d=google.com; s=arc-20240605;
b=lEKyAkKaw+WDHy+rhl8MCtr1dE/ajVu3rvVPqomNZVz62AVuv2PsXpYwkEIUke1JsR
0GU6DT466ZKGTb1udZArOilpargqIrZ5oTIK/7VBObtSPDS8Ruxt76IIOMbTITkSbyJo
TsG8dUqLsRVc1lbxbkvz8QIc0cl/3gWz4Z+jbD8pwjTskO9Z1IeCjWSNtacydVx0Usoq
zFwYFzcMCd+/YCzH9aFoQlnpKmPi5lRfjHs+Y1vzzfPM0qC7BrC2mKB9HKpWQgfqTMiK
J0JM1vuUeaCayxEwf6iPxu/NuP6HBXwj/ijT9BFt3rfrHX+rm322iDrDjfBSrGjKznpS
8tWA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=EXkTXrVS+/nRJltLKdRuy9fqF8vJTsINCmAjWzhQ/Xw=;
fh=2TL5gdVAJyX/yhk5/AxHrADrCeVz/BiuKBD/sWsuHYo=;
b=fIBHVrqlkkRJT3gaeRy2uG8EMO32J2QtEcO1ELp4/1FbBlfKP2oYWQDYnSHSez61OO
buO4lSoeZX9dOy8NfEyfXOLo7jAgXKk8fTY/bD6WGp2A0Fxp3M5tYwraNiYK6fDP+5OY
OqGjtZO6brvwGnRXZOS/6EgpjWBuVRGnoHMgAg1svmGa1DsXTP4bY1Hor+wTHtRi39As
xHPlQsWSsb+zrwTwUEVX+IomhMxsvz12AsPc/HovQt9fe0EVnTl0+wRIxgtXJ2QFUby3
J8TH17Gk63n57wJXPTmTC2f4I9SlYT7UltbTuwITRsyi0T4x5kAlZ5HtaWHNwplveWio
SH8w==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=aqVe7fQa;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-aac0e87725asor341777666b.6.2024.12.27.08.57.40
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Fri, 27 Dec 2024 08:57:40 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Gm-Gg: ASbGncuenj/ojW4FGunvrEMQUQvrbxfTpyylnzTNDJD1cQ+1LJtzX7h4RHQPUACpZrg
vFCJA73JUMLYuwewT+XNivOIz3eEiWaQiLfYUgDkFJW2lyClOif/4b+PHcSWdG0mm7kfPkmlf/j
0caXfPBRIoXiJI7qK9+ZXTJvuRizVxx6uuVK+IY5UikfG0uPVKf6zSslTFgIGUUDZXVgb+GzNk4
YRKTNC9BpnQXOe8ledw1q8gN0PGBX95GTiCJgfZBehp2EoZi1zkGd8F/Vbu1/W1bFRYTCiUhKMB
hA3BtZubZcOfTTJSE8o6oQ==
X-Received: by 2002:a17:907:3d86:b0:aa6:9eac:4b7e with SMTP id
a640c23a62f3a-aac2d455458mr2795714566b.30.1735318659824;
Fri, 27 Dec 2024 08:57:39 -0800 (PST)
Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.175])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-aac0f0159f1sm1130097266b.154.2024.12.27.08.57.38
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 27 Dec 2024 08:57:39 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-kernel@vger.kernel.org
Cc: linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Abel Vesa <abelvesa@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Fabio Estevam <festevam@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Peng Fan <peng.fan@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
devicetree@vger.kernel.org,
imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-clk@vger.kernel.org
Subject: [PATCH v7 10/23] dt-bindings: clock: imx8m-clock: add phandle to the
anatop
Date: Fri, 27 Dec 2024 17:56:13 +0100
Message-ID: <20241227165719.3902388-11-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20241227165719.3902388-1-dario.binacchi@amarulasolutions.com>
References: <20241227165719.3902388-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=aqVe7fQa;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
Support spread spectrum clocking for i.MX8N PLLs
|
|
Commit Message
Dario Binacchi
Dec. 27, 2024, 4:56 p.m. UTC
Adding the phandle to the anatop node will break the ABI but will allow
for a better description of the clock generation hardware, making the
dependency of CCM on anatop explicit. Indeed, the CCM receives the PLLs
generated by anatop as inputs, which, together with the oscillators,
are used to generate the clocks for the on-chip peripherals.
By doing this, it will also be possible to generalize the CCM driver
code, which will no longer require the platform's compatible string to
retrieve the anatop device node.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
Changes in v7:
- New
.../devicetree/bindings/clock/imx8m-clock.yaml | 10 ++++++++++
1 file changed, 10 insertions(+)
Comments
On Fri, Dec 27, 2024 at 05:56:13PM +0100, Dario Binacchi wrote: > Adding the phandle to the anatop node will break the ABI but will allow > for a better description of the clock generation hardware, making the > dependency of CCM on anatop explicit. Indeed, the CCM receives the PLLs > generated by anatop as inputs, which, together with the oscillators, > are used to generate the clocks for the on-chip peripherals. I don't get this. If this device (CCM?) receives PLLs, then these are clock inputs, not a phandle. > > By doing this, it will also be possible to generalize the CCM driver > code, which will no longer require the platform's compatible string to > retrieve the anatop device node. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > Changes in v7: > - New > > .../devicetree/bindings/clock/imx8m-clock.yaml | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > index c643d4a81478..b23e639e6389 100644 > --- a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > +++ b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml > @@ -43,12 +43,20 @@ properties: > ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx8m-clock.h > for the full list of i.MX8M clock IDs. > > + fsl,anatop: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + The phandle to the anatop module that outputs the PLLs, which, > + along with the oscillators, are used to generate the clocks for > + the on-chip peripherals. Explain how this is used by this device. If the explanation is "PLLs", then it is wrong: PLLs are clock inputs. Best regards, Krzysztof To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml index c643d4a81478..b23e639e6389 100644 --- a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml +++ b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml @@ -43,12 +43,20 @@ properties: ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx8m-clock.h for the full list of i.MX8M clock IDs. + fsl,anatop: + $ref: /schemas/types.yaml#/definitions/phandle + description: + The phandle to the anatop module that outputs the PLLs, which, + along with the oscillators, are used to generate the clocks for + the on-chip peripherals. + required: - compatible - reg - clocks - clock-names - '#clock-cells' + - fsl,anatop allOf: - if: @@ -109,6 +117,7 @@ examples: <&clk_ext3>, <&clk_ext4>; clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2", "clk_ext3", "clk_ext4"; + fsl,anatop = <&anatop>; }; - | @@ -120,6 +129,7 @@ examples: <&clk_ext2>, <&clk_ext3>, <&clk_ext4>; clock-names = "ckil", "osc_25m", "osc_27m", "clk_ext1", "clk_ext2", "clk_ext3", "clk_ext4"; + fsl,anatop = <&anatop>; }; ...