From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793788586; b=lbdfAy7hKl+qXz+Uk0bOdfkuBwtuRBnLaQqDGzlV6mPQOz3KhdlP8cxPsiFZnIZEKd5i lleqTgUh92M+RDNDfwiIyzv3nwVTrX2wB4CdCH4Hal97MAEIsCttAJBnmwqmcpKmGRYJ7 EBtfiI5qBeY8I8ntXutBMHle4fZvn5/oEZraSg8ddjdQr4g7k6vF16S4ER/wlRIsOkXcy bQ2hiWFUBe/0EnlxJl8KAzBCogExVqdm6fA2qbEv0wjpGP2F6A3C4eP2BFbXrRTt+CBdF BWknaRZOYd3GPQHNTDdox6Po9ZatsJJARSy9o8Z+uGJioWTcilFInnzPH4lup0/aOmA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793788586; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=IT2ld2hEUrh1U4ufhHP01T3lVawATcj2VlDSAq4lmcU=; b=HVZTIH7M+Q3Kb5MYbknNbX4VRo31csa/qvhuGPTyA4p4lYg7tTb5TmAL12SYNJSODDv/ YDwaWbff12hWBvXJ0rslT0acsZdu+FeJzmlbTvlsOfHM35eipZ71smDjpGAoh8pHLZBIy pwfNmtidIEK0Cvt2ZpmBmkuqUFkL2dtJ2yZU3Y8BGvePBocVYPAWmIYCQrDpTQI2R5XpE TY7TTAJ+arSuAnP//Gimd9SYIPQI9UTLOuxGGVuZ/WjN8RVmceVuIiVdfcaYFGNbesrvl Z3an0KeyMwqJY4IPJIpQXgGaxn9YGdJOz9EzYfgAEP6EHucGm7NCypgKRJFG/IAzn+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=U0y8BBhP; arc=none smtp.remote-ip=209.85.128.49 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09218606A332 for ; Wed, 4 Nov 2026 10:36:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09218606A332 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=U0y8BBhP Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4a35db1f202so3532835e9.3 for ; Wed, 04 Nov 2026 02:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1793788584; x=1794393384; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=IT2ld2hEUrh1U4ufhHP01T3lVawATcj2VlDSAq4lmcU=; b=U0y8BBhP4gGZQTY455sX/GrgiSG6QsvOmloXZR7Epotwvm4hNK4TwD5Drm6fEhBFvy I0HE+XDKnPf7bF7O+FgzmYvogMME7v1ZH+UAi6WUMS9HfRka+zUBJNCbheK/cibGrrDT q8OHm2MyVmrGVG8U6+77/pI0tvqCHr7Err45Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793788584; x=1794393384; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=IT2ld2hEUrh1U4ufhHP01T3lVawATcj2VlDSAq4lmcU=; b=wSNNLXhc0VgxmOjceAynGqYwQEfY+yAQWnKzrPq9+8qM18LgtXUef+84iaZG5qJFP4 VF2mhN16wbhsRCudgUK9pcSvswNT3vGg+VuVSXdkL2KgdOjZDr3rYRerpjr3jiXADR+R r5sz42z3pTavnfRKetSwnD2xx/f7yIj63ajFlyKjUizRk2T1ghh8T0IA10+PiWK8Ljm/ EQW9brPS4gndKSCphxGQ3qX25FcMxTH05sAwDTrRrasSP5DAh7lFELY+h8302ePy0gwW J44e/vvENxKWuamw5wQlphwi5LS4DJCa2ved9fmcrLWMUrVXfbop2WvmgdAD+WtAO+DI p16w== X-Forwarded-Encrypted: i=1; AKwUvBwQq57Td/IrFzpXd1GrPcHzlTjMe0lh3ohDEMUVLUdYFUNvvNZzV55NLwqOKuS+95MWrDgbKSRfqCPrzS8=@vger.kernel.org X-Gm-Message-State: APuU4Z/nkgY25Maji5xDL49nP1AK7SssKWS9NDX/s4weQxO+YU5Moeal nA8NBP0ZKll3qUPi4DaXWuGDsif/dx2YDS/RueNj8xFMdkxfI//6lPalm+gkAdBqm5OfmmEzW07 /l5vz X-Gm-Gg: AYBFou1jgHeaB/JmYlMKSCUosok6GSv7rBMvZieBXDVN3wPdJYsKrVqpdZ6ZLCBrGYM suKkGAT4OyQBA6zxucNMFBmRuWaFKfbnLNV8kmXNAiXlW92CNYQlZPssRGik1UWGKfDIsfACxN0 TarpSYg2VyuqqQQasI1ZqcSzkaguORqv7IQklZomamnKumyJEMTce5EXylMB1+v/laxZlpwcvUd 1YqPCM5MnnMctFKtb1MkW8Ht4Syk0ZsABDfF9BucmLRQT4nHfgCHPh/orozRV2eRDPwtPBG2/rd rXvgK5y4ZTpErfuuaPpsVkOx7Q/e+tULilegZVJ0ey2zmN/04HIZEFenC5V4oyQTWKaBhODnyUg AYVpETzi8MxrGKgvQAtkpdRsgfgjoLnt1H74kthleY5pX5xe7TfXxfm6pHPThSwC+uWj83zk5xs Al5Fb8l2a9XORlQpixtgiAJys/6fRKptY8xdMlNxF20GnuMJK1L0d86VUEjPh6BKcjv+5SGmeoC +/UM/euDM1Db3UwMbgG8o53mDHxIQLRrRhDtKsnQ8RFUP/4A7nRWQNsdb0Fa8G06aiYtZUVfq24 cQZClEd0ViqoUkDl8+Hb2x6hMWFf8acQ0E5uzn2TvWAGWDi2ZHyEdn8osyvPS0pDFH8OuJaJb37 ZYyA375ZkUmyR3rEBac5zEa8TUOn1owHCL4M6SOFfjgrYvfKSuyc= X-Received: by 2002:a05:600c:4fd4:b0:4a1:e250:b191 with SMTP id 5b1f17b1804b1-4ac180f2ff3mr353454585e9.17.1793788584219; Wed, 04 Nov 2026 02:36:24 -0800 (PST) Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com ([217.201.213.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b2afee292bsm141685155e9.4.2026.11.04.02.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2026 02:36:23 -0800 (PST) From: Dario Binacchi To: Sudeep Holla , Cristian Marussi Cc: imx@lists.linux.dev, Peng Fan , linux-amarula@amarulasolutions.com, arm-scmi@vger.kernel.org, michael@amarulasolutions.com, Dario Binacchi , Brian Masney , Jerome Brunet , Sebin Francis , Stephen Boyd , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v15 0/2] clk: scmi: fix the i.MX OEM spread spectrum configuration Date: Wed, 4 Nov 2026 11:36:01 +0100 Message-ID: <20261104103620.4054694-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These are the two patches of the v14 series [1] still pending, as patches 2/4 and 4/4 have been merged in 7.4-rc1. The first one 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. The second one rejects the configurations that do not fit in the OEM fields, instead of silently truncating them. Brian is waiting for an ack from the SCMI side on both patches. Sudeep and the arm-scmi list were not Cc'ed on v14, as get_maintainer.pl does not list them for clk-scmi-oem.c. [1] https://lore.kernel.org/all/20260904101243.412006-1-dario.binacchi@amarulasolutions.com/ 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: 05441d697f7f9a927264f4058cbbc6a03dfcac9d branch: imx-pll14xx-spread-spectrum -- 2.43.0