Skip to content

Commit 8a07052

Browse files
Liu Yingsravnborg
authored andcommitted
drm/panel: simple: Add support for KOE TX26D202VM0BWA panel
This patch adds support for Kaohsiung Opto-Electronics Inc. 10.1" TX26D202VM0BWA WUXGA(1920x1200) TFT LCD panel with LVDS interface. The panel has dual LVDS channels. My panel is manufactured by US Micro Products(USMP). There is a tag at the back of the panel, which indicates the panel type is 'TX26D202VM0BWA' and it's made by KOE in Taiwan. The panel spec from USMP can be found at: https://www.usmicroproducts.com/sites/default/files/datasheets/USMP-T101-192120NDU-A0.pdf The below panel spec from KOE is basically the same to the one from USMP. However, the panel type 'TX26D202VM0BAA' is a little bit different. It looks that the two types of panel are compatible with each other. http://www.koe.j-display.com/upload/product/TX26D202VM0BAA.pdf Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Liu Ying <victor.liu@nxp.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/1590991880-24273-1-git-send-email-victor.liu@nxp.com
1 parent 85be9d7 commit 8a07052

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,6 +2159,37 @@ static const struct panel_desc koe_tx14d24vm1bpa = {
21592159
},
21602160
};
21612161

2162+
static const struct display_timing koe_tx26d202vm0bwa_timing = {
2163+
.pixelclock = { 151820000, 156720000, 159780000 },
2164+
.hactive = { 1920, 1920, 1920 },
2165+
.hfront_porch = { 105, 130, 142 },
2166+
.hback_porch = { 45, 70, 82 },
2167+
.hsync_len = { 30, 30, 30 },
2168+
.vactive = { 1200, 1200, 1200},
2169+
.vfront_porch = { 3, 5, 10 },
2170+
.vback_porch = { 2, 5, 10 },
2171+
.vsync_len = { 5, 5, 5 },
2172+
};
2173+
2174+
static const struct panel_desc koe_tx26d202vm0bwa = {
2175+
.timings = &koe_tx26d202vm0bwa_timing,
2176+
.num_timings = 1,
2177+
.bpc = 8,
2178+
.size = {
2179+
.width = 217,
2180+
.height = 136,
2181+
},
2182+
.delay = {
2183+
.prepare = 1000,
2184+
.enable = 1000,
2185+
.unprepare = 1000,
2186+
.disable = 1000,
2187+
},
2188+
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2189+
.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2190+
.connector_type = DRM_MODE_CONNECTOR_LVDS,
2191+
};
2192+
21622193
static const struct display_timing koe_tx31d200vm0baa_timing = {
21632194
.pixelclock = { 39600000, 43200000, 48000000 },
21642195
.hactive = { 1280, 1280, 1280 },
@@ -3751,6 +3782,9 @@ static const struct of_device_id platform_of_match[] = {
37513782
}, {
37523783
.compatible = "koe,tx14d24vm1bpa",
37533784
.data = &koe_tx14d24vm1bpa,
3785+
}, {
3786+
.compatible = "koe,tx26d202vm0bwa",
3787+
.data = &koe_tx26d202vm0bwa,
37543788
}, {
37553789
.compatible = "koe,tx31d200vm0baa",
37563790
.data = &koe_tx31d200vm0baa,

0 commit comments

Comments
 (0)