Custom 720p/120hz display on Odroid N2.

Post Reply
IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Sat Nov 02, 2019 4:27 am

I posted a message the other day in the Android forum about supporting a a 720p/120hz display. I've since been able to test the display using Android and it works; mostly...

One issue I am running into is that the display driver has issues if its incorrectly initialized to anything other than 720p/120hz. If I power on the display after Android has booted, using a "custombuilt" modeline in boot.ini, it display properly. However, the display is connected during the initial u-boot startup, it attempts to initialize the display to 1080p/60hz.

I've dug into the u-boot code, and am looking at a few of the display parameters, adding the custom timing to hdmi_parameters.c but it looks like there are other timing values elsewhere in the u-boot code, specifically around hdmitx_tvenc.c, with an entirely new set of timing values, with a number of parameters I don't understand.

I ran across this post : viewtopic.php?t=25579#p178064 that was also trying to get a custom mode to work; but still couldn't make sense of the values, etc.

Is anyone familiar with these portions of the code that could help me understand what I'm trying to accomplish?

Thanks!

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Sat Nov 02, 2019 4:47 am

Specifically, I've added the following entry to hdmi_parameters.c:

Code: Select all

static struct hdmi_format_para fmt_para_LumusOE50_720p120_16x9 = {
	.vic = HDMI_1280x720p120_64x27,
	.name = "Lumus_OE50_1280x720p120hz",
	.sname = "lumus720p120hz",
	.pixel_repetition_factor = 0,
	.progress_mode = 1,
	.scrambler_en = 0,
	.tmds_clk_div40 = 0,
	.tmds_clk = 130610,
	.timing = {
		.pixel_freq = 130610,
		.h_freq = 94920,
		.v_freq = 120000,
		.vsync_polarity = 0,
		.hsync_polarity = 0,
		.h_active = 1280,
		.h_total = 1376,

		.h_blank = 96,
		.h_front = 24,
		.h_sync = 12,
		.h_back = 60,

		.v_active = 720,
		.v_total = 791,
		.v_blank = 71,
		.v_front = 8,
		.v_sync = 6,
		.v_back = 57,
		.v_sync_ln = 1,
	},
};
The specific VIC is chosen because this is the VIC that is returned from the displays EDID information. This entry is added to the all_fmt_paras[] array, and then I define "lumus720p120hz" as my preferred display. However, when I boot my new image, it still fails, and I can see in the u-boot console, that showlogo is still trying to initialize VIC 16 (1080p30).

If I try and configure the mode directly using hdmitx output lumus720p120hz I get the following output:

Code: Select all

hdmitx output lumus720p120hz
set hdmitx VIC = 71
Not find VIC = 71 for hpll setting
hdmitx phy setting done
hdmitx: not find VIC: 71
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
It recognizes that the new type, and its associated VIC, but hdmitx doesn't use its timings, instead it lookups a new set of timings from hdmitx_tvenc.c, but I don't understand what values go there.

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Sat Nov 02, 2019 5:54 am

Alternatively, is it possible to disable the configuration of the display via u-boot? Ie, don't make any u-boot calls that would configure the output of the display driver, and just defer to the serial port for console, etc?

User avatar
rooted
Posts: 6773
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 219 times
Been thanked: 41 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by rooted » Sat Nov 02, 2019 3:43 pm

Hardkernel doesn't work on the weekends but someone will be along to help in a day or two.

Just bump the thread on Sunday.

User avatar
mad_ady
Posts: 6789
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 216 times
Been thanked: 165 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by mad_ady » Sat Nov 02, 2019 6:08 pm

As far as I know (and I don't know much on the subject) uboot doesn't try to set the resolution. It only parses boot.ini and passes video settings to the kernel (visible in /proc/cmdline), but the kernel does most of the video initialization.
u-boot may initialize some low level hdmi stuff, I don't know...

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Mon Nov 04, 2019 12:43 am

Thanks for the bumps, guys. @mad_ady, you are right, that it does query the display parameters and passes this info to the kernel, but digging through the u-boot code, and also watching the display, u-boot is definitely handling the display of the HARDKERNEL logo, which configures the display for 1080p/30 before rendering the bitmap. After this is done, then it launches the OS kernel.

User avatar
mad_ady
Posts: 6789
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 216 times
Been thanked: 165 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by mad_ady » Mon Nov 04, 2019 1:35 am

Right, I forgot about the boot logo...

User avatar
odroid
Site Admin
Posts: 32519
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 184 times
Been thanked: 349 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by odroid » Mon Nov 04, 2019 10:00 am

Is there no problem once you boot the Kernel for 720p/120Hz HDMI output?

BTW, can you please tell me what you are going to make with 120Hz refresh rate?

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Tue Nov 05, 2019 3:57 am

@Odroid, thanks for the reply. Yes, the display works correctly once the kernel is loaded with our custombuilt modeline, after re-initializing/power-cycling the display:
setenv modeline "1280,720,130610,94920,120,1280,1304,1316,1376,720,728,734,791,0,0,1"

If the display is powered on after the HK logo is displayed, it works the first time, otherwise we have to power-cycle the display.

At a minimum, if we can disable the display initialization during U-Boot, and not display the logo, that would work. Ideally, we'd like to keep the logo (and replace it with our own), but we need U-Boot to support this custom mode.

As for the project, we are building a wearable computer, with a head-worn display (not A/R, no IMU, etc), that will provide "first responders" (paramedics, fire-fighters, search and rescue, etc) critical information, and communications on a light-weight display. Imagine a doctor being able to remotely communicate with a paramedic en-route to the hospital, while viewing information about the patient, and being able to provide life-saving support. We are preparing for a demo next week, and this is one of our last, big hurdles. Certainly any help that could be provided would be amazing!

Thanks!
These users thanked the author IrishHayZeus for the post (total 3):
rooted (Tue Nov 05, 2019 4:02 am) • mad_ady (Tue Nov 05, 2019 4:55 am) • odroid (Tue Nov 05, 2019 9:25 am)

User avatar
mad_ady
Posts: 6789
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 216 times
Been thanked: 165 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by mad_ady » Tue Nov 05, 2019 4:56 am

What an interesting project! Would love to read more about it in Odroid Magazine

User avatar
odroid
Site Admin
Posts: 32519
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 184 times
Been thanked: 349 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by odroid » Tue Nov 05, 2019 9:30 am

We will try to find which portion of the u-boot source should be modified.

Meanwhile, try to learn how to build and install custom u-boot.
https://wiki.odroid.com/odroid-n2/softw ... ing_u-boot

User avatar
tobetter
Posts: 4123
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 48 times
Been thanked: 213 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by tobetter » Tue Nov 05, 2019 12:25 pm

@IrishHayZeus, please review the code for the command showlogo which displays log with BMP format. You may need to add your custom resolution as well, I guess. You must be able to run the command showlogo with given resolution.
https://github.com/hardkernel/u-boot/bl ... showlogo.c

I know the code is dirty... :)

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Tue Nov 05, 2019 1:20 pm

IrishHayZeus wrote:
Tue Nov 05, 2019 3:57 am
@Odroid, thanks for the reply. Yes, the display works correctly once the kernel is loaded with our custombuilt modeline, after re-initializing/power-cycling the display:
setenv modeline "1280,720,130610,94920,120,1280,1304,1316,1376,720,728,734,791,0,0,1"
Hi IrishHayZeus,
Your project looks awesome!

To support the timing on u-boot, I think some drivers of hdmi tx enc block, hpll generation and osd block should be adjusted.
Please let me check related drivers and make a u-boot driver patch to support it for you.

To make sure....
This timing parameter works correctly with your display of 720p120Hz, right?

Code: Select all

setenv modeline "1280,720,130610,94920,120,1280,1304,1316,1376,720,728,734,791,0,0,1"

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Wed Nov 06, 2019 2:50 am

@tobetter Thanks for the pointer. If you refer these lines from showlogo.c:

Code: Select all

	/* for video_hw_init in osd_fb.c */
	setenv("fb_addr", "0x3d800000");
	setenv("display_bpp", "24");
	setenv("display_color_index", "24");
	setenv("display_layer", "osd1");
	setenv("display_color_fg", "0xffff");
	setenv("display_color_bg", "0");
	setenv("cvbsmode", "576cvbs");
	setenv("hdmimode", mode);
	setenv("outputmode", mode);

	/* bmp scale */
	setenv("fb_width", bmp_width);
	setenv("fb_height", bmp_height);

	run_command("osd open; osd clear", 0);
	run_command("vout output ${outputmode}; hdmitx output ${outputmode}", 0);
	run_command("bmp display ${bootlogo_addr}", 0);
	run_command("bmp scale", 0);
Specifically, this one:

run_command("vout output ${outputmode}; hdmitx output ${outputmode}", 0);

You can see, that the display is configure using the hdmitx output command. This command calls the hdmitx system, and uses timings provided by hdmitx_tvenc.c, rather than those defined in hdmi_parameters.c. Unfortunately, this is where I'm lost.

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Wed Nov 06, 2019 2:54 am

@odroid, @joy, Thanks guys for your help. I am familiar with building and installing custom U-boot.

To clarify my issue, u-boot, and specifically showlogo appear to be using timings pulled from hdmitx_tvenv.c (based on the VIC value, pulled from EDID, or from another matching entry from hdmi_parameters.c). However, I can't seem to understand how to translate my custom timings to those necessary for this file, which include a lot of additional parameters:

Code: Select all

static const struct reg_t tvregs_720_120hzp[] = {
        {P_VENC_DVI_SETTING, 0x2029},      // ??
        {P_ENCP_VIDEO_MODE, 0x4040},       // ??
        {P_ENCP_VIDEO_MODE_ADV, 0x0019},   // ??
        {P_ENCP_VIDEO_YFP1_HTIME, 648},    // ??
        {P_ENCP_VIDEO_YFP2_HTIME, 3207},   // ??
        {P_ENCP_VIDEO_MAX_PXCNT, 3299},    // Max Pixel Count?  Pixel Clock?
        {P_ENCP_VIDEO_HSPULS_BEGIN, 80},   // Start of the Horizontal pulse.. 
        {P_ENCP_VIDEO_HSPULS_END, 240},    // End of the horizontal pulse..
        {P_ENCP_VIDEO_HSPULS_SWITCH, 80},  // ??
        {P_ENCP_VIDEO_VSPULS_BEGIN, 688},  // Start of the Vertical pulse...
        {P_ENCP_VIDEO_VSPULS_END, 3248},   // End of the Vertical pulse...
        {P_ENCP_VIDEO_VSPULS_BLINE, 4},    // ??
        {P_ENCP_VIDEO_VSPULS_ELINE, 8},    // ?? 
        {P_ENCP_VIDEO_HAVON_BEGIN, 648},   // ??
        {P_ENCP_VIDEO_HAVON_END, 3207},    // ??
        {P_ENCP_VIDEO_VAVON_BLINE, 29},    // ??
        {P_ENCP_VIDEO_VAVON_ELINE, 748},   // ??
        {P_ENCP_VIDEO_HSO_BEGIN, 256},     // ??
        {P_ENCP_VIDEO_HSO_END, 168},       // ??
        {P_ENCP_VIDEO_VSO_BEGIN, 168},     // ??
        {P_ENCP_VIDEO_VSO_END, 256},       // ??
        {P_ENCP_VIDEO_VSO_BLINE, 0},       // ??
        {P_ENCP_VIDEO_VSO_ELINE, 5},       // ??
        {P_ENCP_VIDEO_MAX_LNCNT, 749},     // ??  Max Lines?
        {P_VPU_VIU_VENC_MUX_CTRL, 0xA},    // ??
        {P_ENCP_VIDEO_EN, 1},              // Supports Progressive video?
        {P_ENCI_VIDEO_EN, 0},              // Supports Interlaced video?

        {MREG_END_MARKER, 0},
};
I've done a lot of searching the web, but haven't been able to find any more detailed documentation about what the values are, or are they translate. It appears to be proprietary to the Amlogic driver.

If it helps, I can provide the documentation for the display driver (LCOS Himax HX7028ETIFB),

Thanks again! Once we have it working, and I've got a few minutes to spare, I'll post up a few photos.
These users thanked the author IrishHayZeus for the post (total 2):
rooted (Wed Nov 06, 2019 7:58 am) • joy (Wed Nov 06, 2019 8:35 am)

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Wed Nov 06, 2019 9:12 am

Hi IrishHayZeus,
Right. There is just little information about display parameters of AMLogic display drivers. :(

I've added some descriptions in your code as far as I know.
And other ones, I need to check them based on u-boot drivers and related materials.
Once I find more information about this, I will share it soon.

The notation that I use in the code is as following.

Code: Select all

https://en.wikipedia.org/wiki/XFree86_Modeline
Modeline syntax: pclk, /  hdisp, hsyncstart, hsyncend, htotal,  /   vdisp, vsyncstart, vsyncend, vtotal
                           130610,  / 1280,1304,1316,1376,  /  720,728,734,791

Code: Select all

hactive = hdisp
htotal = htotal
hblank = htotal - hactive
hfront = hsyncstart - hactive
hsync = hsyncend - hsyncstart
hback = hblank - (hfront + hsync)

Code: Select all

vactive = vdisp
vtotal = vtotal
vblank = vtotal - vactive
vfront = vsyncstart - vactive
vsync = vsyncend - vsyncstart
vback = vblank - (vfront + vsync)
IrishHayZeus wrote:
Wed Nov 06, 2019 2:54 am

Code: Select all

static const struct reg_t tvregs_720_120hzp[] = {
        {P_VENC_DVI_SETTING, 0x2029},      // ??
        {P_ENCP_VIDEO_MODE, 0x4040},       // ??
        {P_ENCP_VIDEO_MODE_ADV, 0x0019},   // ??
        {P_ENCP_VIDEO_YFP1_HTIME, 648},    // ??
        {P_ENCP_VIDEO_YFP2_HTIME, 3207},   // ??
        {P_ENCP_VIDEO_MAX_PXCNT, 3299},    // JOY -> htotal ( or htotal - 1 )
        {P_ENCP_VIDEO_HSPULS_BEGIN, 80},   // Start of the Horizontal pulse.. 
        {P_ENCP_VIDEO_HSPULS_END, 240},    // End of the horizontal pulse..
        {P_ENCP_VIDEO_HSPULS_SWITCH, 80},  // ??
        {P_ENCP_VIDEO_VSPULS_BEGIN, 688},  // Start of the Vertical pulse...
        {P_ENCP_VIDEO_VSPULS_END, 3248},   // End of the Vertical pulse...
        {P_ENCP_VIDEO_VSPULS_BLINE, 4},    // ??
        {P_ENCP_VIDEO_VSPULS_ELINE, 8},    // ?? 
        {P_ENCP_VIDEO_HAVON_BEGIN, 648},   // JOY ->> hback ( = hblank - (hfront + hsync))
        {P_ENCP_VIDEO_HAVON_END, 3207},    // JOY ->> (hback + hactive) - 1
        {P_ENCP_VIDEO_VAVON_BLINE, 29},    // JOY ->> vback ( = vblank - (vfront + vsync) )
        {P_ENCP_VIDEO_VAVON_ELINE, 748},   // JOY ->> (vback + vactive) - 1
        {P_ENCP_VIDEO_HSO_BEGIN, 256},     // ??
        {P_ENCP_VIDEO_HSO_END, 168},       // JOY ->> hsync ( = hsyncend - hsyncstart )
        {P_ENCP_VIDEO_VSO_BEGIN, 168},     // ??
        {P_ENCP_VIDEO_VSO_END, 256},       // ??
        {P_ENCP_VIDEO_VSO_BLINE, 0},       // JOY ->> '0' ( start point of vertical line )
        {P_ENCP_VIDEO_VSO_ELINE, 5},       // JOY ->> vsync ( = vsyncend - vsyncstart )
        {P_ENCP_VIDEO_MAX_LNCNT, 749},     // JOY ->> vtotal  ( or vtotal - 1 )
        {P_VPU_VIU_VENC_MUX_CTRL, 0xA},    // ??
        {P_ENCP_VIDEO_EN, 1},              // Supports Progressive video?
        {P_ENCI_VIDEO_EN, 0},              // Supports Interlaced video?

        {MREG_END_MARKER, 0},
};
IrishHayZeus wrote:
Wed Nov 06, 2019 2:54 am
If it helps, I can provide the documentation for the display driver (LCOS Himax HX7028ETIFB),
Yes, please. It must be pretty helpful if you need my and another users' support.
IrishHayZeus wrote:
Wed Nov 06, 2019 2:54 am
Once we have it working, and I've got a few minutes to spare, I'll post up a few photos.
I think you have much knowledge about display and hdmi drivers of u-boot and kernel.
I look forward to it!!! :)

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Fri Nov 08, 2019 4:33 am

Not sure what happened to my last response.. I bet I clicked "Post Reply" rather than "Submit"... That's happened more than once!

@Joy, I followed up with a PM with the datasheet for the Himax adapter. I'l look into the parameters that you commented, and see if I can get something working. Here is hoping you can find some information on the other values.

I did end up removing the hdmitx output <mode> command from showlogo.c, so the logo isn't being display. Unfortunately, it seems there is still some default initialization happening. I think we're going to try and work around this by having u-boot turn HI an "enable" pin on the GPIO, which will power on the display just before Android boots, but I'm still holding out hope that I can get u-boot to setup the display correctly here instead.

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Fri Nov 08, 2019 4:19 pm

IrishHayZeus wrote:
Fri Nov 08, 2019 4:33 am
I did end up removing the hdmitx output <mode> command from showlogo.c, so the logo isn't being display. Unfortunately, it seems there is still some default initialization happening. I think we're going to try and work around this by having u-boot turn HI an "enable" pin on the GPIO, which will power on the display just before Android boots, but I'm still holding out hope that I can get u-boot to setup the display correctly here instead.
Hi IrishHayZeus,

If you need to check if HDMI edid signal works normally and power to the monitor is OK on u-boot, please use this command.

Code: Select all

# hdmitx edid
Then, you will get edid information of your monitor.
If you don't get proper log, share the log here.

And thank you for sharing datasheet, I got your PM.
Let's check which drivers' points should be adjusted to run 720p120Hz. :)

( P.S....
And could you give me a couple of days more? ;)
I'm at a hospital now since Wednesday night and maybe I will be back to my office tomorrow. )

User avatar
mad_ady
Posts: 6789
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 216 times
Been thanked: 165 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by mad_ady » Fri Nov 08, 2019 5:42 pm

Get well soon, joy!
Hospitals suck :(

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Sat Nov 09, 2019 11:16 am

Yeah, I'm sorry to hear your not well, @Joy. Don't sweat it, if you can manage, cool.. But its nothing that's more important than anyone good health!

@Joy hdmitx edid works, and reports the correct VIC modes. Part of the problem, is that the "frequency range" in the EDID info reports that its valid from like 24hz - 120hz, when in fact the only modes that are actually supported is 120hz. But, most devices don't read the min/max rates, they just look at the VIC modes.

--Kyle

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Sat Nov 09, 2019 5:00 pm

@mad_ady, @Kyle,
Thank you! I get comforted from your warm words!!!
Many brilliant members and interesting projects here in ODROID forum make me pluck up my courage
and that's the reason why I love this forum.

@Kyle,
I've checked the datasheet and timing parameters of your monitor,
and made uboot patches to run 1280x720p120hz with its timing.

Code: Select all

Detailed mode : Clock 130.61 MHz, hsync 94.920kHz, vsync 120Hz
               1280  1304  1316  1376 hborder 0
               720  728  734  791 vborder 0
               -hsync -vsync 
I attached a zip file and it includes two patch files.
1. 0001_n2_uboot_Add_himax_1280x720p120hz.diff
2. 0002_n2_uboot_Add_hx720p120hz_showlogo.diff

Still, I need to check some points like following points, but I think now I need to confirm a basic operation of 720p120Hz with my patches.
1. fine-tuning of hpll generation for pixel clock 130.61MHz and hpll 2.6122 Gbps
2. confirm registers' value of ENCP_VIDEO_***

Unfortunately, I don't have a proper monitor to test 120Hz,
so, could you check if 720p120Hz works with the attached patches on your monitor?

To test it, please use mode name "hx720p120hz" and these instructions.

Code: Select all

# setenv outputmode hx720p120hz

# showlogo hx720p120hz
The name, "hx720p120hz" is just a temporary one to distinguish from existing 720p120hz definition in u-boot.

I will keep checking to clarify the aforementioned points and share the status.
Attachments
N2_uboot_720p120hz_patches_20191109.zip
(3.06 KiB) Downloaded 12 times
These users thanked the author joy for the post:
rooted (Tue Nov 12, 2019 3:26 am)

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Mon Nov 11, 2019 4:59 pm

@Kyle,

Here is some more information about tv enc registers in hdmi drivers.

In S922X datasheet, there is no description about VPU IP block
but, I found that register description of S905 VPU IP is almost similar with S922X's one.
Surely, there is a big gap of video and display specification between S905 and S922x and their IP must be different.
Just, I guess their VPU IPs may be variation version from same branch for some functionalities.

You can refer to more descriptions in S905 public datasheet here.
https://dn.odroid.com/S905/DataSheet/S9 ... V1.1.4.pdf
vpu_registers.png
vpu_registers.png (214.82 KiB) Viewed 179 times
These users thanked the author joy for the post:
rooted (Tue Nov 12, 2019 3:26 am)

IrishHayZeus
Posts: 18
Joined: Tue Oct 22, 2019 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 9 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by IrishHayZeus » Thu Nov 14, 2019 2:53 am

@Joy
You're a rockstar! Sorry for my late reply. I've been burried under 14hr work days through the weekend, and am now getting a chance to check my emails, etc. I will attempt to apply the patch today, and let you know the status.

joy
Posts: 899
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X
Has thanked: 15 times
Been thanked: 51 times
Contact:

Re: Custom 720p/120hz display on Odroid N2.

Unread post by joy » Fri Nov 15, 2019 12:46 pm

IrishHayZeus wrote:
Thu Nov 14, 2019 2:53 am
@Joy
You're a rockstar! Sorry for my late reply. I've been burried under 14hr work days through the weekend, and am now getting a chance to check my emails, etc. I will attempt to apply the patch today, and let you know the status.
Hi Kyle,
14hr work days!!! :o You're passionately working! Cool!
But, do NOT forget to take care of your health.

And for this thread, take your time.
On kernel, some use cases show that 120hz works,
viewtopic.php?f=176&t=36075&p=266221&hi ... hz#p265598
but I haven't tried it on u-boot stage.
So when you're available, please check its operation with your monitor. ;)
Thanks!

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 8 guests