From patchwork Wed Nov 4 10:16:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4867 Delivered-To: michael@amarulasolutions.com Received: by 2002:a05:7301:5407:b0:36a:3487:1c26 with SMTP id aa7csp35341dyc; Wed, 4 Nov 2026 02:17:43 -0800 (PST) X-Received: by 2002:a05:600c:1d28:b0:4a2:1612:637a with SMTP id 5b1f17b1804b1-4ac1793fb6bmr416328845e9.16.1793787462853; Wed, 04 Nov 2026 02:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1793787462; cv=none; d=google.com; s=arc-20260327; b=QRJXLuj+XpYHar1TXqThbfvaJ8kch5HDblylXeHq/GbUlGyl3rIJkAYoGx3RjuyxGE XaA0xw2BHPFFCHxsHV7koI4T1vQ5QQDww8BXzXeJye2r2Yj8fcPVQIO27Kl+IyO2RB+K 2QljBxbU3yB5+s7M+9CbWXbUiVVAPfwy75O0OhF/a98LFvCjqNDrqCJBcBVUWpUfiPGE vlVnwWooQDuO8pLqG1CQ64WC9G4TSwqtCkFXtX0e+vM1le/n+bJS75D1SXFycRLQBznw HJmwRGZTMrmMMSx/gIRBe+aVTNCwyoLikO/qg7AsEUnFPNQB/nizNaUsqfWQNzwAriQR l23g== 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=U9UqJ5usnXoaVC8QtHP+44Z4GZ6155Rmc3hUzLC5hxE=; fh=+GwDK+2j1RFxQUujyJZoj+ANL0Q1nkfdcjYd6q/ZMaE=; b=Id0ojqN9r2yRwfHXHzOn+GU4rDxUP+EESRdeOxCqRrco2VQPD7VtUIVKQ9xU7RpFlq +fKnVSIlav7P8kQjMwt2/pqC2pgEvD4hTfNqT0Ud4w7w5rBpsde8o6iZeAe2USya+EPy uJzX8MGZcDhOedLGwM6Yqe4lHLhbmMaHRG4/EefG/U1PE51+slS9HfG75BkuVLJLgq1S if57D3uqlqluSlSvE82N108w8leAecai9ZZGCuoyo0MDsnWcYo4pPO5mVymNg0WOJkit ZsM+tL9fj+aURsi8S0BWDG0qYU9ygyZt2HTxmsYvBuSmzOdVYSjTpMYu2dWQEO89aHI5 6Ucw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QvYfOXqH; 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 Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4b43d0eae54sor3033925e9.9.2026.11.04.02.17.42 for (Google Transport Security); Wed, 04 Nov 2026 02:17:42 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QvYfOXqH; 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=1793787462; x=1794392262; darn=amarulasolutions.com; 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=U9UqJ5usnXoaVC8QtHP+44Z4GZ6155Rmc3hUzLC5hxE=; b=QvYfOXqH28t9vBLa3K+VxVZErJt8RS9crMZj2p27iLcYnYEVUVbJr8ojDuYCC0lyz0 KUGInLR9e97iMXevQqTtMxin6V63KIX9DU4bA3KoTwF37V14BZlQWuYq8S5xEsIhkInU ej/nZ29F4LEGVLo9efpeWRRIRKOnkmsSPeh1E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793787462; x=1794392262; 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=U9UqJ5usnXoaVC8QtHP+44Z4GZ6155Rmc3hUzLC5hxE=; b=rBBQ+lbNyoVEqRqUqKSiQLQXOz0jQ32FW9+FzPLoCQh8qfaMOG0+22hDZX7si/tCHJ 1TD0hS9ODTFnUeZCAyFDtkGp4TvCxVJVY0i0ihLucAowN7AsyM6SmPVDigBzRPAal7IC /glG8Isc/Ji1GvFDvJKjFgMpDChjjUDitfAeoml+BgHId6IV2O08FdNLR9mUigNILteP 5JX+EdJ/V5hqbpmwaweUVbhl5z3c75PLqdwLYooreL4/AMLSiaT7ohuJmrO+ThayJmgS l2A1vzNNHTHb+/66atT3uSVJDhZGilnoQkCNEU8paq7XDsa2JjRMd2Wx5QcT9CWMstR6 Q3WA== X-Gm-Message-State: APuU4Z9dxvy3Zh2EbrxMgvlzgMBNnCmFSpLbiDb5CZJEverpY5MCQ8n0 ZqJqzsufNPVhYlo0Zq7WUTOI0LLAt5aUStI49lAlW4aUZIIFXd4Jf/Xq6nq72WQTC4OaTA== X-Gm-Gg: AYBFou3YzxiqM3SHYcbT2NXp0urLXu+9sP7bl8HLcIVFaaUfgwO2oJEcu/1EJ76f+tF rPog7XS+ZiAIIQvCsqTktreSNoworzH/Js/eROC795iC+n4NJ8GaQlPp4H3EgWgyU0YtOfQZVv6 m/+5O5rCxCp2f0q+s/zgMPFK5WoVY0dYZJEdRhba6bQ479X7bSCgBWCw+F8fLyxyLCX2j8gGMfx eGz1ZN2POhyOGNawqKlQZJSgbMnVPd6CYReNFykje0JhTC08/EWM+Pvb7J4RFI7RtUne0LD2g2R AKGN1zhqsvj6UygQAG0R7zfdIvuyg7YT/B+Z96p1MdKO7h4Wymnyj6PgHb2eO3XL81rowhtGNeD rBM4sfgLQK0dGHjr3J7jkiqp1q5c3RZQ02fJuDagBbOk3pDbaR9Lo5Wfv19BtxwUyG3+Z9BM1yX 0eh5T8d75yWVWtE9MIIuYRDXCCtlVF5lMV8HG6oxuU80OCUCZb5OsDCZP83LA1QeOihbZsV8orj dsX3njiYcQ6NV2Vzg6rfzjnZPvwFOwouOEzkqUADhXr1LgpDD/FZFdpF/ehRLyETEVukrFDEQi8 U6yv4nRliI+z8s8EM0TcUCCID5XMVdYC3w7datULbZjnAs5Y3OEa2LlEhRGExqRXW46uiQFs76u BUI0E2jONzhrOZ2T7zXR+mGpps/z9ZzTymI0Fon4Kf+TOn7bqY+nz X-Received: by 2002:a05:600c:34d6:b0:4a2:1364:252a with SMTP id 5b1f17b1804b1-4ac150b2192mr366110145e9.3.1793787462248; Wed, 04 Nov 2026 02:17:42 -0800 (PST) Return-Path: Received: from dario-ThinkPad-P14s-Gen-5.amarulasolutions.com ([217.201.213.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48feeb51a9csm3035105f8f.59.2026.11.04.02.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2026 02:17:41 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, Dario Binacchi , Brian Masney , Conor Dooley , Jerome Brunet , Krzysztof Kozlowski , Rob Herring , Stephen Boyd , Tero Kristo , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH v4 0/3] clk: ti: dpll: switch spread spectrum to the generic framework Date: Wed, 4 Nov 2026 11:16:54 +0100 Message-ID: <20261104101732.4043372-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 The am33xx/am43xx DPLL spread spectrum clocking (SSC) is configured through vendor specific DT properties. Since 7.3 the clock framework provides a generic API and the assigned-clock-sscs DT property for it, so the series moves the TI DPLL to the generic configuration and deprecates the vendor specific properties. The last patch applies the configuration right away, as the clock core skips set_rate() when the requested rate is already the current one, e.g. when the bootloader has set it up. Tested on a BeagleBone Black with equivalent parameters, set through the deprecated properties, assigned-clock-sscs or both. The dpll_disp_ck SSC registers are programmed with the same values as before the series. Changes in v4: - Add Reviewed-by tag of Krzysztof Kozlowski - Keep the reverse Christmas tree order for the variables list - Check the range of the deprecated ti,ssc-deltam property - Drop the checks already done by the clock framework - Split the already applied check into the disabled and enabled cases - Keep the reverse Christmas tree order for the variables list Changes in v3: - Deprecate the properties instead of dropping them - Keep parsing the deprecated vendor specific properties - Skip reprogramming only if the configuration is already applied to the hardware Changes in v2: - Check the DPLL lock state instead of its parent, as the reference and bypass clocks can be the same clock Dario Binacchi (3): dt-bindings: clock: ti: dpll: deprecate the ti,ssc-* properties clk: ti: dpll: use the generic spread spectrum configuration clk: ti: dpll: apply the spread spectrum configuration right away .../devicetree/bindings/clock/ti/dpll.txt | 9 +- drivers/clk/ti/clock.h | 2 + drivers/clk/ti/dpll.c | 21 +++- drivers/clk/ti/dpll3xxx.c | 96 +++++++++++++++++-- include/linux/clk/ti.h | 9 +- 5 files changed, 112 insertions(+), 25 deletions(-) --- base-commit: 05441d697f7f9a927264f4058cbbc6a03dfcac9d branch: am33xx-assigned-clock-sscs -- 2.43.0