* [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel
@ 2025-05-20 7:44 Michael Walle
2025-05-20 7:44 ` [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry Michael Walle
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Michael Walle @ 2025-05-20 7:44 UTC (permalink / raw)
To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thierry Reding, Sam Ravnborg
Cc: dri-devel, linux-kernel, devicetree, Michael Walle
Add AUO P238HAN01 23.8" 1920x1080 LVDS panel compatible string.
Signed-off-by: Michael Walle <mwalle@kernel.org>
---
.../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 5542c9229d54..1ac1f0219079 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -57,6 +57,8 @@ properties:
- auo,g121ean01
# AU Optronics Corporation 15.6" (1366x768) TFT LCD panel
- auo,g156xtn01
+ # AU Optronics Corporation 23.8" FHD (1920x1080) TFT LCD panel
+ - auo,p238han01
# AU Optronics Corporation 31.5" FHD (1920x1080) TFT LCD panel
- auo,p320hvn03
# AU Optronics Corporation 21.5" FHD (1920x1080) color TFT LCD panel
--
2.39.5
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry 2025-05-20 7:44 [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Michael Walle @ 2025-05-20 7:44 ` Michael Walle 2025-05-20 8:57 ` Neil Armstrong 2025-05-20 15:49 ` [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Conor Dooley 2025-06-05 6:55 ` Neil Armstrong 2 siblings, 1 reply; 5+ messages in thread From: Michael Walle @ 2025-05-20 7:44 UTC (permalink / raw) To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding, Sam Ravnborg Cc: dri-devel, linux-kernel, devicetree, Michael Walle Timings taken from the datasheet and the display is working in DE mode, thus the datasheet only specifies the blanking period. sync, back porch and front porch are arbitrarily chosen. The datasheet can be found at [1] but for reference these are the relevant timings: sym | | min | typ | max | unit | ------|--------------+------+------+------+------+ Tv | V period | 1094 | 1130 | 1836 | Th | | V active | 1080 | 1080 | 1080 | Th | | V blanking | 14 | 50 | 756 | Th | Fv | V frequency | 49 | 60 | 76 | Hz | Th | H period | 1000 | 1050 | 1678 | Tclk | | H active | 960 | 960 | 960 | Tclk | | H blanking | 40 | 90 | 718 | Tclk | Fh | H frequency | 53.7 | 67.8 | 90.0 | kHz | Tclk | LVDS clock | 53.7 | 71.2 | 90.0 | MHz | Keep in mind that this is a dual link LVDS panel and the horizontal timings are only for one half of the panel. [1] https://www.fortec-integrated.de/fileadmin/pdf/produkte/TFT-Displays/AUO/P238HAN01.0_Datasheet.pdf Signed-off-by: Michael Walle <mwalle@kernel.org> --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 0a3b26bb4d73..47222d2d8129 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1268,6 +1268,30 @@ static const struct panel_desc auo_g190ean01 = { .connector_type = DRM_MODE_CONNECTOR_LVDS, }; +static const struct display_timing auo_p238han01_timings = { + .pixelclock = { 107400000, 142400000, 180000000 }, + .hactive = { 1920, 1920, 1920 }, + .hfront_porch = { 30, 70, 650 }, + .hback_porch = { 30, 70, 650 }, + .hsync_len = { 20, 40, 136 }, + .vactive = { 1080, 1080, 1080 }, + .vfront_porch = { 5, 19, 318 }, + .vback_porch = { 5, 19, 318 }, + .vsync_len = { 4, 12, 120 }, +}; + +static const struct panel_desc auo_p238han01 = { + .timings = &auo_p238han01_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 527, + .height = 296, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct display_timing auo_p320hvn03_timings = { .pixelclock = { 106000000, 148500000, 164000000 }, .hactive = { 1920, 1920, 1920 }, @@ -4938,6 +4962,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "auo,g190ean01", .data = &auo_g190ean01, + }, { + .compatible = "auo,p238han01", + .data = &auo_p238han01, }, { .compatible = "auo,p320hvn03", .data = &auo_p320hvn03, -- 2.39.5 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry 2025-05-20 7:44 ` [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry Michael Walle @ 2025-05-20 8:57 ` Neil Armstrong 0 siblings, 0 replies; 5+ messages in thread From: Neil Armstrong @ 2025-05-20 8:57 UTC (permalink / raw) To: Michael Walle, Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding, Sam Ravnborg Cc: dri-devel, linux-kernel, devicetree On 20/05/2025 09:44, Michael Walle wrote: > Timings taken from the datasheet and the display is working in DE mode, > thus the datasheet only specifies the blanking period. sync, back porch > and front porch are arbitrarily chosen. > > The datasheet can be found at [1] but for reference these are the > relevant timings: > > sym | | min | typ | max | unit | > ------|--------------+------+------+------+------+ > Tv | V period | 1094 | 1130 | 1836 | Th | > | V active | 1080 | 1080 | 1080 | Th | > | V blanking | 14 | 50 | 756 | Th | > Fv | V frequency | 49 | 60 | 76 | Hz | > Th | H period | 1000 | 1050 | 1678 | Tclk | > | H active | 960 | 960 | 960 | Tclk | > | H blanking | 40 | 90 | 718 | Tclk | > Fh | H frequency | 53.7 | 67.8 | 90.0 | kHz | > Tclk | LVDS clock | 53.7 | 71.2 | 90.0 | MHz | > > Keep in mind that this is a dual link LVDS panel and the horizontal > timings are only for one half of the panel. > > [1] https://www.fortec-integrated.de/fileadmin/pdf/produkte/TFT-Displays/AUO/P238HAN01.0_Datasheet.pdf > > Signed-off-by: Michael Walle <mwalle@kernel.org> > --- > drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index 0a3b26bb4d73..47222d2d8129 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -1268,6 +1268,30 @@ static const struct panel_desc auo_g190ean01 = { > .connector_type = DRM_MODE_CONNECTOR_LVDS, > }; > > +static const struct display_timing auo_p238han01_timings = { > + .pixelclock = { 107400000, 142400000, 180000000 }, > + .hactive = { 1920, 1920, 1920 }, > + .hfront_porch = { 30, 70, 650 }, > + .hback_porch = { 30, 70, 650 }, > + .hsync_len = { 20, 40, 136 }, > + .vactive = { 1080, 1080, 1080 }, > + .vfront_porch = { 5, 19, 318 }, > + .vback_porch = { 5, 19, 318 }, > + .vsync_len = { 4, 12, 120 }, > +}; > + > +static const struct panel_desc auo_p238han01 = { > + .timings = &auo_p238han01_timings, > + .num_timings = 1, > + .bpc = 8, > + .size = { > + .width = 527, > + .height = 296, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > + .connector_type = DRM_MODE_CONNECTOR_LVDS, > +}; > + > static const struct display_timing auo_p320hvn03_timings = { > .pixelclock = { 106000000, 148500000, 164000000 }, > .hactive = { 1920, 1920, 1920 }, > @@ -4938,6 +4962,9 @@ static const struct of_device_id platform_of_match[] = { > }, { > .compatible = "auo,g190ean01", > .data = &auo_g190ean01, > + }, { > + .compatible = "auo,p238han01", > + .data = &auo_p238han01, > }, { > .compatible = "auo,p320hvn03", > .data = &auo_p320hvn03, Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel 2025-05-20 7:44 [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Michael Walle 2025-05-20 7:44 ` [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry Michael Walle @ 2025-05-20 15:49 ` Conor Dooley 2025-06-05 6:55 ` Neil Armstrong 2 siblings, 0 replies; 5+ messages in thread From: Conor Dooley @ 2025-05-20 15:49 UTC (permalink / raw) To: Michael Walle Cc: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding, Sam Ravnborg, dri-devel, linux-kernel, devicetree [-- Attachment #1: Type: text/plain, Size: 1145 bytes --] On Tue, May 20, 2025 at 09:44:38AM +0200, Michael Walle wrote: > Add AUO P238HAN01 23.8" 1920x1080 LVDS panel compatible string. > > Signed-off-by: Michael Walle <mwalle@kernel.org> > --- > .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > index 5542c9229d54..1ac1f0219079 100644 > --- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > +++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml > @@ -57,6 +57,8 @@ properties: > - auo,g121ean01 > # AU Optronics Corporation 15.6" (1366x768) TFT LCD panel > - auo,g156xtn01 > + # AU Optronics Corporation 23.8" FHD (1920x1080) TFT LCD panel > + - auo,p238han01 > # AU Optronics Corporation 31.5" FHD (1920x1080) TFT LCD panel > - auo,p320hvn03 > # AU Optronics Corporation 21.5" FHD (1920x1080) color TFT LCD panel Acked-by: Conor Dooley <conor.dooley@microchip.com> [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel 2025-05-20 7:44 [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Michael Walle 2025-05-20 7:44 ` [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry Michael Walle 2025-05-20 15:49 ` [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Conor Dooley @ 2025-06-05 6:55 ` Neil Armstrong 2 siblings, 0 replies; 5+ messages in thread From: Neil Armstrong @ 2025-06-05 6:55 UTC (permalink / raw) To: Jessica Zhang, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding, Sam Ravnborg, Michael Walle Cc: dri-devel, linux-kernel, devicetree Hi, On Tue, 20 May 2025 09:44:38 +0200, Michael Walle wrote: > Add AUO P238HAN01 23.8" 1920x1080 LVDS panel compatible string. > > Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next) [1/2] dt-bindings: display: simple: add AUO P238HAN01 panel https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/a3bc2ee00b488bb7a90770447a886c678d64756a [2/2] drm/panel-simple: add AUO P238HAN01 panel entry https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/8a45632ed3179995b2956cfbf140655701301471 -- Neil ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-06-05 6:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-05-20 7:44 [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Michael Walle 2025-05-20 7:44 ` [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry Michael Walle 2025-05-20 8:57 ` Neil Armstrong 2025-05-20 15:49 ` [PATCH 1/2] dt-bindings: display: simple: add AUO P238HAN01 panel Conor Dooley 2025-06-05 6:55 ` Neil Armstrong
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®