[PATCH 1/3] dt-bindings: clk: at91: Add clock IDs for the slow clock controller

Claudiu Beznea posted 3 patches 1 year, 3 months ago
[PATCH 1/3] dt-bindings: clk: at91: Add clock IDs for the slow clock controller
Posted by Claudiu Beznea 1 year, 3 months ago
Add clock IDs for the slow clock controller. Previously, raw numbers
were used (0 or 1) for clocks generated by the slow clock controller. This
leads to confusion and wrong IDs were used on few device trees. To avoid
this add macros.

Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
---
 include/dt-bindings/clock/at91.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/dt-bindings/clock/at91.h b/include/dt-bindings/clock/at91.h
index 6ede88c3992d..99f4767ff6bb 100644
--- a/include/dt-bindings/clock/at91.h
+++ b/include/dt-bindings/clock/at91.h
@@ -55,4 +55,8 @@
 #define AT91_PMC_GCKRDY		24		/* Generated Clocks */
 #endif
 
+/* Slow clock. */
+#define SCKC_MD_SLCK		0
+#define SCKC_TD_SLCK		1
+
 #endif
-- 
2.39.2
Re: [PATCH 1/3] dt-bindings: clk: at91: Add clock IDs for the slow clock controller
Posted by Krzysztof Kozlowski 1 year, 3 months ago
On Mon, Aug 26, 2024 at 08:31:14PM +0300, Claudiu Beznea wrote:
> Add clock IDs for the slow clock controller. Previously, raw numbers
> were used (0 or 1) for clocks generated by the slow clock controller. This
> leads to confusion and wrong IDs were used on few device trees. To avoid
> this add macros.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
> ---
>  include/dt-bindings/clock/at91.h | 4 ++++

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof