drm/panel-edp: Add timings for BOE NV133WUM-N63
PATCH v2 1/1 drm/panel-edp: Add timings for BOE NV133WUM-N63
This panel is found on laptops e.g., variants of the Thinkpad X13s. Configuration was collected from the panel's EDID.
---
V2: renamed to "*_mode" since there is only 1 mode listed
drivers/gpu/drm/panel/panel-edp.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
drivers/gpu/drm/panel/panel-edp.c +27 -0
@@ -1204,6 +1204,29 @@ static const struct panel_desc boe_nv133fhm_n61 = { }, }; +static const struct drm_display_mode boe_nv133wum_n63_mode = { + .clock =157760 , + .hdisplay =1920 , + .hsync_start =1920 +48 , + .hsync_end =1920 +48 +32 , + .htotal =1920 +48 +32 +80 , + .vdisplay =1200 , + .vsync_start =1200 +3 , + .vsync_end =1200 +3 +6 , + .vtotal =1200 +3 +6 +31 , + .flags =DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_NVSYNC , +}; + +static const struct panel_desc boe_nv133wum_n63 = { + .modes = &boe_nv133wum_n63_mode, + .num_modes =1 , + .bpc =8 , + .size = { + .width =286 , + .height =179 , + }, +}; +static const struct drm_display_mode boe_nv140fhmn49_modes[] = { { .clock =148500 ,
@@ -1723,6 +1746,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv133fhm-n62", .data = &boe_nv133fhm_n61, + }, { + .compatible = "boe,nv133wum-n63", + .data = &boe_nv133wum_n63, }, { .compatible = "boe,nv140fhmn49", .data = &boe_nv140fhmn49,
@@ -1852,6 +1878,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x095f , &delay_200_500_e50,"NE135FBM-N41 v8.1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x098d , &boe_nv110wtm_n61.delay,"NV110WTM-N61" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x09dd , &delay_200_500_e50,"NT116WHM-N21" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ac5, &delay_200_500_e50, "NV116WHM-N4C"),
Signature · 1 line
2.40.1
Quoted 4 lines · Clayton Craft
This panel is found on laptops e.g., variants of the Thinkpad X13s. Configuration was collected from the panel's EDID.
Signed-off-by Clayton Craft <[email protected]>
LGTM
Thanks,
Jessica Zhang
Quoted 62 lines
---
V2: renamed to "
*_mode" since there is only 1 mode listeddrivers/gpu/drm/panel/panel-edp.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)drivers/gpu/drm/panel/panel-edp.c +27
-0@@ -1204,6 +1204,29 @@ static const struct panel_desc boe_nv133fhm_n61 = { }, }; +static const struct drm_display_mode boe_nv133wum_n63_mode = { + .clock =157760 , + .hdisplay =1920 , + .hsync_start =1920 +48 , + .hsync_end =1920 +48 +32 , + .htotal =1920 +48 +32 +80 , + .vdisplay =1200 , + .vsync_start =1200 +3 , + .vsync_end =1200 +3 +6 , + .vtotal =1200 +3 +6 +31 , + .flags =DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_NVSYNC , +}; + +static const struct panel_desc boe_nv133wum_n63 = { + .modes = &boe_nv133wum_n63_mode, + .num_modes =1 , + .bpc =8 , + .size = { + .width =286 , + .height =179 , + }, +}; +static const struct drm_display_mode boe_nv140fhmn49_modes[] = { { .clock =148500 ,@@ -1723,6 +1746,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv133fhm-n62", .data = &boe_nv133fhm_n61, + }, { + .compatible = "boe,nv133wum-n63", + .data = &boe_nv133wum_n63, }, { .compatible = "boe,nv140fhmn49", .data = &boe_nv140fhmn49,@@ -1852,6 +1878,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x095f , &delay_200_500_e50,"NE135FBM-N41 v8.1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x098d , &boe_nv110wtm_n61.delay,"NV110WTM-N61" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x09dd , &delay_200_500_e50,"NT116WHM-N21" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ac5, &delay_200_500_e50, "NV116WHM-N4C"),Signature · 1 line
2.40.1
Quoted 47 lines · Clayton Craft
This panel is found on laptops e.g., variants of the Thinkpad X13s. Configuration was collected from the panel's EDID.
Signed-off-by Clayton Craft <[email protected]>---
V2: renamed to "
*_mode" since there is only 1 mode listeddrivers/gpu/drm/panel/panel-edp.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)drivers/gpu/drm/panel/panel-edp.c +23
-0@@ -1204,6 +1204,29 @@ static const struct panel_desc boe_nv133fhm_n61 = { }, }; +static const struct drm_display_mode boe_nv133wum_n63_mode = { + .clock =157760 , + .hdisplay =1920 , + .hsync_start =1920 +48 , + .hsync_end =1920 +48 +32 , + .htotal =1920 +48 +32 +80 , + .vdisplay =1200 , + .vsync_start =1200 +3 , + .vsync_end =1200 +3 +6 , + .vtotal =1200 +3 +6 +31 , + .flags =DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_NVSYNC , +}; + +static const struct panel_desc boe_nv133wum_n63 = { + .modes = &boe_nv133wum_n63_mode, + .num_modes =1 , + .bpc =8 , + .size = { + .width =286 , + .height =179 , + }, +}; +static const struct drm_display_mode boe_nv140fhmn49_modes[] = { { .clock =148500 ,
drivers/gpu/drm/panel/panel-edp.c static const struct of_device_id platform_of_match[] = { · line 1751
Quoted 6 lines
drivers/gpu/drm/panel/panel-edp.c +3
-0@@ -1723,6 +1746,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv133fhm-n62", .data = &boe_nv133fhm_n61, + }, { + .compatible = "boe,nv133wum-n63", + .data = &boe_nv133wum_n63,
Just for my understanding. Why do you need to add panel mode and size? Isn't a delay (added below) enough for your case?
Quoted 14 lines
drivers/gpu/drm/panel/panel-edp.c +1
-1}, { .compatible = "boe,nv140fhmn49", .data = &boe_nv140fhmn49,@@ -1852,6 +1878,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x095f , &delay_200_500_e50,"NE135FBM-N41 v8.1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x098d , &boe_nv110wtm_n61.delay,"NV110WTM-N61" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x09dd , &delay_200_500_e50,"NT116WHM-N21" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ac5, &delay_200_500_e50, "NV116WHM-N4C"), --2.40.1
Signature · 2 lines
With best wishes Dmitry
PATCH v2 1/1 drm/panel-edp: Add entry for BOE NV133WUM-N63 panel
This panel is found on some laptops e.g., variants of the Thinkpad X13s.
--- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-edp.c +1 -0
@@ -2047,6 +2047,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0ac5 , &delay_200_500_e50,"NV116WHM-N4C" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0b34 , &delay_200_500_e80,"NV122WUM-N41" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),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" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0c20, &delay_200_500_e80, "NT140FHM-N47"),
Signature · 1 line
2.45.1
Re: [PATCH v2] drm/panel-edp: Add entry for BOE NV133WUM-N63 panel
Quoted 6 lines · Clayton Craft
This panel is found on some laptops e.g., variants of the Thinkpad X13s.
Signed-off-by Clayton Craft <[email protected]>--- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+)
Please don't send patches as a response to other mails and also please keep versioning consistent. This should have been v3.
Quoted 16 lines
drivers/gpu/drm/panel/panel-edp.c +1
-0@@ -2047,6 +2047,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0ac5 , &delay_200_500_e50,"NV116WHM-N4C" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0b34 , &delay_200_500_e80,"NV122WUM-N41" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),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" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0c20, &delay_200_500_e80, "NT140FHM-N47"),Signature · 1 line
2.45.1
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v2] drm/panel-edp: Add entry for BOE NV133WUM-N63 panel
Quoted 10 lines · On Tue, 21 May 2024 00:07:04 +0300 Dmitry Baryshkov…
Quoted 6 lines · Clayton Craft
This panel is found on some laptops e.g., variants of the Thinkpad X13s.
Signed-off-by Clayton Craft <[email protected]>--- drivers/gpu/drm/panel/panel-edp.c | 1 + 1 file changed, 1 insertion(+)Please don't send patches as a response to other mails and also please keep versioning consistent. This should have been v3.
Understood, and I'm sorry for the mistakes. I will resend it as V3.
-Clayton
Quoted 46 lines · Clayton Craft
This panel is found on laptops e.g., variants of the Thinkpad X13s. Configuration was collected from the panel's EDID.
Signed-off-by Clayton Craft <[email protected]>---
V2: renamed to "
*_mode" since there is only 1 mode listeddrivers/gpu/drm/panel/panel-edp.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)drivers/gpu/drm/panel/panel-edp.c +23
-0@@ -1204,6 +1204,29 @@ static const struct panel_desc boe_nv133fhm_n61 = { }, }; +static const struct drm_display_mode boe_nv133wum_n63_mode = { + .clock =157760 , + .hdisplay =1920 , + .hsync_start =1920 +48 , + .hsync_end =1920 +48 +32 , + .htotal =1920 +48 +32 +80 , + .vdisplay =1200 , + .vsync_start =1200 +3 , + .vsync_end =1200 +3 +6 , + .vtotal =1200 +3 +6 +31 , + .flags =DRM_MODE_FLAG_PHSYNC |DRM_MODE_FLAG_NVSYNC , +}; + +static const struct panel_desc boe_nv133wum_n63 = { + .modes = &boe_nv133wum_n63_mode, + .num_modes =1 , + .bpc =8 , + .size = { + .width =286 , + .height =179 , + }, +}; +static const struct drm_display_mode boe_nv140fhmn49_modes[] = { { .clock =148500 ,
drivers/gpu/drm/panel/panel-edp.c static const struct of_device_id platform_of_match[] = { · line 1751
Quoted 6 lines
drivers/gpu/drm/panel/panel-edp.c +3
-0@@ -1723,6 +1746,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "boe,nv133fhm-n62", .data = &boe_nv133fhm_n61, + }, { + .compatible = "boe,nv133wum-n63", + .data = &boe_nv133wum_n63,
Why do we need this entry? Is the default EDID correct?
Quoted 14 lines
drivers/gpu/drm/panel/panel-edp.c +1
-0}, { .compatible = "boe,nv140fhmn49", .data = &boe_nv140fhmn49,@@ -1852,6 +1878,7 @@ static const struct edp_panel_entry edp_panels[] = {EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x095f , &delay_200_500_e50,"NE135FBM-N41 v8.1" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x098d , &boe_nv110wtm_n61.delay,"NV110WTM-N61" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x09dd , &delay_200_500_e50,"NT116WHM-N21" ), +EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a1b , &delay_200_500_e50,"NV133WUM-N63" ),EDP_PANEL_ENTRY ('B' ,'O' ,'E' ,0x0a5d , &delay_200_500_e50,"NV116WHM-N45" ), EDP_PANEL_ENTRY('B', 'O', 'E', 0x0ac5, &delay_200_500_e50, "NV116WHM-N4C"),Signature · 1 line
2.40.1
Signature · 2 lines
With best wishes Dmitry