Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796226880; b=Qejn0nKpP5sj+X7BYudvN6/Qat7xD6YH8HzIyOeK3xwK8qqgQChZkbIVNN8Em+q2ekl5 Xo7yQki8V+sZ2oT8cHvdWsy9sC5ek6hKfjruZsBErSig3Qehd3zG2sqiWirJ9fu9fRzmw QCmL8wou0l2nkPh3CxW56yJk6JsNeYA6EjlY2XQNYR4tS0Pq14cltxarcULIs1grGCGh/ aTWiK2JfXBZsUg+M0M+2ZH0QVRwpjRKmqt1MpWS370FgFYhmkX8mesHDF49NornzrdTr2 z+RuyXPOt+2tmTT4KTDryzQTzR5pXWSCU8OcgZI7rN0vZ8C9wk9eUbkC9EP1D7eIXag== 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=rLKH77B7vkknpw37XcQVUk1GhoaKBP8kcnaVey0p4L+A1c/bFiIjPFLTsKHwK4z5lAss xMP5iGKfeeeiIkXIM19JjN2dsSE20ATKfwksZV2f5vne51TMjphVuEFDLPEbx6KFpteAG qmsiO+FHv+ujET5G7R6Q8nYuVtythGcKZR07/5r3QQ9PkjcVv0/DjMfVJXHqL6yc1gQbu /nXOLiompxpWh+KIAv6N09+rj0lv4K8auCMv612qXUxWrjpSYRcFpB5+7eGuinkohjTL0 BUEZMiDhnG8u62CyPDkc9xWmMkT5w0NHeIzw6VYh9aNqZ+B4ZNsNRfZDDwp2ErsmHCQ== 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.52 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 7962A606A325 for ; Wed, 2 Dec 2026 15:54:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7962A606A325 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-f52.google.com with SMTP id ffacd0b85a97d-4c4b8e58cfeso2775673f8f.3 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=aW1guPXQTLeIlNfVRBUst7t8pj51K9U5g8jiZ4aYw/01UohRhYAbgQgtCYD4e4+PJW d3h7cm/renfm+bBIcU+pCtU28BmHpkIHoNHX1DGH2vFdKJbH4EMAjbulLLZe1KPAgVlt WsFAG1CcdYj3OdAmtHkF1ZIhtwXWHtNw2KRTQZIK6UwxNHF3IcBihnUJvJy73uKcuMjP 2hAGYN/EB+oIw9v6vnI1DAXonaRB7jdNl+Aa5et7L4QSx/ysBvFlqtTtrjbf1e48WieO WDl2aI7p+0DJjhbOo4y9ioD0WcnwzcGHWGCcfWMHxp1dN8LyIGqezEEWTtlL8FUUbtvY RzgQ== X-Forwarded-Encrypted: i=1; AL+hErEyo645mYE/2lzQhdoXrlSrEw49NoMMPL2OhfqO53rIa3SMB/QhZFPiIlUEuI4hx3Ubf13jo2dGEQ==@vger.kernel.org X-Gm-Message-State: APuU4Z/8KYzfeq0ATbxxwZV43+duQFwrW2AgrEXVEQXyZ/kYdyYFSmcU s8zE0JtEjkLXVBk1xI8D00h+/nMjS+PTNH8VwbcZOLBD32J0Eo3Tokqhya/20kvbP/o= X-Gm-Gg: AZFdTZdN3GOHo/yEhYoMpypQnjg14CopncBFIuBk9YhbQwD+Q5t1HcSZDwZuEnOxnjb RGD+HozsPQW9gvrZBy+nnJw3b5+MFJzVcVdQyDZPgKHX3a9S74VG656oaqIYY539k6P58aTiQaK jEsoBz+lQmzow8DmJW7UqMQB/O6hkFfS7Nj3YGoK1GEAYuYmzgtrjBExWxUkKW3Lh5GnXiWIqDD XftSTO4ywPakp/F+3PqqZBLVhipd8pzr+VBwEEeH4ETm0NQPSisAsi3wjvt78APXOc+pToAJ68h 2zyxPii6+BpBxtPmf29wlxLeS6euK4uX0IFIavR6CuRVCDCH2/vhBgLQ7QeXs/CXfK4gTcxQgLu VcWck97K+rgji5Yu+bUMplU1sUN51lMeOdCx9IDM1ZVJxElm8QI7MOgzvKT2scLQhGq9OTROLU1 ptpvBUyrwRsQdC0cd5smUdQA8bxVayBlfUAhyymGoLlMURwAtRbSRiiQow5zf++kkOtFbmX16CS cGTU2TrnnatQsC9XeuLm9uwLNZ1oicDxi8e8A2L+iKXC/woMcEJRQWrDIt1ek64P67aDuVnJv81 Gle6cmNH+IGcmdtLlBe7Brkt9yfJTJ3+RaGjGezsYaSOuu3M4VYClE7Ozjub+59JZAChKXDdT3X Z5nDkeeOyg7ihf0WJsF2U 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: arm-scmi@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