* [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated
@ 2026-07-27 9:49 genevieve.chan
2026-08-04 7:49 ` Krzysztof Kozlowski
2026-08-06 9:58 ` Krzysztof Kozlowski
0 siblings, 2 replies; 5+ messages in thread
From: genevieve.chan @ 2026-07-27 9:49 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Dinh Nguyen, linux-clk,
devicetree, linux-kernel
Cc: linux driver reviews
From: Genevieve Chan <genevieve.chan@altera.com>
Preliminary documentation referred to mpu_l2ram_clk, but that clock is
now mpu_ccu_clk and is already represented by AGILEX_MPU_CCU_CLK.
Keep AGILEX_MPU_L2RAM_CLK as a legacy ABI-preserved ID (do not use in
new DTs) and mark clock ID 42 as reserved/unused so it is not reused,
keeping all existing clock IDs stable for DT ABI compatibility.
Fixes: 6b3c59780ed3 ("dt-bindings: documentation: add clock bindings information for Agilex")
Cc: stable@vger.kernel.org # 5.8+
Signed-off-by: Genevieve Chan <genevieve.chan@altera.com>
---
include/dt-bindings/clock/agilex-clock.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/dt-bindings/clock/agilex-clock.h b/include/dt-bindings/clock/agilex-clock.h
index 06feca07e08e..de7a58a06651 100644
--- a/include/dt-bindings/clock/agilex-clock.h
+++ b/include/dt-bindings/clock/agilex-clock.h
@@ -44,6 +44,7 @@
/* Gate clocks */
#define AGILEX_MPU_CLK 30
+/* Legacy ABI ID; do not use in new DTs, use AGILEX_MPU_CCU_CLK */
#define AGILEX_MPU_L2RAM_CLK 31
#define AGILEX_MPU_PERIPH_CLK 32
#define AGILEX_L4_MAIN_CLK 33
@@ -55,6 +56,7 @@
#define AGILEX_CS_TIMER_CLK 39
#define AGILEX_S2F_USER0_CLK 40
#define AGILEX_EMAC0_CLK 41
+/* 42 - reserved/unused */
#define AGILEX_EMAC1_CLK 43
#define AGILEX_EMAC2_CLK 44
#define AGILEX_EMAC_PTP_CLK 45
--
2.43.7
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated
2026-07-27 9:49 [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated genevieve.chan
@ 2026-08-04 7:49 ` Krzysztof Kozlowski
2026-08-06 7:43 ` Chan, Genevieve
2026-08-06 9:58 ` Krzysztof Kozlowski
1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-04 7:49 UTC (permalink / raw)
To: genevieve.chan
Cc: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Dinh Nguyen, linux-clk,
devicetree, linux-kernel, linux driver reviews
On Mon, Jul 27, 2026 at 05:49:26PM +0800, genevieve.chan@altera.com wrote:
> From: Genevieve Chan <genevieve.chan@altera.com>
>
> Preliminary documentation referred to mpu_l2ram_clk, but that clock is
> now mpu_ccu_clk and is already represented by AGILEX_MPU_CCU_CLK.
> Keep AGILEX_MPU_L2RAM_CLK as a legacy ABI-preserved ID (do not use in
> new DTs) and mark clock ID 42 as reserved/unused so it is not reused,
> keeping all existing clock IDs stable for DT ABI compatibility.
>
> Fixes: 6b3c59780ed3 ("dt-bindings: documentation: add clock bindings information for Agilex")
> Cc: stable@vger.kernel.org # 5.8+
> Signed-off-by: Genevieve Chan <genevieve.chan@altera.com>
> ---
> include/dt-bindings/clock/agilex-clock.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/dt-bindings/clock/agilex-clock.h b/include/dt-bindings/clock/agilex-clock.h
> index 06feca07e08e..de7a58a06651 100644
> --- a/include/dt-bindings/clock/agilex-clock.h
> +++ b/include/dt-bindings/clock/agilex-clock.h
> @@ -44,6 +44,7 @@
>
> /* Gate clocks */
> #define AGILEX_MPU_CLK 30
> +/* Legacy ABI ID; do not use in new DTs, use AGILEX_MPU_CCU_CLK */
> #define AGILEX_MPU_L2RAM_CLK 31
> #define AGILEX_MPU_PERIPH_CLK 32
> #define AGILEX_L4_MAIN_CLK 33
> @@ -55,6 +56,7 @@
> #define AGILEX_CS_TIMER_CLK 39
> #define AGILEX_S2F_USER0_CLK 40
> #define AGILEX_EMAC0_CLK 41
> +/* 42 - reserved/unused */
How IDs can be reserved? These are implemented by drivers (abstract IDs
not used by hardware), so how driver could reserve it?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated
2026-08-04 7:49 ` Krzysztof Kozlowski
@ 2026-08-06 7:43 ` Chan, Genevieve
2026-08-06 7:58 ` Krzysztof Kozlowski
0 siblings, 1 reply; 5+ messages in thread
From: Chan, Genevieve @ 2026-08-06 7:43 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Dinh Nguyen, linux-clk,
devicetree, linux-kernel, linux driver reviews
On 4/8/2026 3:49 pm, Krzysztof Kozlowski wrote:
> [You don't often get email from krzk@kernel.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> On Mon, Jul 27, 2026 at 05:49:26PM +0800, genevieve.chan@altera.com wrote:
>> From: Genevieve Chan <genevieve.chan@altera.com>
>>
>> Preliminary documentation referred to mpu_l2ram_clk, but that clock is
>> now mpu_ccu_clk and is already represented by AGILEX_MPU_CCU_CLK.
>> Keep AGILEX_MPU_L2RAM_CLK as a legacy ABI-preserved ID (do not use in
>> new DTs) and mark clock ID 42 as reserved/unused so it is not reused,
>> keeping all existing clock IDs stable for DT ABI compatibility.
>>
>> Fixes: 6b3c59780ed3 ("dt-bindings: documentation: add clock bindings information for Agilex")
>> Cc: stable@vger.kernel.org # 5.8+
>> Signed-off-by: Genevieve Chan <genevieve.chan@altera.com>
>> ---
>> include/dt-bindings/clock/agilex-clock.h | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/include/dt-bindings/clock/agilex-clock.h b/include/dt-bindings/clock/agilex-clock.h
>> index 06feca07e08e..de7a58a06651 100644
>> --- a/include/dt-bindings/clock/agilex-clock.h
>> +++ b/include/dt-bindings/clock/agilex-clock.h
>> @@ -44,6 +44,7 @@
>>
>> /* Gate clocks */
>> #define AGILEX_MPU_CLK 30
>> +/* Legacy ABI ID; do not use in new DTs, use AGILEX_MPU_CCU_CLK */
>> #define AGILEX_MPU_L2RAM_CLK 31
>> #define AGILEX_MPU_PERIPH_CLK 32
>> #define AGILEX_L4_MAIN_CLK 33
>> @@ -55,6 +56,7 @@
>> #define AGILEX_CS_TIMER_CLK 39
>> #define AGILEX_S2F_USER0_CLK 40
>> #define AGILEX_EMAC0_CLK 41
>> +/* 42 - reserved/unused */
>
> How IDs can be reserved? These are implemented by drivers (abstract IDs
> not used by hardware), so how driver could reserve it?
>
> Best regards,
> Krzysztof
>
You are right. These IDs are DT clock specifier indices (provider one-cell ABI), not hardware IDs. The clk driver registers clocks into hws[id]; unused indices remain -ENOENT.
ID 42 was never defined in the original Agilex binding (EMAC0=41, EMAC1=43). The comment was placed to only documents that historical hole so we do not renumber later IDs. It is not a hardware reservation — it is for ABI hygiene.
Happy to reword to something clearer, e.g. /* 42 never assigned; do not renumber */, or drop the comment if preferred.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated
2026-08-06 7:43 ` Chan, Genevieve
@ 2026-08-06 7:58 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-06 7:58 UTC (permalink / raw)
To: Chan, Genevieve
Cc: Michael Turquette, Stephen Boyd, Brian Masney, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Dinh Nguyen, linux-clk,
devicetree, linux-kernel, linux driver reviews
On 06/08/2026 09:43, Chan, Genevieve wrote:
>>> +/* 42 - reserved/unused */
>>
>> How IDs can be reserved? These are implemented by drivers (abstract IDs
>> not used by hardware), so how driver could reserve it?
>>
>> Best regards,
>> Krzysztof
>>
> You are right. These IDs are DT clock specifier indices (provider one-cell ABI), not hardware IDs. The clk driver registers clocks into hws[id]; unused indices remain -ENOENT.
>
> ID 42 was never defined in the original Agilex binding (EMAC0=41, EMAC1=43). The comment was placed to only documents that historical hole so we do not renumber later IDs. It is not a hardware reservation — it is for ABI hygiene.
>
> Happy to reword to something clearer, e.g. /* 42 never assigned; do not renumber */, or drop the comment if preferred.
>
Please wrap your responses.
Comment is simply not needed.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated
2026-07-27 9:49 [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated genevieve.chan
2026-08-04 7:49 ` Krzysztof Kozlowski
@ 2026-08-06 9:58 ` Krzysztof Kozlowski
1 sibling, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-08-06 9:58 UTC (permalink / raw)
To: genevieve.chan, Michael Turquette, Stephen Boyd, Brian Masney,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dinh Nguyen,
linux-clk, devicetree, linux-kernel
Cc: linux driver reviews
On 27/07/2026 11:49, genevieve.chan@altera.com wrote:
> From: Genevieve Chan <genevieve.chan@altera.com>
>
> Preliminary documentation referred to mpu_l2ram_clk, but that clock is
> now mpu_ccu_clk and is already represented by AGILEX_MPU_CCU_CLK.
> Keep AGILEX_MPU_L2RAM_CLK as a legacy ABI-preserved ID (do not use in
> new DTs) and mark clock ID 42 as reserved/unused so it is not reused,
> keeping all existing clock IDs stable for DT ABI compatibility.
>
Why are you Cc-ing non-functional addresses like
"<linux-drivers-review@altera.com>"?
This bounces!
"Your message to linux-drivers-review@altera.com couldn't be delivered."
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-08-06 9:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27 9:49 [PATCH] dt-bindings: clock: agilex: mark mpu_l2ram_clk deprecated genevieve.chan
2026-08-04 7:49 ` Krzysztof Kozlowski
2026-08-06 7:43 ` Chan, Genevieve
2026-08-06 7:58 ` Krzysztof Kozlowski
2026-08-06 9:58 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox