* [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk
@ 2023-06-28 6:17 Jacky Bai
2023-06-28 6:17 ` [PATCH 2/3] clk: " Jacky Bai
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Jacky Bai @ 2023-06-28 6:17 UTC (permalink / raw)
To: abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
From: Chancel Liu <chancel.liu@nxp.com>
Add PDM IPG clk.
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
---
include/dt-bindings/clock/imx93-clock.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/dt-bindings/clock/imx93-clock.h b/include/dt-bindings/clock/imx93-clock.h
index 35a1f62053a5..787c9e74dc96 100644
--- a/include/dt-bindings/clock/imx93-clock.h
+++ b/include/dt-bindings/clock/imx93-clock.h
@@ -203,6 +203,7 @@
#define IMX93_CLK_ARM_PLL 198
#define IMX93_CLK_A55_SEL 199
#define IMX93_CLK_A55_CORE 200
-#define IMX93_CLK_END 201
+#define IMX93_CLK_PDM_IPG 201
+#define IMX93_CLK_END 202
#endif
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] clk: imx93: Add PDM IPG clk
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
@ 2023-06-28 6:17 ` Jacky Bai
2023-06-30 6:55 ` Peng Fan
2023-06-28 6:17 ` [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll Jacky Bai
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Jacky Bai @ 2023-06-28 6:17 UTC (permalink / raw)
To: abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
From: Chancel Liu <chancel.liu@nxp.com>
The IPG clk and MCLK of PDM share the same control gate.
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
---
drivers/clk/imx/clk-imx93.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c
index b6c7c2725906..f5dc1ee4990d 100644
--- a/drivers/clk/imx/clk-imx93.c
+++ b/drivers/clk/imx/clk-imx93.c
@@ -32,6 +32,7 @@ static u32 share_count_sai1;
static u32 share_count_sai2;
static u32 share_count_sai3;
static u32 share_count_mub;
+static u32 share_count_pdm;
static const char * const a55_core_sels[] = {"a55_alt", "arm_pll"};
static const char *parent_names[MAX_SEL][4] = {
@@ -236,7 +237,8 @@ static const struct imx93_clk_ccgr {
{ IMX93_CLK_USB_CONTROLLER_GATE, "usb_controller", "hsio_root", 0x9a00, },
{ IMX93_CLK_USB_TEST_60M_GATE, "usb_test_60m", "hsio_usb_test_60m_root", 0x9a40, },
{ IMX93_CLK_HSIO_TROUT_24M_GATE, "hsio_trout_24m", "osc_24m", 0x9a80, },
- { IMX93_CLK_PDM_GATE, "pdm", "pdm_root", 0x9ac0, },
+ { IMX93_CLK_PDM_GATE, "pdm", "pdm_root", 0x9ac0, 0, &share_count_pdm},
+ { IMX93_CLK_PDM_IPG, "pdm_ipg_clk", "bus_aon_root", 0x9ac0, 0, &share_count_pdm},
{ IMX93_CLK_MQS1_GATE, "mqs1", "sai1_root", 0x9b00, },
{ IMX93_CLK_MQS2_GATE, "mqs2", "sai3_root", 0x9b40, },
{ IMX93_CLK_AUD_XCVR_GATE, "aud_xcvr", "audio_xcvr_root", 0x9b80, },
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
2023-06-28 6:17 ` [PATCH 2/3] clk: " Jacky Bai
@ 2023-06-28 6:17 ` Jacky Bai
2023-06-30 6:55 ` Peng Fan
2023-06-30 6:55 ` [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Peng Fan
` (2 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Jacky Bai @ 2023-06-28 6:17 UTC (permalink / raw)
To: abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
For video pll, it may need 519.75MHz clock frequency for
the LVDS display usage. So add 519.75MHz frequency config
support for video pll.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
---
drivers/clk/imx/clk-fracn-gppll.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c
index c54f9999da04..44462ab50e51 100644
--- a/drivers/clk/imx/clk-fracn-gppll.c
+++ b/drivers/clk/imx/clk-fracn-gppll.c
@@ -81,6 +81,7 @@ static const struct imx_fracn_gppll_rate_table fracn_tbl[] = {
PLL_FRACN_GP(650000000U, 162, 50, 100, 0, 6),
PLL_FRACN_GP(594000000U, 198, 0, 1, 0, 8),
PLL_FRACN_GP(560000000U, 140, 0, 1, 0, 6),
+ PLL_FRACN_GP(519750000U, 173, 25, 100, 1, 8),
PLL_FRACN_GP(498000000U, 166, 0, 1, 0, 8),
PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6),
PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9),
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
2023-06-28 6:17 ` [PATCH 2/3] clk: " Jacky Bai
2023-06-28 6:17 ` [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll Jacky Bai
@ 2023-06-30 6:55 ` Peng Fan
2023-07-02 10:44 ` Krzysztof Kozlowski
2023-07-25 8:22 ` Abel Vesa
4 siblings, 0 replies; 8+ messages in thread
From: Peng Fan @ 2023-06-30 6:55 UTC (permalink / raw)
To: Jacky Bai, abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
On 6/28/2023 2:17 PM, Jacky Bai wrote:
> From: Chancel Liu<chancel.liu@nxp.com>
>
> Add PDM IPG clk.
>
> Reviewed-by: Shengjiu Wang<shengjiu.wang@nxp.com>
> Signed-off-by: Chancel Liu<chancel.liu@nxp.com>
> Signed-off-by: Jacky Bai<ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] clk: imx93: Add PDM IPG clk
2023-06-28 6:17 ` [PATCH 2/3] clk: " Jacky Bai
@ 2023-06-30 6:55 ` Peng Fan
0 siblings, 0 replies; 8+ messages in thread
From: Peng Fan @ 2023-06-30 6:55 UTC (permalink / raw)
To: Jacky Bai, abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
On 6/28/2023 2:17 PM, Jacky Bai wrote:
> From: Chancel Liu<chancel.liu@nxp.com>
>
> The IPG clk and MCLK of PDM share the same control gate.
>
> Reviewed-by: Shengjiu Wang<shengjiu.wang@nxp.com>
> Signed-off-by: Chancel Liu<chancel.liu@nxp.com>
> Signed-off-by: Jacky Bai<ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll
2023-06-28 6:17 ` [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll Jacky Bai
@ 2023-06-30 6:55 ` Peng Fan
0 siblings, 0 replies; 8+ messages in thread
From: Peng Fan @ 2023-06-30 6:55 UTC (permalink / raw)
To: Jacky Bai, abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
On 6/28/2023 2:17 PM, Jacky Bai wrote:
> For video pll, it may need 519.75MHz clock frequency for
> the LVDS display usage. So add 519.75MHz frequency config
> support for video pll.
>
> Signed-off-by: Jacky Bai<ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
` (2 preceding siblings ...)
2023-06-30 6:55 ` [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Peng Fan
@ 2023-07-02 10:44 ` Krzysztof Kozlowski
2023-07-25 8:22 ` Abel Vesa
4 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-02 10:44 UTC (permalink / raw)
To: Jacky Bai, abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
On 28/06/2023 08:17, Jacky Bai wrote:
> From: Chancel Liu <chancel.liu@nxp.com>
>
> Add PDM IPG clk.
>
> Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
> Signed-off-by: Jacky Bai <ping.bai@nxp.com>
> ---
> include/dt-bindings/clock/imx93-clock.h | 3 ++-
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
` (3 preceding siblings ...)
2023-07-02 10:44 ` Krzysztof Kozlowski
@ 2023-07-25 8:22 ` Abel Vesa
4 siblings, 0 replies; 8+ messages in thread
From: Abel Vesa @ 2023-07-25 8:22 UTC (permalink / raw)
To: abelvesa, peng.fan, sboyd, shawnguo, robh+dt,
krzysztof.kozlowski+dt, Jacky Bai
Cc: kernel, festevam, linux-imx, linux-clk, devicetree
On Wed, 28 Jun 2023 14:17:22 +0800, Jacky Bai wrote:
> Add PDM IPG clk.
>
>
Applied, thanks!
[1/3] dt-bindings: clock: imx93: Add PDM IPG clk
commit: 2fe182dd2783c870cb21f20732ff62f9cbb2451a
[2/3] clk: imx93: Add PDM IPG clk
commit: 3ea570486039a12bb9dcbec977c70390b3d3c902
[3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll
commit: 07ba6d1ae524c627ac55bb98d5610d4fc44d3fe7
Best regards,
--
Abel Vesa <abel.vesa@linaro.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-07-25 8:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-28 6:17 [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Jacky Bai
2023-06-28 6:17 ` [PATCH 2/3] clk: " Jacky Bai
2023-06-30 6:55 ` Peng Fan
2023-06-28 6:17 ` [PATCH 3/3] clk: imx: Add 519.75MHz frequency support for imx9 pll Jacky Bai
2023-06-30 6:55 ` Peng Fan
2023-06-30 6:55 ` [PATCH 1/3] dt-bindings: clock: imx93: Add PDM IPG clk Peng Fan
2023-07-02 10:44 ` Krzysztof Kozlowski
2023-07-25 8:22 ` Abel Vesa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox