From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796226880; b=1izWEHnFgiSNpLNVRto/xJVUF5oi+MUNjmeO+nAFKWF7h2to8YcbBFcf6dgiMvacvPAn 4+P0sC7q0FT0VP1JtK8m9pfGMwU1BJZFNFJOyr+AnJFhdv718JWm/5Z3WqLYzeLxnSG+5 cwxLpiW3nRYIphJgx/sEZUlMs5xF2Sw0dPCzxd+cWZc6vQWNqTZxEDfcYGVclGIQiLsiE cw5cgZc/hP2RpSNwp+eeYRlaaNaObzkgRPdj8IPvSkrK3IvA5rvL+Yxp7F2uvBQuYQJMi +GkHa9NdmTZsTVDngAL3pXNgjU9g6AWn7gYmmNHvSIwCHZdHFcAC2PuP9EBd/6/bnAw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796226880; 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=slsn2q6C5Lvn6AXsu5nCK4r/jzEIKhy5LpuFNBh0Ycw=; b=fILVoPvzruj+e8p7gRTpHMTJEwuOWOSpnoXG1ABFhcogCN8XNGR3cq3lfkpVj3zGbBrp 26enGi9tnj7coMZwFQ3rJv89PdIMm7gRzNK9u3MS4aezs2/oOq6EP2n4cHQcf9XHD6nZv 2zsU+Q+5khLvHGXSfDy7+O/ubv1Nc2hD42EIDPkNKb0zgyXwSge4oy0SorFkFOxI3OB52 ed4dkqRr7d9T5kumlrXFgOhlI6qnZqu5OPMGyAqU27Esjk2qjXEkPr7utkX6hkbCfm9CX mciV8mNP6EhdJpMcaoAO1W/KZJIstSDdTF/oWHrDprVa/hid7MP+6la4xxuTGFZX1Ug== 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="Zj7F2cN/"; arc=none smtp.remote-ip=209.85.221.42 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 7C2A2606A327 for ; Wed, 2 Dec 2026 15:54:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7C2A2606A327 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) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=Zj7F2cN/ Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso11851884f8f.2 for ; Wed, 02 Dec 2026 07:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796226879; x=1796831679; 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=slsn2q6C5Lvn6AXsu5nCK4r/jzEIKhy5LpuFNBh0Ycw=; b=Zj7F2cN/EHIZ9DucxqqyoRZlDt3eYSbbd+JVTgRmrD22r8Wijtb4oiC3ON6Jw8mCoc /cHXEPPWDmMwWwsPChft1gMIZWpRR32PPq52tY6PjiWUMvFidesW5zTQ3agj7GYMPznX sMr+XOAOFApodg0bE4qYze6lr8XfA7+riqqmw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796226879; x=1796831679; 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=slsn2q6C5Lvn6AXsu5nCK4r/jzEIKhy5LpuFNBh0Ycw=; b=EfUzuQzZjPnn5HKttQkodN6Ud/mVhWWyjet0feN697WyW62L5qwlDS92c2bIVEX+qV XFLwQQySPHjC+OY85Urj9n8pW204oZb8JtpTS0IQj2Fg7BjaATtWrAjPp8/+o3Tzv3YR U8s/MHp01HkQTSegLtY5aXHW+8AB8eRkK2nHBgnhvLOZCdJlNR4jndPyNKHIJ5oborHG YeRcKfB8IomP8E5Pbs9xek+c6pt+XJSELyH4CBxAlffyOogRKAmNCEgwTjzVSn7uro+4 kRIMPVAJEE/i7RLkqek5N1CnhfpBBk8xErE8SBgaTLkmVxghxGuUcKCxJSh1xJXSx70w 1n9A== X-Forwarded-Encrypted: i=1; AL+hErFY59YZDbgihsApd2+AFCxtsRMptYN1RGg1J22qs1pRoFpNQ6+6p05rmLbeabfqaZ63o2VYZFs+JWYb9r8=@vger.kernel.org X-Gm-Message-State: APuU4Z9IXux/1D/5HIlw++rAltBIQY+iedpmykKd94Xhg9SMZIFahDTd P4qTxQ4UcIGcl7qQ5e/lJsnRioYIDrrNf/KzXL89yqBkhu3ooDNxesuuDuwjtFG8f+c= X-Gm-Gg: AZFdTZexPk9wVDQofj3DHB34Vb+QHzw4RvYYISNTkUWwhjxXhUagEe6iWmtROzw+7dv GznOmZFbtSvEiPc285whYNEqZxmlp+hLHW7+vXmUHy9muL3Vl8I6BtTK8BIezLaArjAPyT0iOJU uqJrnnyHE7va6gBtLiOFdk1Vj39/+MGXnnbs3cYTN1dCWmPzVoWVtMn18ethNc07X/V7n8+qmdz PHg39NRznNNZvHPESFu/qjEeQm4OGtr4MKCmFMKfp24pnSeN1p8ZT3IPWGiEjnrBSZsuNsJYJvg JNAZgFAMhR0Av1SGMS3hU6COcR5PSOqtznDqlG5o1nEgjAovS4i6mm0UuoI4FMMzuXz+4Ntp3c/ OEWFOMuBpCL/HsHbOeVCc1TeUjnF+kXLudcIAOxxbLRE7MuCNkhz7f/ytJSVPHTMsyldSsv8rRw TbBkKdxpn/N9DDKsX6AqXiFQtIW/tC5/ycx+TAVZG+Fl76ex5+YDj0Fs88s4gZWI67ZCRCjdDqj 21XSNgREqViVHnhBtUF5LC67RzOWNK36Lqdm6IVFurFoZ4XK03ve+Xusw0wsMrO7Z14aCYbnJ0r JfD97QVhu6PR6RpDmN9/58g0/8ipwGLZG7x6N/Ssn0+amCz8ipvbrCk/LCu9SKff43Y8vzNdVuZ 3Aw0/sJGILT51GkW5Y6OS 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 To: Sudeep Holla , Cristian Marussi Cc: Peng Fan , linux-amarula@amarulasolutions.com, linux-kernel@vger.kernel.org, michael@amarulasolutions.com, arm-scmi@vger.kernel.org, imx@lists.linux.dev, Dario Binacchi , Brian Masney , Jerome Brunet , Sebin Francis , Stephen Boyd , 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 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 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 -- 2.43.0