From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 A92911BF328 for ; Sun, 5 Jan 2025 18:15:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736100936; cv=none; b=VFrkIkblvoRNcaaVAapytPWhwLbaeG8Yq9chHp/ASXF0l1v9CW0c3tDV7k9icAMUy8eDJY7FJFc/R48ems4FjnKeRvpV63jHzdDbPHA14FMR+Gah+6LqcxtbLSdoa98ukAbGBiIFEyubtFyXGt9n0Fe1ViVOC7WwqjLaW6TmD4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736100936; c=relaxed/simple; bh=OO7gbuzllcSGMPJv1dkhJSrGvVPCtEbrjNXZy8Vg/Yc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ePT8ZpAFflko2krkX7Ove9uZick20bThFP2CncJx/8tIfrkc7GujRqKIM0fvksAL1P1TKDA9rKBl5MFQoUrhZ2PDRq3Hvg2B8H5iSFQ9T6HGngeNCqNQJZrxrWVbLCeMAooYjd1OzXfnMlZeDurzCaz8rPBFbeVm7v6iRSVfn/Y= 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=kd9t151b; arc=none smtp.client-ip=209.85.218.50 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="kd9t151b" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-aa6c0d1833eso2851165666b.1 for ; Sun, 05 Jan 2025 10:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1736100931; x=1736705731; 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=7JaCiDSlWL3n6x9r8puiAFWGWFXePu89GjNolb6aW4M=; b=kd9t151bJXwmVO8dfzTukgz26JLNiy7NooTH7dJhpv9E0RwMZIHgzhlDOdRAiODzyh nzQ6VSi//tmJCfFoXI0z1nnTIEC7qrSbJQqYDZp9VygCsYTpo+E0H6qWjDdAjfB1hcOM g5haVtIJzvgZFVKc49E3J/q30sfVT3/d7A5eE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736100931; x=1736705731; 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=7JaCiDSlWL3n6x9r8puiAFWGWFXePu89GjNolb6aW4M=; b=DCsRda0v4TAfbIdnMhhotySMOvL4Veu1UuyeoWaIYCDQmX4HA9Bfuqel8XjsQ31yye M5EQzy9QLSnaqhc+pjlGfgWp4liGP2cSExOF1Eed5jjkalHfm7aKaTEmd68Hx2yJU5O7 FPgkC/7PI1VIxmaq1BRQDHW9JVe1EwALBf4Av4upQUcpBh3w/FViRazRnrDIuwuws8UY i7hJuuWCJT0KSjRM8YdeiyQ+4+ga4FHg6i3nm9G4teqVdxlHSGcOvN8E/oChciDUalm8 aRtypO63G3FjPoGI2TRjQZE2KhjgJDm3JYKbUqDvcxqN7f0vn7fXuyyEQbdrgrjWgQKC hr1Q== X-Gm-Message-State: AOJu0YxSC/TArTavjIVpZNipXy51lRF/oLICVQpkMoBN3jdRFNym76tn IdqNrQnK9CL5oIcU3qbt6/e/ji2ztk6sxT0izge7lDnU2DXtlL+YZ811pkfwSkQHZWqCcdlFlP/ g X-Gm-Gg: ASbGncuTeM3AcHTCs0QvgsEB8TVnqatM/poYzwlXiikJIlezWCHDWb7PJl+fM1C177f TvSD5+w47hRBCaKQmwQClMiYOX2Cq8M/s8eRJIb34qOCq+uTe6ZXP4GiEiigJnfFx3kZkeSNAoK dKlRu/4dcxRK1PE7Yz6Kw6qlhuI2du9kHqxEkDkBcgTXAeRCfKexMrXSZDDG0+285Ttwc5lweml ILhxIHRafnl9O2goHRL+7NAvFyzOJrGadzzNaH4t8zTr+pJ6nN/OhFHH0tSJGw93Oa2Tw1+5tLX vcAIqErdRzWt/e++Cx4uJiqLaauhtjcs/ir5iQUTqNG088M3K2LM2nRq+LL3L0Zeiy//8y1EIAy oVP0M2BVyXqQ/ZLKm3Q== X-Google-Smtp-Source: AGHT+IGx5I432/7zv90tAswquFGM3JlzRsAxUeSnbD4QR3LNzbPaGo4Vdu+XKbNBzzfORLPTWC5EKQ== X-Received: by 2002:a17:907:7dab:b0:aa6:98c9:aadc with SMTP id a640c23a62f3a-aac2d45fb01mr5099786866b.31.1736100930471; Sun, 05 Jan 2025 10:15:30 -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 a640c23a62f3a-aac0e82f178sm2138185066b.38.2025.01.05.10.15.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jan 2025 10:15:29 -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 0/6] Support spread spectrum clocking for stm32f{4,7} platforms Date: Sun, 5 Jan 2025 19:14:12 +0100 Message-ID: <20250105181525.1370822-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. Dario Binacchi (6): dt-bindings: clock: convert stm32 rcc bindings to json-schema dt-bindings: reset: st,stm32-rcc: update reference due to rename dt-bindings: clock: stm32fx: update reference due to rename 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 | 170 ++++++++++++++++++ .../bindings/reset/st,stm32-rcc.txt | 2 +- drivers/clk/clk-stm32f4.c | 155 +++++++++++++++- include/dt-bindings/clock/stm32fx-clock.h | 2 +- 5 files changed, 321 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