mirror of
https://github.com/andreili/SBC_builder.git
synced 2025-08-23 19:04:06 +02:00
Add kernel support for panel "btt-pitft"
This commit is contained in:
parent
ac22cd5440
commit
cd4e03082c
51
patch/kernel/printer_btt_tft_support.patch
Normal file
51
patch/kernel/printer_btt_tft_support.patch
Normal file
@ -0,0 +1,51 @@
|
||||
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
|
||||
index 9b2f128fd309..ae3b28cbe31f 100644
|
||||
--- a/drivers/gpu/drm/panel/panel-simple.c
|
||||
+++ b/drivers/gpu/drm/panel/panel-simple.c
|
||||
@@ -5470,6 +5470,36 @@ static const struct panel_desc_dsi osd101t2045_53ts = {
|
||||
.lanes = 4,
|
||||
};
|
||||
|
||||
+static const struct drm_display_mode btt_pitft_mode = {
|
||||
+ .clock = 26101800 / 1000,
|
||||
+ .hdisplay = 800,
|
||||
+ .hsync_start = 800 + 59,
|
||||
+ .hsync_end = 800 + 59 + 2,
|
||||
+ .htotal = 800 + 59 + 2 + 52,
|
||||
+ .vdisplay = 1200,
|
||||
+ .vsync_start = 480 + 7,
|
||||
+ .vsync_end = 480 + 7 + 2,
|
||||
+ .vtotal = 480 + 7 + 2 + 21,
|
||||
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
|
||||
+};
|
||||
+
|
||||
+static const struct panel_desc_dsi btt_pitft = {
|
||||
+ .desc = {
|
||||
+ .modes = &btt_pitft_mode,
|
||||
+ .num_modes = 1,
|
||||
+ .bpc = 8,
|
||||
+ .size = {
|
||||
+ .width = 217,
|
||||
+ .height = 136,
|
||||
+ },
|
||||
+ .connector_type = DRM_MODE_CONNECTOR_DSI,
|
||||
+ },
|
||||
+ .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
+ MIPI_DSI_MODE_LPM,
|
||||
+ .format = MIPI_DSI_FMT_RGB888,
|
||||
+ .lanes = 1,
|
||||
+};
|
||||
+
|
||||
static const struct of_device_id dsi_of_match[] = {
|
||||
{
|
||||
.compatible = "auo,b080uan01",
|
||||
@@ -5492,6 +5522,9 @@ static const struct of_device_id dsi_of_match[] = {
|
||||
}, {
|
||||
.compatible = "osddisplays,osd101t2045-53ts",
|
||||
.data = &osd101t2045_53ts
|
||||
+ }, {
|
||||
+ .compatible = "btt-pitft",
|
||||
+ .data = &btt_pitft
|
||||
}, {
|
||||
/* sentinel */
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user