Skip to contentSkip to conversation

dt-bindings: display: simple: add AUO P238HAN01 panel

PATCH Applied Michael Walle 3 participants 5 messages May 20, 2025 – Jun 5, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: display: simple: add AUO P238HAN01 panel

Add AUO P238HAN01 23.8" 1920x1080 LVDS panel compatible string.

---
 .../devicetree/bindings/display/panel/panel-simple.yaml         | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
index 5542c9229d54..1ac1f0219079 100644
@@ -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
Signature · 1 line
2.39.5
#1 lore raw

PATCH 2/2 drm/panel-simple: add AUO P238HAN01 panel entry

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

---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +27 -0
index 0a3b26bb4d73..47222d2d8129 100644
@@ -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,
Signature · 1 line
2.39.5
maintainer Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/panel-simple: add AUO P238HAN01 panel entry

Quoted 65 lines · 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

---
  drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
  1 file changed, 27 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +24 -0
index 0a3b26bb4d73..47222d2d8129 100644
@@ -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 },

drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 4970

Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +3 -0
@@ -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,
Acked-by on v1 1/2
#3 lore raw
In reply to Michael Walle
Quoted 12 lines · Michael Walle

Add AUO P238HAN01 23.8" 1920x1080 LVDS panel compatible string.

---
 .../devicetree/bindings/display/panel/panel-simple.yaml         | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +0 -0
index 5542c9229d54..1ac1f0219079 100644

Documentation/devicetree/bindings/display/panel/panel-simple.yaml properties: · line 64

Quoted 8 lines
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +2 -0
@@ -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
maintainer Applied
#4 lore raw
In reply to Michael Walle

Hi,

Quoted 3 lines · Michael Walle

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
Signature · 1 line
Neil