From patchwork Wed Oct 28 07:44:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4861 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 287493F066 for ; Wed, 28 Oct 2026 08:44:43 +0100 (CET) Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-48e0389d6f9sf361288f8f.1 for ; Wed, 28 Oct 2026 00:44:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793173482; cv=pass; d=google.com; s=arc-20260327; b=Yqdbuynz5Ffs8ZxoG34srSYp2VkaiA8mVKE6BMzKMmba3sRu7jTCquNLk6vjwwODKJ nYltg4mWaUnaOqIgYskPXgQA1ws5hoE6xyEZdHYAxAcSkSdOR49mHnpZADfAcbu9k4gn N4j/MZfh8CFAFld53M0fAhRogiK9B9hGx8HRdblb9aWt1gaQaJBU74Bz/sVcJ7Q7mvMl wxvp2CuL5ryz/8TN46GF8OIcPGpIeJBCJG2ZT5pfG4lssJCDkyIBAPtVR53xIVgoeTE8 Bvh47PweIpW1gVB/vsmP1s+rCNfJW10tKKpk4UAxg60i+nMQmxPuYILB3h27pAL0NurB YyIw== 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=oAj2Ahju6vrRwJASG5j0rKIp2p0XN6xjQExNWzLrDFk=; fh=WKM1bdwzcnbxT0gsH+ED1l74LkuH/vfkp4+aDyuNUR0=; b=TMVfB+0+pVB7KlTPGyrq6UYaC8rMVZIyG23AWr5ew4CW9Sjq8CEy/kNdMsaRDsza/+ wb1RTh/fVKXGQtLii6ZGB/lQEyN8LitxxtyOvDfIgulAyIWgCVacdnXXuZCv3UyoGfBt ONIaBITlkOy9Z76C9Y8Ar57bji7V/AbMCr6uCdDJnR2vupuAZsHQG7QiPbt+hu9OpV8s JsFHIJDh/6nVyzwwTUZxo+M8NTsovapLoz19L29EebpC4mod3ilhxCFf1e3wi34ZSLbY pfv/kKtQnwcDQbwm46MXAIPkPFttX7ymEFogYU5iENEj4Y6M1oGDVZnxEeuKK/W70cwe wOqA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wuty9Vkv; 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=1793173482; x=1793778282; 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=oAj2Ahju6vrRwJASG5j0rKIp2p0XN6xjQExNWzLrDFk=; b=BtsjvmWn5R5Izlkz4qy2MbPP81eALpvdfrvrhAaQK8txzeLXSZZds6ELAj6v3nuBg3 pZV5LtXuYHHVdwPm6+qSrLxLoTm8d7wQ5hrxeVSEnF4+YxF8UMFThcRr6JPvWSUprdUJ obXXGaGFzNAmsnLZ/tZivXxGTIa6DuznYfyKM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793173482; x=1793778282; 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=oAj2Ahju6vrRwJASG5j0rKIp2p0XN6xjQExNWzLrDFk=; b=M2omCNpAACYfh6qyocuVK+qhfWgtFbiehNg6OeJwbSOjVOHHgusxdrHr+khnVpWFY7 C3a/Zz5y3XfiXcAY4Tr0Id6GG5Gqx5111q0aHvdQHK/arGM4KOoIslDLa0CcNc5LiTDZ a+BscuJKJ6XCPozSD1XpMClDFunDRmiFnf+5jIIIs00AHZ8ZdUyYT95iVa5y4hvSXHdI V3gsSH7n1h78IldsZqsVALwSnTiHfe/AWqNu2WZtP3wY91MKvHPI2TENBszKUCG/+bsq hCdUmDqx24Ym2GGyqA3/5OQbD5wg5utSTOspUksLbLnrv9AZFqnmYNm63HH8UFN/Ht+M BLkA== X-Forwarded-Encrypted: i=2; AKwUvBwFohIHXtoLzbpf1qMZ1gKxEfe6wQxBGStvEalIhxnzZV1KZ1uP/B53Rv5GoSSHYMWr8ZmO8HHev3igYQTe@patchwork.amarulasolutions.com X-Gm-Message-State: AFq9FYLTg1BmogRFmPZuoD4PhgEH3M5x/YrHzAtjfXhUT+NutIov/n51 x+8ONH4KcfMmYYnm13Cyb3QGjS8ZuC3f02Y3kOOjgF8C/WiFMl8gnybUrUlBvmh68NKpwQ== X-Received: by 2002:a05:600c:a10d:b0:4a1:fbd2:f689 with SMTP id 5b1f17b1804b1-4a96639b049mr19119945e9.7.1793173482514; Wed, 28 Oct 2026 00:44:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h="ATskLdcSWQkpul+IF86F9cNc/9sdOytA7bHT0J4ZCkgF8N275w==" Received: by 2002:a05:600c:4f12:b0:4a1:7c7d:8876 with SMTP id 5b1f17b1804b1-4a944e5f221ls6980675e9.2.-pod-prod-08-eu; Wed, 28 Oct 2026 00:44:41 -0700 (PDT) X-Received: by 2002:a05:600c:1909:b0:4a2:1e1:d55 with SMTP id 5b1f17b1804b1-4a9675dc5cfmr26168265e9.28.1793173480780; Wed, 28 Oct 2026 00:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793173480; cv=none; d=google.com; s=arc-20260327; b=r9M124E7SqRw354djzu1ROqrdXrUWiM0gwbzSaO+ved0JlyIeKRuszY1FgaajMeiwh kUXiqjolMVnC9vWN0WBZQXs41GJiOh2LuYc6SZoELfys+l38p36x55y5TZIUj4Fbmylp /CmCkk9aS+G1HkuN8+VUvhI28HY8gI98mtBthApUZyZjWIP8pmdMh/EZGUBd9r8DTnbX 0q5CFxSEEgfrt4ZyBRmu3dHWil6wtUFA9th5byFwsMT4vtz5Gc97u5LPE1nZve/yPkPL JjLOEBT02RiQTM4uuOJgdjrsUe56foz9Gy6r/UNyf/imrczeKKtAhx5Hz3QEu+bnw5i9 28Mw== 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=9PPD/mUgGF3odbO9HUc+ZEDM/rOsDf1Ah7YKLsgVXgQ=; fh=SaYc9h/EShluhll2/qZhZDeGkXc2tzKSiigyppFSNgU=; b=WNJ+jXoUV5N0osIsJL0GVepRBqlEiws5qMKTODVZRik9gy8SJMOI4mTR9efgUIfLjf 2MHqScH0SvbKeqAwPoIwzGM6J0GdoEGgXIpHtBBF3E+vJ/igS7HK4KEQI6v/NU/xfxsR FQZb+5um/s6h4E+znoK4vJFhCIJPUbqo5UgW3BzKDAD36MpmxNfg1aiNlU6Hn6M3bCTC lyl8JKu/O4vNBYjAcIykmS4CoKqIW9LKuY/BV/Jb6TdyI7a0BOF03X1qfVDTLyxP1yWe p5yItvGDG48LVvTv8f/T0Fg1NGjlRiisxKKG0IhvNODeLKqjUjAwZNXkMS1tt9Oh2e7C MxFA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Wuty9Vkv; 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 5b1f17b1804b1-4a5a40dfe20sor25850685e9.8.2026.10.28.00.44.40 for (Google Transport Security); Wed, 28 Oct 2026 00:44:40 -0700 (PDT) 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-Gm-Gg: AYBFou1zvII4vP78/O08KL27m/fjJr55T/abtUcvjuZ+VyYSWiIfJQAuQTr3zoVBCLF 7asCIAtuAFtESovk+4fuxStD9YmGADkOvMkVBQvOfPOX2N8FE/L2aUwB+KoJW2w3ypvm9IqH5w/ QM5ozwPBKxeKpgiFQF5x9bNgQ4/AYQkMiRSS5OGsTfP2/J4fnnsDg8ClP2HAmLnbscnthP0yuxK P5Cgid2YSkbpAosfGBY241sDDgoQaLQGLDEYcuh69UG+rFv0oPl20GI/KVSuxcJH0BEpOP5r50m uymjbJb0bwuJsgDXVmcC/WZ62qmLAtDMHqvq9ckJzoexF/YlibUDgKA1h+JzFOwwqb0NFTwifyF r7N7UcMxQBsd9pXZ8SzIPiozdw0220YtGD0jCuT/BPDbZQORHZML/aPNQKhpXBVeQW3My3L/M95 vsfWAvd3xadV5NhA/4vTtgf6mt7zc9MRzABVVU60bCdtrfPJ4dR+oNV9Cb08B04qo06O0VIuhIN aww7WWVB81y64aJ+0mvrYDLkf0nx4neV5tYaF23biJzH14lcutQN+W02h36bqjcNBFnhZ7Kw43s ed4v6Ys72R4c1Wfy87aqh1ZowfBtxpceXepCNv26vg7IKYcBtiFA1utWrEwQBdlHHybmvQvq3pC xBPAvoFrBYS5bZPFu17WlKsyxPc8SFtLz2+cXipmt5WxR6VnvYKYDXD5fBQ8n7861Cy3aSp0eKp 0Qw5YwBWswI9+I9kflrH0zoPRP9fCKCnzAB6DQaK2njvY1Sh0= X-Received: by 2002:a05:600c:608c:b0:4a1:dadf:9876 with SMTP id 5b1f17b1804b1-4a967016833mr27902555e9.23.1793173480359; Wed, 28 Oct 2026 00:44:40 -0700 (PDT) Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it (host-79-14-29-58.business.telecomitalia.it. [79.14.29.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e412cc164sm25324882f8f.7.2026.10.28.00.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2026 00:44:39 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, michael@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 v3 0/3] clk: ti: dpll: switch spread spectrum to the generic framework Date: Wed, 28 Oct 2026 08:44:06 +0100 Message-ID: <20261028074436.1958132-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=Wuty9Vkv; 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 Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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 | 20 +++- drivers/clk/ti/dpll3xxx.c | 98 +++++++++++++++++-- include/linux/clk/ti.h | 9 +- 5 files changed, 113 insertions(+), 25 deletions(-) --- base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d branch: am33xx-assigned-clock-sscs