Add HannStar HSD156JUW2 panel support
Subsystems (4)
cover Add HannStar HSD156JUW2 panel support
The HannStar HSD156JUW2 panel is a 15.6" FHD (1920x1080) LCD-TFT LVDS panel. Add a binding and a panel entry under panel-simple.c.
Renjun Wang (2):
dt-bindings: display: simple: Add HannStar HSD156JUW2 drm/panel: simple: Add HannStar HSD156JUW2
.../bindings/display/panel/panel-simple.yaml | 2 ++ drivers/gpu/drm/panel/panel-simple.c | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+)
base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449
Signature · 1 line
2.39.5
PATCH RESEND 1/2 dt-bindings: display: simple: Add HannStar HSD156JUW2
Add the HannStar HSD156JUW2 15.6" FHD (1920x1080) TFT LCD panel to the panel-simple compatible list.
--- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
@@ -154,6 +154,8 @@ properties: - hannstar,hsd070pww1 # HannStar Display Corp. HSD100PXN1 10.1" XGA LVDS panel - hannstar,hsd100pxn1 + # HannStar Display Corp. HSD156JUW2 15.6" FHD (1920x1080) TFT LCD panel + - hannstar,hsd156juw2 # Hitachi Ltd. Corporation 9" WVGA (800x480) TFT LCD panel - hit,tx23d38vm0caa # Innolux AT043TN24 4.3" WQVGA TFT LCD panel
Signature · 1 line
2.39.5
Re: [PATCH RESEND 1/2] dt-bindings: display: simple: Add HannStar HSD156JUW2
Quoted 8 lines · Renjun Wang
Add the HannStar HSD156JUW2 15.6" FHD (1920x1080) TFT LCD panel to the panel-simple compatible list.
Signed-off-by Renjun Wang <[email protected]>--- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+)
PATCH RESEND 2/2 drm/panel: simple: Add HannStar HSD156JUW2
In reply to Renjun WangAdd Hannstar HSD156JUW2 15.6" FHD (1920x1080) TFT LCD panel support.
--- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +28 -0
@@ -2509,6 +2509,31 @@ static const struct panel_desc hannstar_hsd101pww2 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing hannstar_hsd156juw2_timing = { + .pixelclock = {66000000 ,72800000 ,80500000 }, + .hactive = {1920 ,1920 ,1920 }, + .hfront_porch = {20 ,30 ,30 }, + .hback_porch = {20 ,30 ,30 }, + .hsync_len = {50 ,60 ,90 }, + .vactive = {1080 ,1080 ,1080 }, + .vfront_porch = {1 ,2 ,4 }, + .vback_porch = {1 ,2 ,4 }, + .vsync_len = {3 ,40 ,80 }, + .flags =DISPLAY_FLAGS_DE_HIGH , +}; + +static const struct panel_desc hannstar_hsd156juw2 = { + .timings = &hannstar_hsd156juw2_timing, + .num_timings =1 , + .bpc =8 , + .size = { + .width =344 , + .height =194 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X7X4_SPWG , + .connector_type =DRM_MODE_CONNECTOR_LVDS , +}; +static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .clock =33333 , .hdisplay =800 ,
@@ -5166,6 +5191,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "hannstar,hsd101pww2", .data = &hannstar_hsd101pww2, + }, { + .compatible = "hannstar,hsd156juw2", + .data = &hannstar_hsd156juw2, }, { .compatible = "hit,tx23d38vm0caa", .data = &hitachi_tx23d38vm0caa
Signature · 1 line
2.39.5
Re: [PATCH RESEND 2/2] drm/panel: simple: Add HannStar HSD156JUW2
Quoted 44 lines · Renjun Wang
Add Hannstar HSD156JUW2 15.6" FHD (1920x1080) TFT LCD panel support.
Signed-off-by Renjun Wang <[email protected]>--- drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)drivers/gpu/drm/panel/panel-simple.c +25
-0@@ -2509,6 +2509,31 @@ static const struct panel_desc hannstar_hsd101pww2 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing hannstar_hsd156juw2_timing = { + .pixelclock = {66000000 ,72800000 ,80500000 }, + .hactive = {1920 ,1920 ,1920 }, + .hfront_porch = {20 ,30 ,30 }, + .hback_porch = {20 ,30 ,30 }, + .hsync_len = {50 ,60 ,90 }, + .vactive = {1080 ,1080 ,1080 }, + .vfront_porch = {1 ,2 ,4 }, + .vback_porch = {1 ,2 ,4 }, + .vsync_len = {3 ,40 ,80 }, + .flags =DISPLAY_FLAGS_DE_HIGH , +}; + +static const struct panel_desc hannstar_hsd156juw2 = { + .timings = &hannstar_hsd156juw2_timing, + .num_timings =1 , + .bpc =8 , + .size = { + .width =344 , + .height =194 , + }, + .bus_format =MEDIA_BUS_FMT_RGB888_1X7X4_SPWG , + .connector_type =DRM_MODE_CONNECTOR_LVDS , +}; +static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .clock =33333 , .hdisplay =800 ,
drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 5199
Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +3
-0@@ -5166,6 +5191,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "hannstar,hsd101pww2", .data = &hannstar_hsd101pww2, + }, { + .compatible = "hannstar,hsd156juw2", + .data = &hannstar_hsd156juw2, }, { .compatible = "hit,tx23d38vm0caa", .data = &hitachi_tx23d38vm0caa
Hi,
Quoted 8 lines · Renjun Wang
The HannStar HSD156JUW2 panel is a 15.6" FHD (1920x1080) LCD-TFT LVDS panel. Add a binding and a panel entry under
panel-simple.c.Renjun Wang (2):
dt-bindings: display: simple: Add HannStar HSD156JUW2 drm/panel: simple: Add HannStar HSD156JUW2[...]
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/2] dt-bindings: display: simple: Add HannStar HSD156JUW2
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/b23cd64bda037ad83e18960c8802f3276b7b368e [2/2] drm/panel: simple: Add HannStar HSD156JUW2 https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/af586cc6df0bd56d4a3d05d5e6db0b193233fc51
Signature · 1 line
Neil