How to get MCLK with 11289600Hz on IMX8MP platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get MCLK with 11289600Hz on IMX8MP platform

Jump to solution
2,462 Views
xiaoqiangliu
Contributor I

We are working IMX8MP with one Audio codec ES8388, I want to use MCLK with 11289600Hz to play 44.1Khz audio, I use the following setting in device tree (assigned-clock-rates = <11289600>;)

sai3 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
assigned-clock-rates = <11289600>;
clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_IPG>, <&clk IMX8MP_CLK_DUMMY>,
<&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_MCLK1>, <&clk IMX8MP_CLK_DUMMY>,
<&clk IMX8MP_CLK_DUMMY>;
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
fsl,sai-mclk-direction-output;
status = "okay";
};

after compile and deploy it to target imx8mp board, i get mclk with 11234743Hz.

cat /sys/kernel/debug/clk/clk_summary

audio_pll1_ref_sel 1 1 0 24000000 0 0 50000 Y
     audio_pll1 1 1 0 393216000 0 0 50000 Y
          audio_pll1_bypass 1 1 0 393216000 0 0 50000 Y
               audio_pll1_out 1 1 0 393216000 0 0 50000 Y
                     sai3 1 1 0 11234743 0 0 50000 Y
                            sai3_root 1 1 0 11234743 0 0 50000 Y
                                      sai3_mclk1_sel 1 1 0 11234743 0 0 50000 Y
                                              sai3_mclk1_clk 1 1 0 11234743 0 0 50000 Y

the questions is how to get MCLK with 11289600Hz on IMX8MP platform?

 

 

Labels (1)
0 Kudos
Reply
1 Solution
2,358 Views
joanxie
NXP TechSupport
NXP TechSupport

forgot to say, try to change the parent clock from pll1 to pll2, change assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; to assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;

View solution in original post

0 Kudos
Reply
9 Replies
2,414 Views
joanxie
NXP TechSupport
NXP TechSupport

you need add the clock in the table imx_pll1443x_tbl, currently the parent clock is 393216000U, so you only can get 11234743Hz

https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/drivers/clk/imx/clk-pll14xx.c

0 Kudos
Reply
2,410 Views
xiaoqiangliu
Contributor I

Thank you for your reply.

I'm not good at that, can you guide me to know how to do that?

I am using kernel 5.15 now, 

linux-imx/drivers/clk/imx/clk-pll14xx.c at lf-5.15.y · nxp-imx/linux-imx · GitHub

static const struct imx_pll14xx_rate_table imx_pll1443x_tbl[] = {
PLL_1443X_RATE(1039500000U, 173, 2, 1, 16384),
PLL_1443X_RATE(650000000U, 325, 3, 2, 0),
PLL_1443X_RATE(594000000U, 198, 2, 2, 0),
PLL_1443X_RATE(519750000U, 173, 2, 2, 16384),
PLL_1443X_RATE(393216000U, 262, 2, 3, 9437),
PLL_1443X_RATE(361267200U, 361, 3, 3, 17511),
};

I checked the kernel 5.15 kernel and found there is no 11289600 which is in the kernel 6.6, just need to add the following line will be ok?

PLL_1443X_RATE(112896000U, 226, 3, 4, 0xcac1),

 

the struct in kernel 6.6

static const struct imx_pll14xx_rate_table imx_pll1443x_tbl[] = {
PLL_1443X_RATE(1039500000U, 173, 2, 1, 16384),
PLL_1443X_RATE(650000000U, 325, 3, 2, 0),
PLL_1443X_RATE(594000000U, 198, 2, 2, 0),
PLL_1443X_RATE(519750000U, 173, 2, 2, 16384),
PLL_1443X_RATE(393216000U, 262, 2, 3, 9437),
PLL_1443X_RATE(361267200U, 361, 3, 3, 17511),
PLL_1443X_RATE(245760000U, 328, 4, 3, 0xae15),
PLL_1443X_RATE(225792000U, 226, 3, 3, 0xcac1),
PLL_1443X_RATE(122880000U, 328, 4, 4, 0xae15),
PLL_1443X_RATE(112896000U, 226, 3, 4, 0xcac1),
PLL_1443X_RATE(61440000U, 328, 4, 5, 0xae15),
PLL_1443X_RATE(56448000U, 226, 3, 5, 0xcac1),
PLL_1443X_RATE(49152000U, 393, 3, 6, 0x374c),
PLL_1443X_RATE(45158400U, 241, 2, 6, 0xd845),
PLL_1443X_RATE(40960000U, 109, 1, 6, 0x3a07),
};

 

0 Kudos
Reply
2,402 Views
joanxie
NXP TechSupport
NXP TechSupport

I post the formula for pll and how to calculate in the document, maybe you can refer to that, 

different lvds support on imx8mp - NXP Community

after add new pll, you can dump the clock to check if it works or not, if still failed, pls post the patch and clock here

0 Kudos
Reply
2,392 Views
xiaoqiangliu
Contributor I

Thank you for your reply.

I noticed that your link is about the lvds, does it same with the audio clk?

I do the following patch,

drivers/clk/imx/clk-pll14xx.c

@@ -64,6 +64,17 @@ static const struct imx_pll14xx_rate_table imx_pll1443x_tbl[] = {

PLL_1443X_RATE(650000000U, 325, 3, 2, 0),
PLL_1443X_RATE(594000000U, 198, 2, 2, 0),
PLL_1443X_RATE(519750000U, 173, 2, 2, 16384),

+PLL_1443X_RATE(650000000U, 325, 3, 2, 0),
+PLL_1443X_RATE(594000000U, 198, 2, 2, 0),
+PLL_1443X_RATE(519750000U, 173, 2, 2, 16384),
+PLL_1443X_RATE(393216000U, 262, 2, 3, 9437),
+PLL_1443X_RATE(361267200U, 361, 3, 3, 17511),
+PLL_1443X_RATE(245760000U, 328, 4, 3, 0xae15),
+PLL_1443X_RATE(225792000U, 226, 3, 3, 0xcac1),
+PLL_1443X_RATE(122880000U, 328, 4, 4, 0xae15),
+PLL_1443X_RATE(112896000U, 226, 3, 4, 0xcac1),
+PLL_1443X_RATE(61440000U, 328, 4, 5, 0xae15),
+PLL_1443X_RATE(56448000U, 226, 3, 5, 0xcac1),
+PLL_1443X_RATE(49152000U, 393, 3, 6, 0x374c),
+PLL_1443X_RATE(45158400U, 241, 2, 6, 0xd845),
+PLL_1443X_RATE(40960000U, 109, 1, 6, 0x3a07),
};

 

the result is same, no change. I noticed that the above is 112896000, not 11289600, one is 112896+ three zero, my request clk is  112896+two zero, do i need to caculated one new rate with 11289600 and add it to imx_pll1443x_tbl?

 

0 Kudos
Reply
2,387 Views
joanxie
NXP TechSupport
NXP TechSupport

after you change the clock driver, what's your dump clock? let me check it, is it the same?

0 Kudos
Reply
2,385 Views
xiaoqiangliu
Contributor I

cat /sys/kernel/debug/clk/clk_summary

audio_pll1_ref_sel 1 1 0 24000000 0 0 50000 Y
     audio_pll1 1 1 0 393216000 0 0 50000 Y
          audio_pll1_bypass 1 1 0 393216000 0 0 50000 Y
               audio_pll1_out 1 1 0 393216000 0 0 50000 Y
                     sai3 1 1 0 11234743 0 0 50000 Y
                            sai3_root 1 1 0 11234743 0 0 50000 Y
                                      sai3_mclk1_sel 1 1 0 11234743 0 0 50000 Y
                                              sai3_mclk1_clk 1 1 0 11234743 0 0 50000 Y

 

it is same with before. I need the sai3_mclk1_clk to be 11289600.

0 Kudos
Reply
2,359 Views
joanxie
NXP TechSupport
NXP TechSupport

forgot to say, try to change the parent clock from pll1 to pll2, change assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>; to assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;

0 Kudos
Reply
2,318 Views
xiaoqiangliu
Contributor I

Hi @joanxie 

Thank you for reply.

I change  assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; it solved my problme.

audio_pll2_ref_sel 1 1 0 24000000 0 0 50000 Y
        audio_pll2 1 1 0 361267200 0 0 50000 Y
                audio_pll2_bypass 1 1 0 361267200 0 0 50000 Y
                        audio_pll2_out 1 1 0 361267200 0 0 50000 Y
                                sai3 1 1 0 11289600 0 0 50000 Y
                                        sai3_root 1 1 0 11289600 0 0 50000 Y
                                                sai3_mclk1_sel 1 1 0 11289600 0 0 50000 Y
                                                        sai3_mclk1_clk 1 1 0 11289600 0 0 50000 Y

0 Kudos
Reply
2,305 Views
joanxie
NXP TechSupport
NXP TechSupport

glad to hear this, sorry for forgetting to tell you at first,  any other issues, pls contact us again

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2015033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2015033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20are%20working%20IMX8MP%20with%20one%20Audio%20codec%20ES8388%2C%20I%20want%20to%20use%20MCLK%20with%2011289600Hz%20to%20play%2044.1Khz%20audio%2C%20I%20use%20the%20following%20setting%20in%20device%20tree%20(%3CSTRONG%3Eassigned-clock-rates%20%3D%20%26lt%3B11289600%26gt%3B%3B%3C%2FSTRONG%3E)%3C%2FP%3E%3CP%3Esai3%20%7B%3CBR%20%2F%3E%23sound-dai-cells%20%3D%20%26lt%3B0%26gt%3B%3B%3CBR%20%2F%3Epinctrl-names%20%3D%20%22default%22%3B%3CBR%20%2F%3Epinctrl-0%20%3D%20%26lt%3B%26amp%3Bpinctrl_sai3%26gt%3B%3B%3CBR%20%2F%3Eassigned-clocks%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_SAI3%26gt%3B%3B%3CBR%20%2F%3Eassigned-clock-parents%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_AUDIO_PLL1_OUT%26gt%3B%3B%3CBR%20%2F%3E%3CSTRONG%3Eassigned-clock-rates%20%3D%20%26lt%3B11289600%26gt%3B%3B%3C%2FSTRONG%3E%3CBR%20%2F%3Eclocks%20%3D%20%26lt%3B%26amp%3Baudio_blk_ctrl%20IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_IPG%26gt%3B%2C%20%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_DUMMY%26gt%3B%2C%3CBR%20%2F%3E%26lt%3B%26amp%3Baudio_blk_ctrl%20IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_MCLK1%26gt%3B%2C%20%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_DUMMY%26gt%3B%2C%3CBR%20%2F%3E%26lt%3B%26amp%3Bclk%20IMX8MP_CLK_DUMMY%26gt%3B%3B%3CBR%20%2F%3Eclock-names%20%3D%20%22bus%22%2C%20%22mclk0%22%2C%20%22mclk1%22%2C%20%22mclk2%22%2C%20%22mclk3%22%3B%3CBR%20%2F%3Efsl%2Csai-mclk-direction-output%3B%3CBR%20%2F%3Estatus%20%3D%20%22okay%22%3B%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%3Eafter%20compile%20and%20deploy%20it%20to%20target%20imx8mp%20board%2C%20i%20get%20mclk%20with%20%3CSTRONG%3E11234743%3C%2FSTRONG%3EHz.%3C%2FP%3E%3CP%3E%3CSTRONG%3Ecat%20%2Fsys%2Fkernel%2Fdebug%2Fclk%2Fclk_summary%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eaudio_pll1_ref_sel%201%201%200%2024000000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Baudio_pll1%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20audio_pll1_bypass%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Baudio_pll1_out%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bsai3%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_root%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_sel%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_clk%201%201%200%2011234743%200%200%2050000%20Y%3C%2FP%3E%3CP%3Ethe%20questions%20is%20how%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2015033%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2018443%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2018443%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eglad%20to%20hear%20this%2C%20sorry%20for%20forgetting%20to%20tell%20you%20at%20first%2C%26nbsp%3B%20any%20other%20issues%2C%20pls%20contact%20us%20again%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2018348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2018348%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39586%22%20target%3D%22_blank%22%3E%40joanxie%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20reply.%3C%2FP%3E%3CP%3EI%20change%26nbsp%3B%26nbsp%3B%3CSPAN%3Eassigned-clock-parents%20%3D%20%26lt%3B%26amp%3Bclk%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EIMX8MP_AUDIO_PLL2_OUT%26gt%3B%3B%20%3C%2FSTRONG%3Eit%20solved%20my%20problme.%3C%2FP%3E%3CP%3Eaudio_pll2_ref_sel%201%201%200%2024000000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20audio_pll2%201%201%200%20361267200%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20audio_pll2_bypass%201%201%200%20361267200%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20audio_pll2_out%201%201%200%20361267200%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3%201%201%200%2011289600%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_root%201%201%200%2011289600%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_sel%201%201%200%2011289600%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_clk%201%201%200%2011289600%200%200%2050000%20Y%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017627%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eforgot%20to%20say%2C%20try%20to%20change%20the%20parent%20clock%20from%20pll1%20to%20pll2%2C%20change%20assigned-clock-parents%20%3D%20%26lt%3B%26amp%3Bclk%20IMX8MP_AUDIO_PLL1_OUT%26gt%3B%3B%20to%20assigned-clock-parents%20%3D%20%26lt%3B%26amp%3Bclk%20%3CSTRONG%3EIMX8MP_AUDIO_PLL2_OUT%26gt%3B%3B%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017113%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017113%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSTRONG%3Ecat%20%2Fsys%2Fkernel%2Fdebug%2Fclk%2Fclk_summary%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Eaudio_pll1_ref_sel%201%201%200%2024000000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Baudio_pll1%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20audio_pll1_bypass%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Baudio_pll1_out%201%201%200%20393216000%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3Bsai3%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_root%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_sel%201%201%200%2011234743%200%200%2050000%20Y%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20sai3_mclk1_clk%201%201%200%2011234743%200%200%2050000%20Y%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eit%20is%20same%20with%20before.%20I%20need%20the%26nbsp%3Bsai3_mclk1_clk%20to%20be%2011289600.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017104%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017104%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eafter%20you%20change%20the%20clock%20driver%2C%20what's%20your%20dump%20clock%3F%20let%20me%20check%20it%2C%20is%20it%20the%20same%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2017058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2017058%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3EI%20noticed%20that%20your%20link%20is%20about%20the%20lvds%2C%20does%20it%20same%20with%20the%20audio%20clk%3F%3C%2FP%3E%3CP%3EI%20do%20the%20following%20patch%2C%3C%2FP%3E%3CP%3Edrivers%2Fclk%2Fimx%2Fclk-pll14xx.c%3C%2FP%3E%3CP%3E%3CSPAN%3E%40%40%20-64%2C6%20%2B64%2C17%20%40%40%20static%20const%20struct%20imx_pll14xx_rate_table%20imx_pll1443x_tbl%5B%5D%20%3D%20%7B%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3EPLL_1443X_RATE(650000000U%2C%20325%2C%203%2C%202%2C%200)%2C%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EPLL_1443X_RATE(594000000U%2C%20198%2C%202%2C%202%2C%200)%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EPLL_1443X_RATE(519750000U%2C%20173%2C%202%2C%202%2C%2016384)%2C%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CP%3E%2BPLL_1443X_RATE(650000000U%2C%20325%2C%203%2C%202%2C%200)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(594000000U%2C%20198%2C%202%2C%202%2C%200)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(519750000U%2C%20173%2C%202%2C%202%2C%2016384)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(393216000U%2C%20262%2C%202%2C%203%2C%209437)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(361267200U%2C%20361%2C%203%2C%203%2C%2017511)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(245760000U%2C%20328%2C%204%2C%203%2C%200xae15)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(225792000U%2C%20226%2C%203%2C%203%2C%200xcac1)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(122880000U%2C%20328%2C%204%2C%204%2C%200xae15)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(112896000U%2C%20226%2C%203%2C%204%2C%200xcac1)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(61440000U%2C%20328%2C%204%2C%205%2C%200xae15)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(56448000U%2C%20226%2C%203%2C%205%2C%200xcac1)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(49152000U%2C%20393%2C%203%2C%206%2C%200x374c)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(45158400U%2C%20241%2C%202%2C%206%2C%200xd845)%2C%3CBR%20%2F%3E%2BPLL_1443X_RATE(40960000U%2C%20109%2C%201%2C%206%2C%200x3a07)%2C%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethe%20result%20is%20same%2C%20no%20change.%20I%20noticed%20that%20the%20above%20is%20112896000%2C%20not%2011289600%2C%20one%20is%20112896%2B%20three%20zero%2C%20my%20request%20clk%20is%26nbsp%3B%20112896%2Btwo%20zero%2C%20do%20i%20need%20to%20caculated%20one%20new%20rate%20with%2011289600%20and%20add%20it%20to%26nbsp%3B%3CSPAN%3Eimx_pll1443x_tbl%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2016793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016793%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20post%20the%20formula%20for%20pll%20and%20how%20to%20calculate%20in%20the%20document%2C%20maybe%20you%20can%20refer%20to%20that%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2Fdifferent-lvds-support-on-imx8mp%2Fta-p%2F1549174%22%20target%3D%22_blank%22%3Edifferent%20lvds%20support%20on%20imx8mp%20-%20NXP%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Eafter%20add%20new%20pll%2C%20you%20can%20dump%20the%20clock%20to%20check%20if%20it%20works%20or%20not%2C%20if%20still%20failed%2C%20pls%20post%20the%20patch%20and%20clock%20here%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2016048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016048%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3EI'm%20not%20good%20at%20that%2C%20can%20you%20guide%20me%20to%20know%20how%20to%20do%20that%3F%3C%2FP%3E%3CP%3EI%20am%20using%20kernel%205.15%20now%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-5.15.y%2Fdrivers%2Fclk%2Fimx%2Fclk-pll14xx.c%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Elinux-imx%2Fdrivers%2Fclk%2Fimx%2Fclk-pll14xx.c%20at%20lf-5.15.y%20%C2%B7%20nxp-imx%2Flinux-imx%20%C2%B7%20GitHub%3C%2FA%3E%3C%2FP%3E%3CP%3Estatic%20const%20struct%20imx_pll14xx_rate_table%20imx_pll1443x_tbl%5B%5D%20%3D%20%7B%3CBR%20%2F%3EPLL_1443X_RATE(1039500000U%2C%20173%2C%202%2C%201%2C%2016384)%2C%3CBR%20%2F%3EPLL_1443X_RATE(650000000U%2C%20325%2C%203%2C%202%2C%200)%2C%3CBR%20%2F%3EPLL_1443X_RATE(594000000U%2C%20198%2C%202%2C%202%2C%200)%2C%3CBR%20%2F%3EPLL_1443X_RATE(519750000U%2C%20173%2C%202%2C%202%2C%2016384)%2C%3CBR%20%2F%3EPLL_1443X_RATE(393216000U%2C%20262%2C%202%2C%203%2C%209437)%2C%3CBR%20%2F%3EPLL_1443X_RATE(361267200U%2C%20361%2C%203%2C%203%2C%2017511)%2C%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CP%3EI%20checked%20the%20kernel%205.15%20kernel%20and%20found%20there%20is%20no%2011289600%20which%20is%20in%20the%20kernel%206.6%2C%20just%20need%20to%20add%20the%20following%20line%20will%20be%20ok%3F%3C%2FP%3E%3CP%3EPLL_1443X_RATE(112896000U%2C%20226%2C%203%2C%204%2C%200xcac1)%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethe%20struct%20in%20kernel%206.6%3C%2FP%3E%3CP%3Estatic%20const%20struct%20imx_pll14xx_rate_table%20imx_pll1443x_tbl%5B%5D%20%3D%20%7B%3CBR%20%2F%3EPLL_1443X_RATE(1039500000U%2C%20173%2C%202%2C%201%2C%2016384)%2C%3CBR%20%2F%3EPLL_1443X_RATE(650000000U%2C%20325%2C%203%2C%202%2C%200)%2C%3CBR%20%2F%3EPLL_1443X_RATE(594000000U%2C%20198%2C%202%2C%202%2C%200)%2C%3CBR%20%2F%3EPLL_1443X_RATE(519750000U%2C%20173%2C%202%2C%202%2C%2016384)%2C%3CBR%20%2F%3EPLL_1443X_RATE(393216000U%2C%20262%2C%202%2C%203%2C%209437)%2C%3CBR%20%2F%3EPLL_1443X_RATE(361267200U%2C%20361%2C%203%2C%203%2C%2017511)%2C%3CBR%20%2F%3EPLL_1443X_RATE(245760000U%2C%20328%2C%204%2C%203%2C%200xae15)%2C%3CBR%20%2F%3EPLL_1443X_RATE(225792000U%2C%20226%2C%203%2C%203%2C%200xcac1)%2C%3CBR%20%2F%3EPLL_1443X_RATE(122880000U%2C%20328%2C%204%2C%204%2C%200xae15)%2C%3CBR%20%2F%3EPLL_1443X_RATE(112896000U%2C%20226%2C%203%2C%204%2C%200xcac1)%2C%3CBR%20%2F%3EPLL_1443X_RATE(61440000U%2C%20328%2C%204%2C%205%2C%200xae15)%2C%3CBR%20%2F%3EPLL_1443X_RATE(56448000U%2C%20226%2C%203%2C%205%2C%200xcac1)%2C%3CBR%20%2F%3EPLL_1443X_RATE(49152000U%2C%20393%2C%203%2C%206%2C%200x374c)%2C%3CBR%20%2F%3EPLL_1443X_RATE(45158400U%2C%20241%2C%202%2C%206%2C%200xd845)%2C%3CBR%20%2F%3EPLL_1443X_RATE(40960000U%2C%20109%2C%201%2C%206%2C%200x3a07)%2C%3CBR%20%2F%3E%7D%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2016040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20How%20to%20get%20MCLK%20with%2011289600Hz%20on%20IMX8MP%20platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2016040%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eyou%20need%20add%20the%20clock%20in%20the%20table%20imx_pll1443x_tbl%2C%20currently%20the%20parent%20clock%20is%26nbsp%3B393216000U%2C%20so%20you%20only%20can%20get%26nbsp%3B%3CSTRONG%3E11234743%3C%2FSTRONG%3E%3CSPAN%3EHz%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.6.y%2Fdrivers%2Fclk%2Fimx%2Fclk-pll14xx.c%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.6.y%2Fdrivers%2Fclk%2Fimx%2Fclk-pll14xx.c%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E