From patchwork Tue Jan 14 18:19:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3802 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9A5903F332 for ; Tue, 14 Jan 2025 19:20:28 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-436328fcfeesf46755945e9.1 for ; Tue, 14 Jan 2025 10:20:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736878828; cv=pass; d=google.com; s=arc-20240605; b=I449PLt2IrFE+jjxqmd2k9O4MtYD10zTkccYLiNyLJRx93qA3uVEiETNPJTUh+NzYc 8LJcQA00/Xp5BG4pz76NkGqjsGVGBtC9RSzpt8dI4Q5sDryk1AxuW9Vxz2lrvoQtiLHo EcHLwmBlObvSMWFGRat5E8lz3E79+ez4/MPHqnzMCYp9IHc8aJe3OQhHoD/O5vXHYKtB z3NXLH1/oiygt6Vt6Pqfkd/vy0NK0iG3blVihPQ2v6H/8HFCKFHJ5EzdxiOoIlj42kMj 0jTlM0m6/5bx64oZ5EhNpdL84fjVA/NV5zAcVBH2Af2A7HhzmMc2B74KDwu4SzK3FhsC smlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=/XvPTmaV/KGrER8/aMS7Rr7DkMiGPfpe8QcElncuylY=; fh=cjSKleLNWfjSlrwaoLmU1Bd2vWXOYmSpBCtRA3l13CI=; b=VZ36u1/YAW41fxeKP8u33vTG9I3PQm3qLBM6uThyNpgb7idLmHchnC1bdK9XxJ8Ll+ 4aNnM+Mg7T/r8j4PXKqWq7NAlWJgPYFsZAOWfj+sP8Ec8ngA6DqAqSosDdOxwM8yL+3L d9ldHca/JfbrJYsJCjXXYoDNHFQF62IY41CB20A7EBvodae5p6Wwy//pIsrU5MUue+DN t4xPzPl4pc78VizfS8d66NrGiTjKnr4pAKFL5GUVceaucT98mLfeuX6ElP3ELelHs28n C3ypqk7aSJigZgc9cBpWsdrHgNP29JYX1aopCe21Us+hblRLcW4+yrRAcyySkd+7ruat kjxg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="i/8XYGaP"; 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=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1736878828; x=1737483628; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence: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; bh=/XvPTmaV/KGrER8/aMS7Rr7DkMiGPfpe8QcElncuylY=; b=WoAtKCgogc2ufmJsfWxygDi83Sud71qOTgZA+FQwM/oh3/wECumRWFT0WUbyk6ePLP jI3BNVWayESlaZKiZfOJVcA6D+FzDKgVMBuQEC1JGOBAGK3yy68S+WPzCvZA7wdRyKku Gmf4eZsDJFHk8UD02P83mG/+Sj17QZ7BGwXrY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736878828; x=1737483628; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/XvPTmaV/KGrER8/aMS7Rr7DkMiGPfpe8QcElncuylY=; b=PwxpZQCBQp4GVPP28gDMOh1X7lqzzM3pnnc5PCTzulOTfsVm/tqwbRKYoFq798TYor ZB/XTSg2vVB6dnT1rQ7crsKk49FoMUyRQ0pBXHhPo8z1G4lk1fIsBCj/5l38zv348plp 89nTPOXGM/h1o3NBWgQE+m0sJoaFsZOubfkzYEE8INJZp19ROlhFKeqwZtrWq8RcTkeL mTZwUoM0oi6KZS7AkQJfZM/J174YQlrTsKbTPoVGJy+NKKOcrkwlM5siZtpUDxu6OgNe YKNYKIRwvsjPSRb8l/biWYv+6jUaPCmFUDfbXfhaIwuB3D4aQIM7ZKMTUpbcdr0Ej/dr auhw== X-Forwarded-Encrypted: i=2; AJvYcCWSwHHYpm0mXTageWEpqv9xF+Ty/7+0Eje+GgwShRn23leydj4KivK+ROKWUWrH2kxW1CKgJy+UMgedt0OC@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxnEW4um+Sp3pakVBDuV7u/Yk7tIbCd07fdrjkW/LGmjwWpC8wL /XmcNDw0NE6OHSiFqG6VwbPmnTOmAGPPsBAW7/IyTeOuavB7WuZByxSGyHQGOAT0ZA== X-Google-Smtp-Source: AGHT+IGQOkqZQoNu9+R3HpUCB5YiA4TjhfrLEOQrWguTULFSm1go1Ts83XiQxugrHA74yRG2pf6kjQ== X-Received: by 2002:a05:600c:a0a:b0:434:ff30:a159 with SMTP id 5b1f17b1804b1-436e255ded6mr253899855e9.0.1736878827994; Tue, 14 Jan 2025 10:20:27 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:600d:b0:436:5165:f202 with SMTP id 5b1f17b1804b1-436e884118dls32261445e9.1.-pod-prod-02-eu; Tue, 14 Jan 2025 10:20:26 -0800 (PST) X-Received: by 2002:a05:600c:4704:b0:436:469f:2210 with SMTP id 5b1f17b1804b1-436e267f796mr190929705e9.1.1736878826070; Tue, 14 Jan 2025 10:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736878826; cv=none; d=google.com; s=arc-20240605; b=WBBbdLcKYpUYTEqwtRv57wgvTMHLgM3tboWmP+xTI/Z3yLpobof1mQR02Qm1x5BqtK hj2bQL7K2/nKMtBW9TUus+trhiVV3p3BRwtIAj76bmH+xNyEY9B9047oQWfaN+opjXJ6 9MTJP5OcWUb+ZBKucDjyR1kjQd1bLtTDAJXfxKNL1Ng4aTB9uuATqocUCPBbCwxK1io0 pIz/EQ2CrWRX5MzV6IqUnlk7QEy5wVYf8N3U8oIXqORCLqWe51GUoIshxcGb/Jca4Pcc P6U8iCXuRnLtRh1LXiWf831CzyDh6TR6o6jAIh1nbkXxD8aUQWyJtLND0C2sgCyJJQSC z2TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=GeNVBB/i2U4Nsgj/JNEuuNrVAFqI6yjOJA02Gh323ro=; fh=YFlUV5ccCq4J8t54esOF4Sg6NxdNpGYs78cMg2bEWwM=; b=JCzNUSINuT7bYp5eEeph9thDgK8zeTuRjhk9ckoiWf36f6Aai7QIh3tss4FZeeAGTA 60Bu+cswiKrqaArzTd4P3CMJVEpGSvvOGit6qUCcIjuajvJK1F5fbP405Ha27EYpdAcG aVL3mUZZTrMgoZTyAJ3DEyHKpw3ILcfGF/wnDPD6pcG9POxF3S1sfk2t+tkFRdkhHUbu 1IqYZ+1wc46MfWv9Iccs4M9Lzz4Lol2fwviVcHvJvZsCl2waVQM1TyWG70TJVF9i96vH T0ax/8wgin+pFuBVDfcOo3AMotB5yFh06pJpMTRMAlxmaHVKnbFAPMosWJBoRNb1ZcVx P2xA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="i/8XYGaP"; 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=pass 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-436e998841dsor46060345e9.1.2025.01.14.10.20.25 for (Google Transport Security); Tue, 14 Jan 2025 10:20:25 -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; X-Gm-Gg: ASbGncsL9PcGWcmN7zRuxQUayS3K+0/bvYTDuoWsPqP5VreHfhB6YrmbZbI2wZCfEyY +2KDHZeP3CatLAzx7KQaoaMvVdjWex4yd40+Grg3LKplsVSmwQCGgUx8kvlWAjLPeyUgEISm1al 9S+VKORf2NLWZg+BnXEHh1aIKz6T5xc2gWFma1espP+3FqgY6MHLgyspFKb6N0r/eTZR7ZfphCR Sr3i6JCQVOptY+4srPT2Ft64YHHlAcTf0JAsLK1zcQrg1r+ccItadYT41ZI41vey80BIkmGZxUF 5MpXa4krFogensqkGbodwg== X-Received: by 2002:a05:6000:2a2:b0:38a:8906:6b66 with SMTP id ffacd0b85a97d-38a89066f45mr26441005f8f.38.1736878825526; Tue, 14 Jan 2025 10:20:25 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.42.147]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38be66b01c7sm278970f8f.22.2025.01.14.10.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 10:20:25 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Michael Turquette , Philipp Zabel , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 0/4] Support spread spectrum clocking for stm32f{4,7} platforms Date: Tue, 14 Jan 2025 19:19:45 +0100 Message-ID: <20250114182021.670435-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="i/8XYGaP"; 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=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" 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 series adds support for spread spectrum clocking for stm32f{4,7} main PLL. To achieve this, it was considered necessary to also apply patches to improve the documentation (conversion of `st,stm32-rcc.txt` according to the json-schema) and the code (use of FIELD helpers). The series has been tested on the STM32F469I-DISCO board. Changes in v4: - Improve the compatible property in patch 1/4 "dt-bindings: clock: convert stm32 rcc bindings to json-schema" Changes in v3: - Changes to patch 4/4 "clk: stm32f4: support spread spectrum clock generation" according to Stephen Boyd's suggestions. Changes in v2: - Fixup patches: 2/6 dt-bindings: reset: st,stm32-rcc: update reference due to rename 3/6 dt-bindings: clock: stm32fx: update reference due to rename to 1/6 dt-bindings: clock: convert stm32 rcc bindings to json-schema - Changes to dt-bindings: clock: convert stm32 rcc bindings to json-schema - Changes to dt-bindings: clock: st,stm32-rcc: support spread spectrum clocking Dario Binacchi (4): dt-bindings: clock: convert stm32 rcc bindings to json-schema dt-bindings: clock: st,stm32-rcc: support spread spectrum clocking clk: stm32f4: use FIELD helpers to access the PLLCFGR fields clk: stm32f4: support spread spectrum clock generation .../bindings/clock/st,stm32-rcc.txt | 138 ---------------- .../bindings/clock/st,stm32-rcc.yaml | 144 ++++++++++++++++ .../bindings/reset/st,stm32-rcc.txt | 2 +- drivers/clk/clk-stm32f4.c | 155 +++++++++++++++++- include/dt-bindings/clock/stm32fx-clock.h | 2 +- 5 files changed, 295 insertions(+), 146 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/st,stm32-rcc.txt create mode 100644 Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml