Re: [PATCH] drm: panel-orientation-quirks: Add quirks for One XPlayer handheld variants

2023-01-22 Thread Matthew Anderson
I'm just following up to see where things are standing for this patch. 
I've seen other orientation patches make it's way to the kernel and am 
wondering if there is something I need to do on my end.


On 12/13/22 11:10 AM, Matthew Anderson wrote:

We have more handhelds in the One XPLAYER lineup now that needs support added 
to the orientation-quirks.
By adding more native resolution checks and the one unique BIOS variant 
available we add support to most devices.

Signed-off-by: Matthew Anderson 
---
  .../gpu/drm/drm_panel_orientation_quirks.c| 30 +++
  1 file changed, 30 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c 
b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 52d8800a8ab8..335d636e6696 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -103,6 +103,12 @@ static const struct drm_dmi_panel_orientation_data 
lcd800x1280_rightside_up = {
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
  };
  
+static const struct drm_dmi_panel_orientation_data lcd800x1280_leftside_up = {

+   .width = 800,
+   .height = 1280,
+   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
  static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = 
{
.width = 1080,
.height = 1920,
@@ -115,6 +121,12 @@ 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 lcd1200x1920_leftside_up = {

+   .width = 1200,
+   .height = 1920,
+   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
  static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up 
= {
.width = 1280,
.height = 1920,
@@ -344,6 +356,24 @@ static const struct dmi_system_id orientation_data[] = {
  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
},
.driver_data = (void *)&lcd1600x2560_leftside_up,
+   }, {/* OneXPlayer Mini 800p */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., 
LTD."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
+   },
+   .driver_data = (void *)&lcd800x1280_leftside_up,
+   }, {/* OneXPlayer Mini 1200p */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., 
LTD."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
+   },
+   .driver_data = (void *)&lcd1200x1920_leftside_up,
+   }, {/* OneXPlayer Mini A07 Bios Variant */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
+   },
+   .driver_data = (void *)&lcd800x1280_leftside_up,
}, {/* Samsung GalaxyBook 10.6 */
.matches = {
  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., 
LTD."),


Re: [PATCH] Updated the orientation quirks to support the many variations of ONEXPLAYER and AokZoe devices.

2022-10-03 Thread Matthew Anderson
Has anyone been able to review this? If possible I'd like to see this
pulled into 6.1

On Fri, Sep 16, 2022, 8:50 AM Matthew  wrote:

> Signed-off-by: Matthew Anderson 
> ---
>  .../gpu/drm/drm_panel_orientation_quirks.c| 86 ++-
>  1 file changed, 85 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> index fc1728d46ac2..15203c134717 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -115,6 +115,18 @@ static const struct drm_dmi_panel_orientation_data
> lcd1280x1920_rightside_up = {
> .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
>  };
>
> +static const struct drm_dmi_panel_orientation_data
> lcd800x1280_leftside_up = {
> +   .width = 800,
> +   .height = 1280,
> +   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
> +};
> +
> +static const struct drm_dmi_panel_orientation_data
> lcd1200x1920_leftside_up = {
> +   .width = 1200,
> +   .height = 1920,
> +   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
> +};
> +
>  static const struct drm_dmi_panel_orientation_data
> lcd1600x2560_leftside_up = {
> .width = 1600,
> .height = 2560,
> @@ -128,6 +140,12 @@ static const struct dmi_system_id orientation_data[]
> = {
>   DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "One S1003"),
> },
> .driver_data = (void *)&lcd800x1280_rightside_up,
> +   }, {/* AOKZOE A1 AR07 */
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AOKZOE"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AOKZOE A1 AR07"),
> +   },
> +   .driver_data = (void *)&lcd1200x1920_leftside_up,
> }, {/* Asus T100HA */
> .matches = {
>   DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> @@ -308,12 +326,78 @@ static const struct dmi_system_id orientation_data[]
> = {
>   DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"),
> },
> .driver_data = (void *)&onegx1_pro,
> -   }, {/* OneXPlayer */
> +   }, {/* OneXPlayer 800P Original DMI Values */
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> +   },
> +   .driver_data = (void *)&lcd800x1280_leftside_up,
> +   }, {/* OneXPlayer 1200P Original DMI Values */
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> +   },
> +   .driver_data = (void *)&lcd1200x1920_leftside_up,
> +   }, {/* OneXPlayer 1600P Original DMI Values */
> .matches = {
>   DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY
> CO., LTD."),
>   DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> },
> .driver_data = (void *)&lcd1600x2560_leftside_up,
> +   }, {/* OneXPlayer Gundam Edition Bios Updated */
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER GUNDAM
> GA72"),
> +   },
> +   .driver_data = (void *)&lcd1200x1920_leftside_up,
> +   }, {/* ONEXPLAYER mini A07 800P Bios Updated */
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
> +   },
> +   .driver_data = (void *)&lcd800x1280_leftside_up,
> +   }, {/* ONEXPLAYER mini A07 1200P Bios Updated*/
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
> +   },
> +   .driver_data = (void *)&lcd1200x1920_leftside_up,
> +   }, {/* ONEXPLAYER mini GA72 800P Bios Updated*/
> +   .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
> + DMI_EXACT_MATCH(DMI_PRODUCT_

[PATCH] drm: panel-orientation-quirks: Add quirks for One XPlayer handheld variants

2022-12-13 Thread Matthew Anderson
We have more handhelds in the One XPLAYER lineup now that needs support added 
to the orientation-quirks.
By adding more native resolution checks and the one unique BIOS variant 
available we add support to most devices.

Signed-off-by: Matthew Anderson 
---
 .../gpu/drm/drm_panel_orientation_quirks.c| 30 +++
 1 file changed, 30 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c 
b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 52d8800a8ab8..335d636e6696 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -103,6 +103,12 @@ static const struct drm_dmi_panel_orientation_data 
lcd800x1280_rightside_up = {
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd800x1280_leftside_up = {
+   .width = 800,
+   .height = 1280,
+   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = {
.width = 1080,
.height = 1920,
@@ -115,6 +121,12 @@ 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 lcd1200x1920_leftside_up = {
+   .width = 1200,
+   .height = 1920,
+   .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = 
{
.width = 1280,
.height = 1920,
@@ -344,6 +356,24 @@ static const struct dmi_system_id orientation_data[] = {
  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
},
.driver_data = (void *)&lcd1600x2560_leftside_up,
+   }, {/* OneXPlayer Mini 800p */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., 
LTD."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
+   },
+   .driver_data = (void *)&lcd800x1280_leftside_up,
+   }, {/* OneXPlayer Mini 1200p */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., 
LTD."),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
+   },
+   .driver_data = (void *)&lcd1200x1920_leftside_up,
+   }, {/* OneXPlayer Mini A07 Bios Variant */
+   .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONEXPLAYER mini A07"),
+   },
+   .driver_data = (void *)&lcd800x1280_leftside_up,
}, {/* Samsung GalaxyBook 10.6 */
.matches = {
  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., 
LTD."),
-- 
2.34.1