drm: panel-orientation-quirks: Add quirk for Teclast X89 tablet
Subsystems (2)
PATCH 1/1 drm: panel-orientation-quirks: Add quirk for Teclast X89 tablet
The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.
--- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +13 -0
@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data teclast_x89 = { + .width =1536 , + .height =2048 , + .bios_dates = (const char *const []){"12/19/2014" ,NULL }, + .orientation =DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP , +}; +static const struct dmi_system_id orientation_data[] = { {/* Acer One 10 (S1003) */ .matches = {
@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* Teclast X89 (tPAD is too generic, also match on bios date) */ + .matches = { +DMI_EXACT_MATCH (DMI_BOARD_VENDOR ,"TECLAST" ), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"), + }, + .driver_data = (void *)&teclast_x89, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi,
I know these kinda patches are sorta trivial, still I prefer to get an Acked-by before pushing this to drm-misc-next. Can someone review this please?
Alternative I guess we could agree that pushing patches which just add a dmi quirk to drm_panel_orientation_quirks.c is ok when the patch has sat on the list without any response for a week ?
Regards,
Hans
Quoted 30 lines · Hans de Goede
The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.
Signed-off-by Hans de Goede <[email protected]>--- drivers/gpu/drm/drm_panel_orientation_quirks.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)drivers/gpu/drm/drm_panel_orientation_quirks.c +7
-0@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data teclast_x89 = { + .width =1536 , + .height =2048 , + .bios_dates = (const char *const []){"12/19/2014" ,NULL }, + .orientation =DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP , +}; +static const struct dmi_system_id orientation_data[] = { {/* Acer One 10 (S1003) */ .matches = {@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), },
drivers/gpu/drm/drm_panel_orientation_quirks.c static const struct dmi_system_id orientation_data[] = { · line 223
Quoted 10 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +6
-0.driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* Teclast X89 (tPAD is too generic, also match on bios date) */ + .matches = { +DMI_EXACT_MATCH (DMI_BOARD_VENDOR ,"TECLAST" ), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"), + }, + .driver_data = (void *)&teclast_x89, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi,
Quoted 8 lines · Hans de Goede
Hi,
I know these kinda patches are sorta trivial, still I prefer to get an Acked-by before pushing this to drm-misc-next. Can someone review this please?
Alternative I guess we could agree that pushing patches which just add a dmi quirk to
drm_panel_orientation_quirks.cis ok when the patch has sat on the list without any response for a week ?
Nevermind, for devices with an upside-down panel the info is in the VBT and we should use that instead of doing a quirk, self-nack.
Regards,
Hans
Quoted 32 lines · Hans de Goede
Quoted 31 lines
The Teclast X89 uses an upside-down mounted eDP panel, add a panel-orientation quirk for this.
Signed-off-by Hans de Goede <[email protected]>---
drivers/gpu/drm/drm_panel_orientation_quirks.c| 13 +++++++++++++1 file changed, 13 insertions(+)drivers/gpu/drm/drm_panel_orientation_quirks.c +7
-0@@ -108,6 +108,13 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data teclast_x89 = { + .width = 1536, + .height = 2048, + .bios_dates = (const char * const []){ "12/19/2014", NULL }, + .orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP, +}; + static const struct dmi_system_id orientation_data[] = {{ /* Acer One 10 (S1003) */
.matches = {drivers/gpu/drm/drm_panel_orientation_quirks.c +2
-0@@ -205,6 +212,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, + }, { /* Teclast X89 (tPAD is too generic, also match on bios date) */ + .matches = {
Quoted 8 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c static const struct dmi_system_id orientation_data[] = { · line 223
Quoted 8 lines
drivers/gpu/drm/drm_panel_orientation_quirks.c +4
-0+ DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "TECLAST"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "tPAD"), + }, + .driver_data = (void *)&teclast_x89, }, { /* VIOS LTH17 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel