drm/panel-edp: Add BOE NE140QDM-NX2
PATCH 1/1 drm/panel-edp: Add BOE NE140QDM-NX2
Add timing for BOE NE140QDM-NX2.
edid-decode (hex):
00 ff ff ff ff ff ff 00 09 e5 f2 0a 00 00 00 00 20 1f 01 04 a5 1e 13 78 03 ee 96 a3 54 4c 99 26 0f 4e 51 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 60 d2 00 a0 a0 40 32 60 30 20 35 00 2e bd 10 00 00 18 c8 9d 00 a0 a0 40 32 60 30 20 35 00 2e bd 10 00 00 18 00 00 00 fd 00 30 78 c6 c6 36 01 0a 20 20 20 20 20 20 00 00 00 fe 00 4e 45 31 34 30 51 44 4d 2d 4e 58 32 20 01 f8
70 13 79 00 00 03 01 14 30 69 00 05 ff 09 9f 00 2f 00 1f 00 3f 06 31 00 02 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4d 90
---
drivers/gpu/drm/panel/panel-edp.c | 1 +
1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-edp.c +0 -0
@@ -2031,6 +2031,7 @@ static const struct edp_panel_entry edp_panels[] = {
EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ae8, &delay_200_500_e50_p2e80, "NV140WUM-N41"), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b09, &delay_200_500_e50_po2e200, "NV140FHM-NZ"), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b1e, &delay_200_500_e80, "NE140QDM-N6A"), + EDP_PANEL_ENTRY('B', 'O', 'E', 0x0af2, &delay_200_500_e80, "NE140QDM-NX2"), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b34, &delay_200_500_e80_d50, "NV122WUM-N41"), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b43, &delay_200_500_e200, "NV140FHM-T09"), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b56, &delay_200_500_e80, "NT140FHM-N47"),
Signature · 1 line
2.51.0
Doug Anderson
reviewerHi,
Quoted 42 lines · Weiji Wang
Add timing for BOE NE140QDM-NX2.
edid-decode (hex):
00 ff ff ff ff ff ff 00 09 e5 f2 0a 00 00 00 00 20 1f 01 04 a5 1e 13 78 03 ee 96 a3 54 4c 99 26 0f 4e 51 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 60 d2 00 a0 a0 40 32 60 30 20 35 00 2e bd 10 00 00 18 c8 9d 00 a0 a0 40 32 60 30 20 35 00 2e bd 10 00 00 18 00 00 00 fd 00 30 78 c6 c6 36 01 0a 20 20 20 20 20 20 00 00 00 fe 00 4e 45 31 34 30 51 44 4d 2d 4e 58 32 20 01 f8
70 13 79 00 00 03 01 14 30 69 00 05 ff 09 9f 00 2f 00 1f 00 3f 06 31 00 02 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4d 90
Signed-off-by Weiji Wang <[email protected]>--- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/panel/panel-edp.c +1
-0@@ -2031,6 +2031,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0ae8 , &delay_200_500_e50_p2e80,"NV140WUM-N41" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0b09 , &delay_200_500_e50_po2e200,"NV140FHM-NZ" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0b1e , &delay_200_500_e80,"NE140QDM-N6A" ), + EDP_PANEL_ENTRY('B', 'O', 'E', 0x0af2, &delay_200_500_e80,"NE140QDM-NX2"),
Quoted 2 lines
EDP_PANEL_ENTRY('B', 'O', 'E', 0x0b34, &delay_200_500_e80_d50,"NV122WUM-N41"),
This is not sorted properly. 0x0af2 does not belong between 0x0b1e and 0x0b34.
...I could fix that when applying, but I also have a question: do you have access to the datasheet of this panel, or are you just guessing the right timing by looking at the nearby panels? I assume you have this panel yourself for testing and confirm it seems to work OK.
It's fine if you don't have the datasheet and are making guesses, since acquiring the datasheet is really hard for end-users. ...but in that case, I like to at least document that fact in the commit message so if someone later comes along and proposes different timings (and they have the datasheet) then we can figure out how to proceed. :-)
-Doug
Hi there,
Quoted 6 lines · Doug Anderson
This is not sorted properly.
0x0af2does not belong between0x0b1eand0x0b34....I could fix that when applying, but I also have a question: do you have access to the datasheet of this panel, or are you just guessing the right timing by looking at the nearby panels? I assume you have this panel yourself for testing and confirm it seems to work OK.
The datasheet is taken from Panelook. I have to mention that enable delay is not directly available in the datasheet, only (T4+T5+T6+T8)-min is given.
I'm not really familiar with eDP panels, so I'm not sure if using 'prepare_to_enable' instead of 'enable' will break anything on devices without HPD enabled. However, appearently (T4+T5+T6+T8)-min is greater than (T6-min + max(T7-max, T8-min)), so I believe that setting 'enable' to (T4+T5+T6+T8)-min is conservative enough.
Is it proper to switch to 'delay_200_500_p2e80' (use 'prepare_to_enable' instead)? If so, I would change it and also the panel entry sorting.
Doug Anderson
reviewerHi,
Quoted 17 lines · Weiji Wang
Hi there,
Quoted 6 lines · Doug Anderson
This is not sorted properly.
0x0af2does not belong between0x0b1eand0x0b34....I could fix that when applying, but I also have a question: do you have access to the datasheet of this panel, or are you just guessing the right timing by looking at the nearby panels? I assume you have this panel yourself for testing and confirm it seems to work OK.
The datasheet is taken from Panelook. I have to mention that enable delay is not directly available in the datasheet, only (T4+T5+T6+T8)-min is given.
Quoted 8 lines
I'm not really familiar with eDP panels, so I'm not sure if using '
prepare_to_enable' instead of 'enable' will break anything on devices without HPD enabled. However, appearently (T4+T5+T6+T8)-min is greater than (T6-min +max(T7-max, T8-min)), so I believe that setting 'enable' to (T4+T5+T6+T8)-min is conservative enough.Is it proper to switch to '
delay_200_500_p2e80' (use 'prepare_to_enable' instead)? If so, I would change it and also the panel entry sorting.
Right that using the "enable" delay is more conservative, but it does sound as if "prepare_to_enable" is more correct in this case if you are provided "(T4+T5+T6+T8)-min".
I re-looked at the one panel using "delay_200_500_p2e80" (NV116WHM-T01), since I still have access to that datasheet. There, I see:
T4+T5+T6+T8 > 80ms
0ms < T7 <= 50ms
50ms < T8
In other words, T7-max is 50 and T8-min is 50.
Based on that, I believe it would be more correct for this panel to use "delay_200_500_e50_p2e80". I'll try to send a patch for that, which would get rid of the need for "delay_200_500_p2e80".
Does that match your panel, too?
-Doug
Hi,
Quoted 14 lines · Doug Anderson
Right that using the "enable" delay is more conservative, but it does sound as if "
prepare_to_enable" is more correct in this case if you are provided "(T4+T5+T6+T8)-min".I re-looked at the one panel using "
delay_200_500_p2e80" (NV116WHM-T01), since I still have access to that datasheet. There, I see:T4+T5+T6+T8 > 80ms
0ms < T7 <= 50ms
50ms < T8In other words, T7-max is 50 and T8-min is 50.
Quoted 7 lines
Based on that, I believe it would be more correct for this panel to use "
delay_200_500_e50_p2e80". I'll try to send a patch for that, which would get rid of the need for "delay_200_500_p2e80".Does that match your panel, too?
-Doug
Yes, the constraints of T4+T5+T6+T8, T7 and T8 is exactly same as mine. However, my copy of datasheet did not mention min/max value of T6, and it feels like assuming T6-min=0 if setting 'enable' to 50ms, or max(T7-max, T8-min). Is that proper?
Sorry to inconvenience you due to my inexperience in LCD panels.
Doug Anderson
reviewerHi,
Quoted 25 lines · Weiji Wang
Hi,
Quoted 20 lines · Doug Anderson
Right that using the "enable" delay is more conservative, but it does sound as if "
prepare_to_enable" is more correct in this case if you are provided "(T4+T5+T6+T8)-min".I re-looked at the one panel using "
delay_200_500_p2e80" (NV116WHM-T01), since I still have access to that datasheet. There, I see:T4+T5+T6+T8 > 80ms
0ms < T7 <= 50ms
50ms < T8In other words, T7-max is 50 and T8-min is 50.
Based on that, I believe it would be more correct for this panel to use "
delay_200_500_e50_p2e80". I'll try to send a patch for that, which would get rid of the need for "delay_200_500_p2e80".Does that match your panel, too?
Quoted 7 lines
Quoted 1 line
-Doug
Yes, the constraints of T4+T5+T6+T8, T7 and T8 is exactly same as mine. However, my copy of datasheet did not mention min/max value of T6, and it feels like assuming T6-min=0 if setting 'enable' to 50ms, or
max(T7-max, T8-min). Is that proper?
If it doesn't mention T6-min, then the assumption is that the panel has no constraints on T6. Thus, T6-min would be 0.
Quoted 1 line
Sorry to inconvenience you due to my inexperience in LCD panels.
No worries. This stuff is pretty arcane.
-Doug
Hi,
Quoted 2 lines · Doug Anderson
If it doesn't mention T6-min, then the assumption is that the panel has no constraints on T6. Thus, T6-min would be 0.
Many thanks for your help. Verified this change on 'next-20260726' and will file a patch v2 for it.