Re: [PATCH v4 8/8] dt-bindings: stm32: use reference manual names for ETR and STM bus clocks
From: Gabriel FERNANDEZ
Date: Tue Nov 24 2026 - 11:17:58 EST
Hi Krzysztof,
On 11/24/26 16:01, Krzysztof Kozlowski wrote:
Thanks for the review. Existing users should still compile: the patch keepsThe bus clocks of the STM and of the ETR are identified by CK_BUS_STM500,That's ABI break, so clearly not true. Users of this ABI - this header -
CK_SCMI_STM500 and CK_SCMI_ETR. Now that their kernel clocks are
described as CK_KER_STM and CK_KER_ETR, and as the RCC bus clock of the
ETR is already CK_BUS_ETR, these names are confusing. They also differ
from the reference manual and from the STM32MP21 binding, which uses
CK_BUS_STM, CK_SCMI_BUS_ETR and CK_SCMI_BUS_STM for the same clocks.
Use CK_BUS_STM, CK_SCMI_BUS_ETR and CK_SCMI_BUS_STM, with unchanged
values, and keep the old names as deprecated aliases so that the
existing users are not affected.
No functional change.
did compile before, now they don't.
the three old names as aliases at the end of the header:
+/* Deprecated identifiers, kept for backward compatibility */
+#define CK_BUS_STM500 CK_BUS_STM
+#define CK_SCMI_ETR CK_SCMI_BUS_ETR
+#define CK_SCMI_STM500 CK_SCMI_BUS_STM
Old and new names expand to the same values (89, 87 and 122, unchanged
from before the patch), so neither the DTS/C sources using the old names
nor the DTB ABI are affected.
That said, you are right that "No functional change" does not describe
the ABI impact. I will make it explicit in v5:
ABI impact: none. The numerical values are unchanged, so the binary
ABI is not affected. The old names are kept as aliases of the new ones,
so existing sources including this header still build. They are
deprecated and new users should use the new names.
If you would rather not rename the identifiers at all, I can drop this
patch. It is the last one of the series and independent from patches 1-7.
Best regards,
Gabriel
ABI impact must be explicit in commit msg.
Best regards,
Krzysztof