From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 974CE1F12FB for ; Thu, 9 Jan 2025 21:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736457557; cv=none; b=eaB+q/qOvPR2OrkGCYjXu74ph1vlJcU8r1LLQ42wWKBK1E2vtGpjInXTPpBSgAFV/ULQ1l8J1GyJl5sF0gLapSkLmN4yWtYTa2ftjsk+gVGFLOQrz8+v5csSUS6vFdWd1wF+qnTc4LHijUiH/XSfHbalkGWr/zFeNR4bqusheb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736457557; c=relaxed/simple; bh=4kR3KOquOvIAUcDgyxq24Py1Sqt5uauPaJ1AzQww15w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sZzfRpXg6CoOza+AlPXG3A00ReXqcVOZJXpdgLW+WjACiPPZKJHhc1+wpUioYfgxpF7pBXdmevGVkyTUK37fSlkKQW4EhFqnKgioHld0bBFeHGoknBrFDry2QIHCQkbff2Md2UiNGYFJ9A/wojBGWTnvVT3YrwHBAEuauu77qHY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=ZjAGvlaL; arc=none smtp.client-ip=209.85.208.47 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.b="ZjAGvlaL" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d88c355e0dso2269597a12.0 for ; Thu, 09 Jan 2025 13:19:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1736457554; x=1737062354; 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; bh=nYWwEHMv7Pi4/aMuIfIEd0m898Lr2Kb8/a+FILyxHPY=; b=ZjAGvlaLGRdpfiEJs2KF8uBNysFg2ZUrXbw702sYku9/4MQZz6F7S4UiFRQ+7mBQAa 1RFBwqLa+VSsjZva+j3PK1GHfVwn5TIrp0xy6smsAlsDAVqolXtl7L41hTVzOQv+N7fI kLvQLW6Jkn865rsA3ul6w36kZNp6pu5wnoJSs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736457554; x=1737062354; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nYWwEHMv7Pi4/aMuIfIEd0m898Lr2Kb8/a+FILyxHPY=; b=cV6vdRsGB+YR1BLwrlhK59z+wSzfZgOsNKjnaeu2As/x8lSU7P0AnvBZRWU+F2yIOP +GAT7kQfLbOqsCOL3gG2thReMnpeIkmK88Io4poF1P2w09xcjr5ZYbRqWKhUE95ZQluQ qi2Nzw6sOSZBj/pPrRf5pP+RFunc3w7xXU34TJ09K6aeh6yozTOGLKOXoug+WEkuJCjK ysYQrbBsqEUPYS+NPi3nUuIlJi7ZtiV4q+0lR8gh/GYFdYt4l7TVEW3WXV0pbWV1sxyp Xl3o+i9Aep1/TA0qVHrgp19KellYKmAJnhP5JvIXHXew0b9THpY1xduEe03jvS0BvxVQ HDqQ== X-Gm-Message-State: AOJu0YzDiKHj9LtsG2/6sZHvG1GUKJXAPaQhV1r1iX86N0gZiU+zXzMR Tuav8r/JbIcsV5N+3weXbjG2dfTjW76K7GiMDF4qt7PXqBpfqHLcJPGI+SpKJ+wm8MrOk4rumtA / X-Gm-Gg: ASbGncv6G1FP5SLveyNjfEqsR7xpr8f5iF3ficia3mimZ0fgOaoI9v/fk1acupSVYJP fcDcq3kl4F4X72hGRvh1Upz4sF3LFb7+M42InR5uGYBQtHftWyp92Zy4xuOPje4cAd/616++0tI ivxGyk9YPsnZ97cCzDlgF2rshfq8zTR3cj6uqSF4EGRcTnL8qp805knBDNfuAcgUorTq+RJRGxC IiDGUC/bIvyoryuFLcNG71UiEd+y+35JysNN3IxqeMJuIgcm+7kJA4sBLlvAHnWQvFnfBJtwJps XhDm0MaDOWlPy7826LHDxoIMiE7zZwCrLDPA2w8iMtWDfiGts/qNykvasv51wj7ipd0eCudsGyt G/k0aIR6KW74H9CmnNg== X-Google-Smtp-Source: AGHT+IGDVisAyEQwSigpcUtiYjGMdYnHM9AmzlwjHAKTXZuLBmm721gRf+PfVKaw25o+OkloXI5uXA== X-Received: by 2002:a05:6402:430c:b0:5d3:e45d:ba7c with SMTP id 4fb4d7f45d1cf-5d972e7148bmr6635147a12.29.1736457553855; Thu, 09 Jan 2025 13:19:13 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-41-6-15.retail.telecomitalia.it. [79.41.6.15]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d9900c4b56sm925567a12.32.2025.01.09.13.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 13:19:12 -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 v2 0/4] Support spread spectrum clocking for stm32f{4,7} platforms Date: Thu, 9 Jan 2025 22:18:27 +0100 Message-ID: <20250109211908.1553072-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 | 147 +++++++++++++++++ .../bindings/reset/st,stm32-rcc.txt | 2 +- drivers/clk/clk-stm32f4.c | 155 +++++++++++++++++- include/dt-bindings/clock/stm32fx-clock.h | 2 +- 5 files changed, 298 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 -- 2.43.0