| Message ID | 20261202155430.918884-1-dario.binacchi@amarulasolutions.com |
|---|---|
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBQH6YDMAMGQEX2H3O3A@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com
[209.85.221.69])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A75903F076
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 2 Dec 2026 16:54:41 +0100 (CET)
Received: by mail-wr1-f69.google.com with SMTP id
ffacd0b85a97d-48e0af48c18sf8143671f8f.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 02 Dec 2026 07:54:41 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1796226881; cv=pass;
d=google.com; s=arc-20260327;
b=ppCXHNOSRv6IOtuLkZgqlOgkeGKbjw1JckB5JdqzS992zWgH1kzLkyQ9G6jUIvsbXx
rLyfZwDa1+J9n1Sz2zDRFUqXfWrB9u56OOr/OHld9Ndb2NOvMlwK2DdxVlyoFj3KvBFh
sMpwCjjjeWo4NURoaL617wImiEqvihKXJDfc0nAtZ0Q0/3ZBWk6Gi9plAwo3AvcZtUQK
nTk6u/E9TdxT308T45fwNVHgkAbLX7LkwCFOcLLCjVfdjO32NEq3xlT2Av+zG1dxWfDK
poWUMFdLyGUCCIhoj6x+muNQ6kdCZgbLARY05Oq1+HlmAIvn3Hgy8iE2idEFOql5c56L
dAfQ==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:message-id:date:subject:cc:to
:from:dkim-signature;
bh=tjNOVCLIEi0sGH7bFyzXFhQ4hjfNUEluy1MiszPIvv4=;
fh=wxPp5Zi0+TsGsMCCI+gn5BU+7Cn5XRbqr9qi30H4ous=;
b=O967yGWsMnIQyAH0ZeNKCbrK45OmUH+42JibiyQQwQbLYpp6lBnTH8/O+DSMFR+9Uk
WLlKv0efEsvm7280563YUVbvalr8VAtvFrkKkhWov/wSNxsKZuGTBE8vLfsYY7XkpA0X
0HYzEMpfnn/6YcFHQ/fhuJoazd4LP98EGjyM8/1xbjjOzZ+qakmAWBq0O5zx+qv2yl9T
DYZftu94LkiZEdq7Mex444g5ymQBFzz6KgOUDmSjsRIHD7CKA8r9WB0Y4jwDTCDYKkgg
5Cb+l9uvtZUJVn1g99ovdTJ/CEaGh2zn1ppUrKb6GA3opAPINmPux8d4YhPV0hXoGtkZ
JqPQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ba6QmcHy;
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=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1796226881; x=1796831681;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
:x-original-authentication-results:x-original-sender:mime-version
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=tjNOVCLIEi0sGH7bFyzXFhQ4hjfNUEluy1MiszPIvv4=;
b=YzX15GKHXy8wNTgPCa/J3sIsCZqbC+MIQetecyUaf+eHzHmLpo/eSA55orvbjxmQB8
5fCoIMphlRyhpo8alyrribUejCfX8Qeym/XsuTm/pYJJ0b6dLxYoqtNODBoevidp3Ivq
ruE39unA6x3TuVGfwViR0KqALNwam6hLgk9vc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796226881; x=1796831681;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:message-id:date:subject:cc:to:from:x-gm-gg:x-beenthere
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=tjNOVCLIEi0sGH7bFyzXFhQ4hjfNUEluy1MiszPIvv4=;
b=jB7ghA4bGRns5ZZI35vqYAvx9EojXa/UWc6/S38Bzn0FR5NBHsxJsHxjiUmGc9ScgJ
d905q/sPhM/iXH3NFDcPbVgXKZu2OfBAOdSlrYihe82rXZ+E/jhhf/9gYR4DVOwj77z0
okZ6aIbJGEhYePGG/T7Yx+7YbL0F8nXK8kS6fIaOhWSXUZXFsY7xdMMEtqFfXqPaTmrE
amg7Gb7Ip/ElrfNTW+yFSd89bFufWX90R7U8KAoEHNbdQC8sz1Ihjx6Q6dB82Urjt2Py
HBL0I2lCHWIYsaDr2D1mNZnXhmMrCQyX3lXamp84H4rhRZPPkRaY2ctGzg7dzQZk/ypK
2NGA==
X-Forwarded-Encrypted: i=2;
AL+hErGcNTBAOHqXh4lH8oFhXmJeFBW/mTNLUSiJibDL36U+EPeTIehYAtMvibdU+DHx7XURPgGIu3RMk48wvIXq@patchwork.amarulasolutions.com
X-Gm-Message-State: APuU4Z+LzZnNlF2uQtlBe4VeC43hGI9vDClfHFx/KWe/T8C+o/8RTcW+
Bj3JbdEC/5tZEDTZBSfVYkrr5zVREYA8f1KXZMiNVwrX0f7wgTY0dSRX0v8DvxaGbniivg==
X-Received: by 2002:a05:6000:299c:20b0:4a7:9630:7b4c with SMTP id
ffacd0b85a97d-4abb9459073mr58488260f8f.47.1796226881029;
Wed, 02 Dec 2026 07:54:41 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="ATskLdfJi8UemUGXL6wRI/169SYPqXzUYgcpm44jiqYLpFYdaQ=="
Received: by 2002:adf:e199:0:b0:48e:20ed:2762 with SMTP id
ffacd0b85a97d-4abbb7ced4cls9411892f8f.2.-pod-prod-05-eu;
Wed, 02 Dec 2026 07:54:39 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErHqs9sqzNetnUGUrEyq7c5/nidtDulzp+mYIR2pKeOakXYVUY8JfNSnXZb2twhs2PdHmCf8drSJZxt1cdeE@amarulasolutions.com
X-Received: by 2002:a05:6000:288d:b0:490:a3e7:8af3 with SMTP id
ffacd0b85a97d-4abb73b516amr90040070f8f.35.1796226879338;
Wed, 02 Dec 2026 07:54:39 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796226879; cv=none;
d=google.com; s=arc-20260327;
b=NfecuWScAxkPbDZqCjP5ZS9Pzz8g829Mz0He/Q8EaDjqLKh7Jat/X0PaVbK3xgAEOe
qf4EofGM78GdTAJMJbmF1y+0JpDNCPnGl92T4Y2psaUMRZ1eUFzkctK9dEkXOZKkMynO
V83X1yGAEAWUASOiZTWnyzpjS/fvt1EKM0b3mzUmo+HnwTwsC+fvWmsqGSDfb04sBNih
Q75tWqtmDfJOhDkKWsfg/Y8uuWAfrhoxC2+NO2qZOHqsVZsFmbeezXdKOFnFpw3ijp3v
PxLFsasOEfExl5Dr6NNek4ZxjPUxmdP92h0qu18ychTEvsoCMUtmCWY23lEClnErJMhi
cBtg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:dkim-signature;
bh=slsn2q6C5Lvn6AXsu5nCK4r/jzEIKhy5LpuFNBh0Ycw=;
fh=xDejYSBWm8r+XQMAu4SIhQB7qxfEcNepXJ7eTWtr4zA=;
b=LDF53eTH4fkcporP1YzsDaZnqkEmvDRsPfHrgh4C++7xwj+6A7XNGD01O3f05ycQzN
YKEKYoxdhA3P/P2qklV4keylc/fx9djicFtO90lu/92NAklpf3hIFEpxmluskYg0rM/q
Pj+fyS32OuwjZVS44t9mDECMwXILwuWePja9TqCsYvYxQnfqTdMqI8pR8r5elIL0Lojn
YSa3ydFncfuKh1O227OL+4ZrkE6piHJh7eK1/II+gKtIx8S5Z9gv1b1oD+AH7A7F9RVA
GWhSnUvxJJXN0q/ef/I6gcJjXdHh1nQ0GCFm+xhnOMS9Wh85cmK2eGwY7vK4mIMt5zdY
G73w==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ba6QmcHy;
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=neutral 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
ffacd0b85a97d-4ab5f07bdb0sor8280254f8f.8.2026.12.02.07.54.39
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 02 Dec 2026 07:54:39 -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-Forwarded-Encrypted: i=1;
AL+hErGxeNmq0NFpaK66lcTYTQx7TJfT/YESGAL1Q6hyalHh9IMp4VJ76OeYNNIdvjKwXuidnhoCUwSBi47iEySQ@amarulasolutions.com
X-Gm-Gg: AZFdTZe6Iz6El1OsHA2ivY8khWPCR+ybzFj32PK54o06EqxfNXcHJoDjyuJ2aiNz7+K
LSD0roJhoPFxKwnELjznr2nzGqZkMpy/Po1Fb+KRrkBjRKhaqfkTb2QbnfwliujPlqXTp7n8jkK
0nCzJFTWcQ7yvFVepmgBHdXcm6nJiyP5bBR2lru/iX9YlzkmmqC4DhLxfhb4wwaq0BcrSvcUB5d
vxgey9rJN97/zY+mJp1awW9PaFugGf1bN+ZfPZ+36x6Q6p70cn8pCFeXLmzOAzt/u2j/0T4bd2T
OIZtZl4lgzeGGN09twGUX15RHUPJzNUo/0+2OSnoJ9ddIBJu7POCPbxwjuqn5G2CDY6ZwHcYAH9
VgyL+iMXFO8uGVzPpMTTPmGqoZpctjvHhwAQQmMAVwjHoyEfXUqeLtKg2ci+Fym7tFw+P5/TlLJ
qVS3pMXSGk9ykbInRYV8NnSsLb4D6bpgs4ZIYYC2iI9gbBP0S1KYyiRF73F9WMQ+3M273Y4ChqS
DJr/re/m7kf0+Xm9+9WDTGRyS/VNhEsP1BkJZ+2X/yEbFue1wMhSKPBudhuT/eY8iNiQYMNZPk2
ozLSFNEAXDgjucbB2x6IjdN0jftxA3gvqO8NHHecQADFArsiuV0kBGX7MPXZleYhcaKv2KCH9ew
DhFgrXw6zKTvU6GKyg6jC
X-Received: by 2002:a05:6000:29d3:b0:4a5:4367:dc84 with SMTP id
ffacd0b85a97d-4abb400bcd6mr52826395f8f.18.1796226878775;
Wed, 02 Dec 2026 07:54:38 -0800 (PST)
Received: from localhost.localdomain ([2001:b07:6474:ebbf:6962:3ebc:7df:e6bf])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-4ab6c340df4sm88736914f8f.55.2026.12.02.07.54.37
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 02 Dec 2026 07:54:38 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: Sudeep Holla <sudeep.holla@kernel.org>,
Cristian Marussi <cristian.marussi@arm.com>
Cc: Peng Fan <peng.fan@nxp.com>,
linux-amarula@amarulasolutions.com,
linux-kernel@vger.kernel.org,
michael@amarulasolutions.com,
arm-scmi@vger.kernel.org,
imx@lists.linux.dev,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Sebin Francis <sebin.francis@ti.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-clk@vger.kernel.org
Subject: [RESEND PATCH v15 0/2] clk: scmi: fix the i.MX OEM spread spectrum
configuration
Date: Wed, 2 Dec 2026 16:54:25 +0100
Message-ID: <20261202155430.918884-1-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
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=ba6QmcHy;
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=neutral 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 |
clk: scmi: fix the i.MX OEM spread spectrum configuration
|
|
Message
Dario Binacchi
Dec. 2, 2026, 3:54 p.m. UTC
This is a resend of v15 with the collected tags, no code changes.
Patch 1/2 is a fix for 7.3: the i.MX SCMI OEM extension converts the
spread to the wrong unit, so the hardware is programmed with no spread
at all for any valid configuration. Patch 2/2 rejects the
configurations that do not fit in the OEM fields, instead of silently
truncating them.
Cristian replied "LGTM" to 2/2 [1], but without a well-formed
Reviewed-by tag, so I did not add it.
Sudeep, Brian is waiting for an ack from the SCMI side to pick these
up. Could you please take a look?
[1] https://lore.kernel.org/all/avMtgxmGXTbTKG1t@pluto/
Changes in v15:
- Drop patches 2/4 and 4/4, merged in 7.4-rc1.
- Rebase on v7.4-rc1.
Changes in v14:
- Move the fixes first, so that they can be picked up separately from
the new patches.
Changes in v13:
- Add patch "clk: scmi: reject SSC configuration out of the OEM field
range".
- Rename patch "clk: scmi: fix SSC permyriad conversion" to "clk: scmi:
fix SSC spread conversion".
Changes in v12:
- Add patch "clk: scmi: fix SSC permyriad conversion" to fix the
permyriad to percent conversion in clk-scmi-oem.c, reported by
Sashiko AI review.
Changes in v11:
- Add patch "clk: Validate spread spectrum configuration" to reject
invalid parameters in the clk core before they reach the providers.
Changes in v10:
- Drop patches 1-22, superseded by the generic spread spectrum clocking
support from Peng Fan, merged in 7.3, so the i.MX8M specific infrastructure
is no longer needed. This patch is now based on the following commits:
- ae794aa6e88d ("dt-bindings: clock: Add spread spectrum definition")
- c86814e70390 ("clk: Introduce clk_hw_set_spread_spectrum")
- a7f16660af39 ("clk: conf: Support assigned-clock-sscs")
- 7d98de6ffdab ("clk: Add KUnit tests for assigned-clock-sscs")
https://lore.kernel.org/all/20260826165611.236321-1-sboyd@kernel.org/
Changes in v9:
- Add 'Reviewed-by' tag of Peng Fan for imx8mn platform patches
- Fix building warning raised by the kernel test robot for patch
v8, 11/18 clk: imx: add support for i.MX8MN anatop clock driver
- Add patches for imx8m{m,p} platforms:
- 23/23 clk: imx8mm: support spread spectrum clock generation
- 22/23 clk: imx: add support for i.MX8MM anatop clock driver
- 21/23 clk: imx8mp: support spread spectrum clock generation
- 20/23 clk: imx8mp: rename ccm_base to base
- 19/23 clk: imx: add support for i.MX8MP anatop clock driver
Changes in v8:
- Drop the patches added in version 7:
- 10/23 dt-bindings: clock: imx8m-clock: add phandle to the anatop
- 11/23 arm64: dts: imx8mm: add phandle to anatop within CCM
- 12/23 arm64: dts: imx8mn: add phandle to anatop within CCM
- 13/23 arm64: dts: imx8mp: add phandle to anatop within CCM
- 14/23 arm64: dts: imx8mq: add phandle to anatop within CCM
Changes in v7:
- Add and manage fsl,anatop property as phandle to the anatop node with
the new patches:
- 10/23 dt-bindings: clock: imx8m-clock: add phandle to the anatop
- 11/23 arm64: dts: imx8mm: add phandle to anatop within CCM
- 12/23 arm64: dts: imx8mn: add phandle to anatop within CCM
- 13/23 arm64: dts: imx8mp: add phandle to anatop within CCM
- 14/23 arm64: dts: imx8mq: add phandle to anatop within CCM
Changes in v6:
- Merge patches:
10/20 dt-bindings: clock: imx8mm: add binding definitions for anatop
11/20 dt-bindings: clock: imx8mn: add binding definitions for anatop
12/20 dt-bindings: clock: imx8mp: add binding definitions for anatop
to
05/20 dt-bindings: clock: imx8m-anatop: define clocks/clock-names
now renamed
05/18 dt-bindings: clock: imx8m-anatop: add oscillators and PLLs
- Split the patch
15/20 dt-bindings-clock-imx8m-clock-support-spread-spectru.patch
into
12/18 dt-bindings: clock: imx8m-clock: add PLLs
16/18 dt-bindings: clock: imx8m-clock: support spread spectrum clocking
Changes in v5:
- Fix compilation errors.
- Separate driver code from dt-bindings
Changes in v4:
- Add dt-bindings for anatop
- Add anatop driver
- Drop fsl,ssc-clocks from spread spectrum dt-bindings
Changes in v3:
- Patches 1/8 has been added in version 3. The dt-bindings have
been moved from fsl,imx8m-anatop.yaml to imx8m-clock.yaml. The
anatop device (fsl,imx8m-anatop.yaml) is indeed more or less a
syscon, so it represents a memory area accessible by ccm
(imx8m-clock.yaml) to setup the PLLs.
- Patches {3,5}/8 have been added in version 3.
- Patches {4,6,8}/8 use ccm device node instead of the anatop one.
Changes in v2:
- Add "allOf:" and place it after "required:" block, like in the
example schema.
- Move the properties definition to the top-level.
- Drop unit types as requested by the "make dt_binding_check" command.
Dario Binacchi (2):
clk: scmi: fix SSC spread conversion
clk: scmi: reject SSC configuration out of the OEM field range
drivers/clk/clk-scmi-oem.c | 27 +++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
---
base-commit: 693c2e04e3f1d4c59af236e1211b7b8cb165a790
branch: imx-pll14xx-spread-spectrum