Add audio shared gate because CCGR101 is shared
changes in v3:
- remove IMX8MP_CLK_AUDIO_ROOT
changes in v2:
- split dt-binding to separate patch
Abel Vesa (2):
dt-bindings: clock: imx8mp: Add ids for the audio shared gate
clk: imx8mp: Add audio shared gate
Shengjiu Wang (1):
dt-bindings: clock: imx8mp: Remove unused IMX8MP_CLK_AUDIO_ROOT
drivers/clk/imx/clk-imx8mp.c | 11 ++++++++++-
include/dt-bindings/clock/imx8mp-clock.h | 12 ++++++++++--
2 files changed, 20 insertions(+), 3 deletions(-)
--
2.34.1
From: Abel Vesa <[email protected]>
All these IDs are for one single HW gate (CCGR101) that is shared
between these root clocks.
Signed-off-by: Abel Vesa <[email protected]>
Signed-off-by: Shengjiu Wang <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Acked-by: Krzysztof Kozlowski <[email protected]>
---
include/dt-bindings/clock/imx8mp-clock.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h
index 9d5cc2ddde89..2f6fec299662 100644
--- a/include/dt-bindings/clock/imx8mp-clock.h
+++ b/include/dt-bindings/clock/imx8mp-clock.h
@@ -324,8 +324,17 @@
#define IMX8MP_CLK_CLKOUT2_SEL 317
#define IMX8MP_CLK_CLKOUT2_DIV 318
#define IMX8MP_CLK_CLKOUT2 319
+#define IMX8MP_CLK_AUDIO_AHB_ROOT 320
+#define IMX8MP_CLK_AUDIO_AXI_ROOT 321
+#define IMX8MP_CLK_SAI1_ROOT 322
+#define IMX8MP_CLK_SAI2_ROOT 323
+#define IMX8MP_CLK_SAI3_ROOT 324
+#define IMX8MP_CLK_SAI5_ROOT 325
+#define IMX8MP_CLK_SAI6_ROOT 326
+#define IMX8MP_CLK_SAI7_ROOT 327
+#define IMX8MP_CLK_PDM_ROOT 328
-#define IMX8MP_CLK_END 320
+#define IMX8MP_CLK_END 329
#define IMX8MP_CLK_AUDIOMIX_SAI1_IPG 0
#define IMX8MP_CLK_AUDIOMIX_SAI1_MCLK1 1
--
2.34.1
Remove unused IMX8MP_CLK_AUDIO_ROOT which is replaced by
IMX8MP_CLK_AUDIO_AHB_ROOT.
Signed-off-by: Shengjiu Wang <[email protected]>
---
include/dt-bindings/clock/imx8mp-clock.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/dt-bindings/clock/imx8mp-clock.h b/include/dt-bindings/clock/imx8mp-clock.h
index 2f6fec299662..6619227f51ab 100644
--- a/include/dt-bindings/clock/imx8mp-clock.h
+++ b/include/dt-bindings/clock/imx8mp-clock.h
@@ -286,7 +286,6 @@
#define IMX8MP_CLK_TSENSOR_ROOT 281
#define IMX8MP_CLK_VPU_ROOT 282
#define IMX8MP_CLK_MRPR_ROOT 283
-#define IMX8MP_CLK_AUDIO_ROOT 284
#define IMX8MP_CLK_DRAM_ALT_ROOT 285
#define IMX8MP_CLK_DRAM_CORE 286
#define IMX8MP_CLK_ARM 287
--
2.34.1