imx8mp HDMI custom resolution

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

imx8mp HDMI custom resolution

Jump to solution
1,546 Views
WillisMao
Contributor I

Hi all, i want the 1024*768 resolution for HDMI. According other reply, maybe you should give me the 1024*768 HDMI PLL in samsung_phy_pll_cfg. Thank you.

0 Kudos
Reply
1 Solution
1,482 Views
joanxie
NXP TechSupport
NXP TechSupport

try the patch as below

--- a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
+++ b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
@@ -324,6 +324,15 @@ const struct phy_config samsung_phy_pll_cfg[] = {
0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
},
+ }, {
+ 65000000, {
+ 0x00, 0xD1, 0x51, 0x58, 0x8D, 0x04, 0x9A, 0x57,
+ 0x4F, 0x30, 0x33, 0x65, 0x10, 0xBE, 0x24, 0x80,
+ 0x6C, 0xF2, 0x67, 0x00, 0x10, 0x85, 0x30, 0x3A,
+ 0x74, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
+ 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
+ },
}, {
67500000, {
0x00, 0xD1, 0x54, 0x52, 0x87, 0x03, 0x80, 0x40,
--

View solution in original post

4 Replies
1,536 Views
joanxie
NXP TechSupport
NXP TechSupport

what pixel clock of your hdmi need?

0 Kudos
Reply
1,509 Views
WillisMao
Contributor I

65000000, thank you. Additionally, how to calculate these base numbers? If you could tell me.

0 Kudos
Reply
1,483 Views
joanxie
NXP TechSupport
NXP TechSupport

try the patch as below

--- a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
+++ b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
@@ -324,6 +324,15 @@ const struct phy_config samsung_phy_pll_cfg[] = {
0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
},
+ }, {
+ 65000000, {
+ 0x00, 0xD1, 0x51, 0x58, 0x8D, 0x04, 0x9A, 0x57,
+ 0x4F, 0x30, 0x33, 0x65, 0x10, 0xBE, 0x24, 0x80,
+ 0x6C, 0xF2, 0x67, 0x00, 0x10, 0x85, 0x30, 0x3A,
+ 0x74, 0x8F, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00,
+ 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0xE0, 0x83, 0x0F, 0x3E, 0xF8, 0x00, 0x00,
+ },
}, {
67500000, {
0x00, 0xD1, 0x54, 0x52, 0x87, 0x03, 0x80, 0x40,
--

1,472 Views
WillisMao
Contributor I

Great, work well. Thank you.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2025664%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx8mp%20HDMI%20custom%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2025664%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%20i%20want%20the%201024*768%20resolution%26nbsp%3Bfor%20HDMI.%20According%20other%20reply%2C%20maybe%20you%20should%20give%20me%20the%201024*768%20HDMI%20PLL%20in%20samsung_phy_pll_cfg.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2025664%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8mp%20HDMI%20custom%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EGreat%2C%20work%20well.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026451%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8mp%20HDMI%20custom%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026451%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Etry%20the%20patch%20as%20below%3C%2FP%3E%0A%3CP%3E---%20a%2Fdrivers%2Fphy%2Ffreescale%2Fphy-fsl-samsung-hdmi.c%3CBR%20%2F%3E%2B%2B%2B%20b%2Fdrivers%2Fphy%2Ffreescale%2Fphy-fsl-samsung-hdmi.c%3CBR%20%2F%3E%40%40%20-324%2C6%20%2B324%2C15%20%40%40%20const%20struct%20phy_config%20samsung_phy_pll_cfg%5B%5D%20%3D%20%7B%3CBR%20%2F%3E0x00%2C%200x80%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%3CBR%20%2F%3E0x00%2C%200xE0%2C%200x83%2C%200x0F%2C%200x3E%2C%200xF8%2C%200x00%2C%200x00%2C%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%2B%20%7D%2C%20%7B%3CBR%20%2F%3E%2B%2065000000%2C%20%7B%3CBR%20%2F%3E%2B%200x00%2C%200xD1%2C%200x51%2C%200x58%2C%200x8D%2C%200x04%2C%200x9A%2C%200x57%2C%3CBR%20%2F%3E%2B%200x4F%2C%200x30%2C%200x33%2C%200x65%2C%200x10%2C%200xBE%2C%200x24%2C%200x80%2C%3CBR%20%2F%3E%2B%200x6C%2C%200xF2%2C%200x67%2C%200x00%2C%200x10%2C%200x85%2C%200x30%2C%200x3A%2C%3CBR%20%2F%3E%2B%200x74%2C%200x8F%2C%200x00%2C%200x00%2C%200x08%2C%200x00%2C%200x00%2C%200x00%2C%3CBR%20%2F%3E%2B%200x00%2C%200x80%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%200x00%2C%3CBR%20%2F%3E%2B%200x00%2C%200xE0%2C%200x83%2C%200x0F%2C%200x3E%2C%200xF8%2C%200x00%2C%200x00%2C%3CBR%20%2F%3E%2B%20%7D%2C%3CBR%20%2F%3E%7D%2C%20%7B%3CBR%20%2F%3E67500000%2C%20%7B%3CBR%20%2F%3E0x00%2C%200xD1%2C%200x54%2C%200x52%2C%200x87%2C%200x03%2C%200x80%2C%200x40%2C%3CBR%20%2F%3E--%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8mp%20HDMI%20custom%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E65000000%2C%20thank%20you.%20Additionally%2C%20how%20to%20calculate%20these%20base%20numbers%3F%20If%20you%20could%20tell%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2025715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20imx8mp%20HDMI%20custom%20resolution%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2025715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ewhat%20pixel%20clock%20of%20your%20hdmi%20need%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E