From: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
To: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>,
Gabriel Fernandez <gabriel.fernandez@foss.st.com>,
Gwenael Treuveur <gwenael.treuveur@foss.st.com>
Subject: [PATCH 4/7] dt-bindings: stm32: add clock binding for Cortex-CM0 on stm32mp25 platform
Date: Fri, 23 Oct 2026 15:28:09 +0200 [thread overview]
Message-ID: <20261023-ups_mp25_clk_update-v1-4-e906e7a38cb3@foss.st.com> (raw)
In-Reply-To: <20261023-ups_mp25_clk_update-v1-0-e906e7a38cb3@foss.st.com>
From: Gwenael Treuveur <gwenael.treuveur@foss.st.com>
Add the clock identifiers needed to allocate the D3 peripherals to the
Cortex-M0 (CPU3 domain) and to enable their autonomous mode:
- CK_CPU3 and CK_<IP>_C3: allocation of the CPU3 domain and of the D3
peripherals to CPU3
- CK_CPU3_AM and CK_<IP>_AM: autonomous mode of the CPU3 domain and of
the D3 peripherals
- CK_HSI_KER_ON, CK_HSE_KER_ON and CK_MSI_KER_ON: kernel clocks of the
HSI, HSE and MSI oscillators
Add the matching SCMI clocks: CK_SCMI_HSI_KER_ON, CK_SCMI_HSE_KER_ON,
CK_SCMI_MSI_KER_ON and the autonomous mode clocks owned by the SCMI
server (CK_SCMI_GPIOZ_AM, CK_SCMI_IPCC2_AM, CK_SCMI_LPDMA_AM and
CK_SCMI_RTC_AM).
The three kernel clocks of the HSI, HSE and MSI oscillators are also
added at the end of the RCC input clocks. They are optional, so that
the existing device trees remain valid.
Signed-off-by: Gwenael Treuveur <gwenael.treuveur@foss.st.com>
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
---
.../bindings/clock/st,stm32mp25-rcc.yaml | 9 +++++-
include/dt-bindings/clock/st,stm32mp25-rcc.h | 35 ++++++++++++++++++++++
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/clock/st,stm32mp25-rcc.yaml b/Documentation/devicetree/bindings/clock/st,stm32mp25-rcc.yaml
index 3b7925d2c175..423016ecb602 100644
--- a/Documentation/devicetree/bindings/clock/st,stm32mp25-rcc.yaml
+++ b/Documentation/devicetree/bindings/clock/st,stm32mp25-rcc.yaml
@@ -32,6 +32,7 @@ properties:
const: 1
clocks:
+ minItems: 80
items:
- description: CK_SCMI_HSE High Speed External oscillator (8 to 48 MHz)
- description: CK_SCMI_HSI High Speed Internal oscillator (~ 64 MHz)
@@ -113,6 +114,9 @@ properties:
- description: CK_SCMI_TIMG2 Peripheral bridge for timer2
- description: CK_SCMI_PLL3 PLL3 clock
- description: clk_dsi_txbyte DSI byte clock
+ - description: CK_SCMI_HSI_KER_ON Kernel High Speed Internal oscillator
+ - description: CK_SCMI_HSE_KER_ON Kernel High Speed External oscillator
+ - description: CK_SCMI_MSI_KER_ON Kernel Low Power Internal oscillator
access-controllers:
maxItems: 1
@@ -214,6 +218,9 @@ examples:
<&scmi_clk CK_SCMI_TIMG1>,
<&scmi_clk CK_SCMI_TIMG2>,
<&scmi_clk CK_SCMI_PLL3>,
- <&clk_dsi_txbyte>;
+ <&clk_dsi_txbyte>,
+ <&scmi_clk CK_SCMI_HSI_KER_ON>,
+ <&scmi_clk CK_SCMI_HSE_KER_ON>,
+ <&scmi_clk CK_SCMI_MSI_KER_ON>;
};
...
diff --git a/include/dt-bindings/clock/st,stm32mp25-rcc.h b/include/dt-bindings/clock/st,stm32mp25-rcc.h
index cef997508b56..53c65e9a12f6 100644
--- a/include/dt-bindings/clock/st,stm32mp25-rcc.h
+++ b/include/dt-bindings/clock/st,stm32mp25-rcc.h
@@ -365,6 +365,34 @@
#define HSE_DIV2_CK 343
#define CK_KER_ETR 344
#define CK_KER_STM 345
+#define CK_HSI_KER_ON 346
+#define CK_HSE_KER_ON 347
+#define CK_MSI_KER_ON 348
+#define CK_CPU3 349
+#define CK_ADF1_C3 350
+#define CK_GPIOZ_C3 351
+#define CK_I2C8_C3 352
+#define CK_I3C4_C3 353
+#define CK_LPDMA_C3 354
+#define CK_LPTIM3_C3 355
+#define CK_LPTIM4_C3 356
+#define CK_LPTIM5_C3 357
+#define CK_LPUART1_C3 358
+#define CK_RTC_C3 359
+#define CK_SPI8_C3 360
+#define CK_ADF1_AM 361
+#define CK_CPU3_AM 362
+#define CK_GPIOZ_AM 363
+#define CK_I2C8_AM 364
+#define CK_I3C4_AM 365
+#define CK_IPCC2_AM 366
+#define CK_LPDMA_AM 367
+#define CK_LPTIM3_AM 368
+#define CK_LPTIM4_AM 369
+#define CK_LPTIM5_AM 370
+#define CK_LPUART1_AM 371
+#define CK_RTC_AM 372
+#define CK_SPI8_AM 373
#define CK_SCMI_ICN_HS_MCU 0
#define CK_SCMI_ICN_SDMMC 1
@@ -490,5 +518,12 @@
#define CK_SCMI_BUS_STM 122
#define CK_SCMI_KER_STM 123
#define CK_SCMI_KER_ETR 124
+#define CK_SCMI_HSI_KER_ON 125
+#define CK_SCMI_HSE_KER_ON 126
+#define CK_SCMI_MSI_KER_ON 127
+#define CK_SCMI_GPIOZ_AM 128
+#define CK_SCMI_IPCC2_AM 129
+#define CK_SCMI_LPDMA_AM 130
+#define CK_SCMI_RTC_AM 131
#endif /* _DT_BINDINGS_STM32MP25_CLKS_H_ */
--
2.43.0
next prev parent reply other threads:[~2026-10-23 13:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 13:28 [PATCH 0/7] clk: stm32mp25: add Cortex-M0 D3 clocks, ETR/STM and USB2PHY1 STP Gabriel Fernandez
2026-10-23 13:28 ` [PATCH 1/7] clk: stm32mp25: define the number of clocks in the driver Gabriel Fernandez
2026-10-23 13:28 ` [PATCH 2/7] dt-bindings: stm32: add kernel clocks for ETR and STM Gabriel Fernandez
2026-10-23 13:28 ` [PATCH 3/7] clk: stm32mp25: update register with reference manual Gabriel Fernandez
2026-10-23 13:28 ` Gabriel Fernandez [this message]
2026-10-23 13:28 ` [PATCH 5/7] clk: stm32mp25: add clock for D3 peripherals allocation for Cortex-CM0 Gabriel Fernandez
2026-10-23 13:28 ` [PATCH 6/7] dt-bindings: stm32: add binding for usb2phy1stp clock on stm32mp25 Gabriel Fernandez
2026-10-23 13:28 ` [PATCH 7/7] clk: stm32mp25: add ck_ker_usb2phy1_stp clock Gabriel Fernandez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261023-ups_mp25_clk_update-v1-4-e906e7a38cb3@foss.st.com \
--to=gabriel.fernandez@foss.st.com \
--cc=alexandre.torgue@foss.st.com \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gwenael.treuveur@foss.st.com \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®