From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 335FC284A5C for ; Tue, 14 Jan 2025 09:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736845895; cv=none; b=XrToeeBT08CdQUomiVPgYzdx5DtQ+2gMCvC5BGTK6XyNXzOX+XJsheom3X65RmQWdO9LNuCO+6xLAyzu6PO4RaGPl66IEby0CSNCU6fa4uG7cQPtS8uDYOmWIjVY12k0CMI9vGx5PdnvrnDwRMLj5wxWFlANTmrBfu+CEMfLDEk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736845895; c=relaxed/simple; bh=nAUIhH40V9b0M+O9A10WUps+rpYZiNa1arFJMVCaiDo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XDHWp95E3NT5vrh9QR3aAiiyTYPUQCoVNXE9NG4ZwDNDXks6VEyETFo3VUVNwcAEC/Zt0aCv1VYEp84YrDGuskzQ4+XHfy1tIkgU1cNB5gJe/CybJjkVgsgT9erxwJAT8VpaPExj5zOJGmZXc0SUT+3NihtfVsCKy+Fmrec1SCo= 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=dJY2RMK7; arc=none smtp.client-ip=209.85.218.52 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="dJY2RMK7" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-aaee0b309adso859462466b.3 for ; Tue, 14 Jan 2025 01:11:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1736845892; x=1737450692; 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=tBJtngiebfYxaY6Xsqyz7X62QEYJt/s8BWutCfjsmVg=; b=dJY2RMK7hHjF89YobKcYPvnCJZcJwxKCocWvJnxf+ve5gP4LLz0MgKCubCN+Fsshxz Wh6L7Kz6IhUpqN2AmvGcNYJktHxF+qK2tnZ3yOOPPO86VhCcseeR8eWo6MY+6kghWEto 7sKuNpWylU1FHd4UxQYAquA75/dZr52150H10= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736845892; x=1737450692; 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=tBJtngiebfYxaY6Xsqyz7X62QEYJt/s8BWutCfjsmVg=; b=Ts9DtO1RCMA3o1EBDK/3bGHp4NzimL8eITjrsosEkRkhoE57Rzu0mAGMl+Q9aVlDeJ tDy1sL2+TcD/48yFmIUB1c/tKnTzMvwqchHaeYSDOGABdzI8ltLS9jB51FUM6jiGZEE1 3NX0jLxpyi1J5FoAetAi8MPrkNqFZZs/vhw2VMP2HsbR3gsCZFBaSl/RCMx+Tl9A/HTQ uuVJKTO92AARWvmxE0+W1c/ehshRZYO/hdtaTqEbJq/rDevFgOYzGEIE2eSyeW761ens uR+UV11AaO6RjTlgAlGMCAxQ02BGxGZkZapIeDlRv5YUdswl2jg3ANlGgTbrw0jhAMtR 65yA== X-Gm-Message-State: AOJu0YyP1nvr6LC/KBubOpim9vdRCwI3mOWuqpF++/Wfz5nxmQVilQ0L DPyh2Vr6wd7mdSTIpa7T+HQipeeipSISziR9BP8QMEb5ztKFoZIlMFCj5h3lBTGyO7Ir9PSiTaf z X-Gm-Gg: ASbGncuNA+4/SJhLyUwofsIsYdy5X09ICLNTdvPqeMYPtx0d/vUcywBwFuEL1RBoSRr vX+JDI+lKI4WWPGIHpvQqMusV9sMxbbTwFwwxAU7kX4eU0oNlo/MgJ/rz18ytsVIpFVUw5WEg+P Qfoj5cQ91FozJQr4GN/Jq78U/AmB1ARtjlfJjgPRIokj9sx34450hfQZ7Td5s17/t9cpvqFAsiC m1740vM32qIcCkINAw3fs29CmssdjmJ0jW3k2gzEO+ySpt6HK0ig2GnnTZtOJl98eIayrRUopOm SNFywFCneN1rmgX8fIpqow== X-Google-Smtp-Source: AGHT+IFP0NoB1nleymlyPhioCTpMBb5sIxJwE/HcZBxgMFsQqKGSpudKtOUDjpU6FXv2wGNPs8+Egg== X-Received: by 2002:a17:907:7e91:b0:aa6:834b:d138 with SMTP id a640c23a62f3a-ab2ab6b52e7mr2115633366b.19.1736845892238; Tue, 14 Jan 2025 01:11:32 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.42.147]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c95b7317sm599640766b.154.2025.01.14.01.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 01:11:31 -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 v3 0/4] Support spread spectrum clocking for stm32f{4,7} platforms Date: Tue, 14 Jan 2025 10:11:12 +0100 Message-ID: <20250114091128.528757-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 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 | 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