From nobody Sat May 9 09:10:38 2026 Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com [209.85.167.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E0D8513C67E for ; Fri, 24 Jan 2025 20:47:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751654; cv=none; b=DRy+Uz3hZrcrEQfZs8ut+8Pi4q3fVnr9EXDaFWRJkODOYlTOn8KvRRhpu0HhBDNqS2gAvjSbU7pcQcLdSk7LKMDrpgAUEILhQ5OQOEHhrWrNfsJ01ui7yWtz06SgduZcz+buy+BhzB9rhFrhWqg29CZJvtSxlp6Jib/JIup2yo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751654; c=relaxed/simple; bh=B/x8SSOwNJ+jh3U2gLsnQqBAQsYFxZm5Zj4IC3QCJ/8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=krQUSktJA0WUiUPFZhBT2SfK4CiDh//i+HvNfR6oOJgDM6ofG1gpFjAU5UxI9BnYhFI2OOe/cd0Y87I3Oy+AGiYbos5cHr5jqQebUMwlokHkxFQ7Edz1Ya7fabMW1JupLOXIh9caywCKd8IYYIrqZkOE/d4uJ3v9UieEH2NT9+E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f182.google.com with SMTP id 5614622812f47-3eb8db8ae9aso1016201b6e.1 for ; Fri, 24 Jan 2025 12:47:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737751652; x=1738356452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+2rFT6UPFjBzbaYoHK4JyH1XrSo+yhjpr3t2g2LL060=; b=RfqiVrMWvwBjlXsuhQj1CWEF77KAen4BlhP7lHCzZRYc/T0PeojrRDz94isO1OwHda T0SqgNrIGc3FzfVGnJmDWvcSDGi+XxeHPcKkJ5fEwmoqJdRrA7rZK2DpKAg8DZU3ff3I KvqXaT21/2ac/a9LRF4+2VAoRw/tpz57PKC4oZe4LxnWP/I6sqOmeDAy7Ntaima1QyJe g+w4PONjK4LfyLsmVBRm6QEFHwIcFmfjSrPvviPtjy2AlgzZMEjpBbaz28HS0U888lQN iMoglG4Pgqw/3UB1PMKB0zuAG5Bnl58rhAv9+XIUltmYFVpT08iWLfD25losVhxAaB0f taTQ== X-Forwarded-Encrypted: i=1; AJvYcCXuNAzSBNHv6xVmW9CJssq/UynGAYDk1qTLrRRA2i0yZlI7CJXepsktGdxkwz3ACc9I/vQgMWvQ4AwiFwM=@vger.kernel.org X-Gm-Message-State: AOJu0Yxkb0sezKu7i1DRtwMeu22rwm7uDwhFwG473LfREx+ngKwwUwzg j2KzJrkV6KhQ1MtcBCyiLwgL8D0dsHHvDh2yG1j7cWAUbtHc6dvXF8yF9Xy/ X-Gm-Gg: ASbGncsG16JwzOfg3dIP+s/kVZHuMUps/Qiy9k5jmg+Fjrj7ylQtholncqRihBd8+GD BfYOBMSkrypImeaDT3lSrPt7grDELLkRh9jowiM/QmjHwLxuY1uLyH7wqRclnvuVEnYCocjUaTG BDAUGcLoQFeP/AG6ECsbnSMYMCDYJDd4Xx6GeLQew+ojD1/+I7JCtrP+WQMfKUAiDtbG/PCKhRS jKSwBMw8vHaJMjRjwG2/HFwW/JmrjamnmX1tXrMpI32WqzjloNkSkxhXzn9eJNdxgBsfZ0gKKAH w0DZTJMfk6+VW459 X-Google-Smtp-Source: AGHT+IFqqf6lCndHXWMgjGWt86aJIeMlSyR7k1jd84Et0ur1qGKRTVO1fQOoPtdwfyZtY3anWIEkgw== X-Received: by 2002:a05:6808:2e89:b0:3eb:7ec4:f3ba with SMTP id 5614622812f47-3f19fc4b7e6mr21633026b6e.2.1737751651828; Fri, 24 Jan 2025 12:47:31 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f1f0981130sm598700b6e.36.2025.01.24.12.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:47:30 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] drm: panel-orientation-quirks: Add support for AYANEO 2S Date: Fri, 24 Jan 2025 20:46:44 +0000 Message-ID: <20250124204648.56989-4-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Andrew Wyatt AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index 4a73821b8..f9c975338 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -184,10 +184,10 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"), }, .driver_data =3D (void *)&lcd800x1280_rightside_up, - }, { /* AYA NEO AYANEO 2 */ + }, { /* AYA NEO AYANEO 2/2S */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), + DMI_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), }, .driver_data =3D (void *)&lcd1200x1920_rightside_up, }, { /* AYA NEO 2021 */ --=20 2.43.0 From nobody Sat May 9 09:10:38 2026 Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E63913C67E for ; Fri, 24 Jan 2025 20:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751672; cv=none; b=Zy6nO4I/SYRK10q3NebBFCbUOT8iNcDvUNyNaPfodGn6VEezNCqNQBFj0sweIB3ZZwv3TOe7GaIsvc5Dv9MxX5qVbg79qMMQ2Ev1feCxoRQwo2uPxtxU5kPive//oQ49o8Km0arnULjQj77N+ky1JaFU7FPdgBIBvoi2rt1R/eA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751672; c=relaxed/simple; bh=gjSGNZMR2QjP+n5eJQPVa4Sp36UNUEFcw61w000yOUQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XOkVrk8t1raOZF3ok3fjm4IXy+QmxpCogSEHpSsBoe9YBb2FmP434wUfGVefOI6C004UdtfbnWDgqz9dEuYKNbcybIPW1z5v0or5paGNeHLJOtloXISLw+828xGsGcnQS6UqHQqippEBdRWYHbZue1nPnasZmPuYd/o97ERcmO0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f181.google.com with SMTP id 5614622812f47-3eb9de518e2so1186494b6e.2 for ; Fri, 24 Jan 2025 12:47:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737751670; x=1738356470; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gW6/DbY3zUZ8GO8ZyBpm0NjrK5wQn0R1+g2eIZtcHRI=; b=vovVVSxatY4M5PWHnDABB5JAErxCu1u76qeY8YBidIF0t8Qxc1jY5BLyVuW0XGiXPs xhgFLbF10tyTbFL+ZQM8vdHkAaWuKsnfahCcN8bct+v6JTR4M+nNp2/yT1IjTqksy3Io tqRl2EEpDmwikW0bsBF05WwBVL9ItoRmwaNwDz38JJnVqZIx1N1zOGwtH48Rpy48RjPi p6pQCRc8knZcjhixC3SeQP3Uve9t/PDrdQ5oRSIMoGJpV4nSeJf0gVpj2C7D0K3ptpg/ qgNvNLLeEdQJ6ysbJHb42EnsARgEdVY+XWUnVEV4Ot5FFGQVVsixqcLiLGc+VUsG5Viz nrmg== X-Forwarded-Encrypted: i=1; AJvYcCWFB9EzfgufFNce5J3x9bZVUoMebFdXzmEsgitBGPQseZk6OI675czOQMwmK/v3ja0eNQfeuJm/OFL8heo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy1BiyF1iewjqmlyjuS/KpU/PFRWgMZjONLHwV7CeQ4/B0+jFfs eMnSNGVOiifg8U5Zi9XtSgHoMQpcHBqbFCErmaPnZMDGtFqtZL1m X-Gm-Gg: ASbGncsuykGDFuYLnGSac/mq2LNDTkbKdAawje98oROr5I+wot1K8BvddQ21kLnuWju QolIzvf+Cnxgx4iJaCkBYFPFfGnQtnJJG6Rs9bmUe9ljpE8ncfAVOuXJfLmsIKXJTB4KJoWtMfZ 3BD7ObVKhNBVrBNVpNVUb8dL3mEYfSpFRvvlvcm9dQ2x1bHxWCSSdVilMQvczzvTpxcTLwuaNFp fTjmjdA90alDKY3meW51eoY9ES39uNXVeAQkxOuLhx1pIU/EQCqoUd6VCnp6Np+jqMGmw47XfIq Od6RrQ== X-Google-Smtp-Source: AGHT+IEZVRyX9JDJ3Lv7Af3Dh/+6/YOEE4ATIxgXGLqbkwyz+/KoMZQAXqjhTuu3Uxk1jYUlLSjQZg== X-Received: by 2002:a05:6808:4e0e:b0:3eb:8855:efec with SMTP id 5614622812f47-3f19fd80444mr14549205b6e.38.1737751668766; Fri, 24 Jan 2025 12:47:48 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f1f0981130sm598700b6e.36.2025.01.24.12.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:47:47 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Paco Avelar Subject: [PATCH v2 2/5] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB Date: Fri, 24 Jan 2025 20:46:46 +0000 Message-ID: <20250124204648.56989-6-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Andrew Wyatt The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index f9c975338..c5acf2628 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -93,6 +93,12 @@ static const struct drm_dmi_panel_orientation_data onegx= 1_pro =3D { .orientation =3D DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; =20 +static const struct drm_dmi_panel_orientation_data lcd640x960_leftside_up = =3D { + .width =3D 640, + .height =3D 960, + .orientation =3D DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_u= p =3D { .width =3D 720, .height =3D 1280, @@ -202,6 +208,18 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_MATCH(DMI_PRODUCT_NAME, "AIR"), }, .driver_data =3D (void *)&lcd1080x1920_leftside_up, + }, { /* AYA NEO Flip DS Bottom Screen */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FLIP DS"), + }, + .driver_data =3D (void *)&lcd640x960_leftside_up, + }, { /* AYA NEO Flip KB/DS Top Screen */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_MATCH(DMI_PRODUCT_NAME, "FLIP"), + }, + .driver_data =3D (void *)&lcd1080x1920_leftside_up, }, { /* AYA NEO Founder */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYA NEO"), --=20 2.43.0 From nobody Sat May 9 09:10:38 2026 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCF881D5ACF for ; Fri, 24 Jan 2025 20:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751700; cv=none; b=s+oayn9Gyfi3fk/EcbVYRCe4lTk4c4/yxH3LTHp8WuhhQNlf1dnfGqjcoQ/qNt3G1WXFLRBqSaqHE6c6yJwWdrNnEik7omlygjKPkuGYzvvRur5FUSm6o1HHz4xROJRM86BgYMgEL5JzibUKuYzqUHSOndR1UWgTUzGnac7kmKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751700; c=relaxed/simple; bh=qXbm8z4ogIW6Gsbl8QsqjtzseqBYDk57bCYW8YTJ8/k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TdjKGyqr3KC+MTT/o2rzntSinZdkMrg/m+khHGeoCjV+4+JsjfIJDdA7fymIswu/HynnQ2y/vQ6r5LOfY+oGxw9KGQKBf+t4dKZtU9tRUpc5gUWaY9vIDF4tLShxTIe3MHLAascb/z8cNiUVNhnbSVwdgmdS0Xu067beJtH6up8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-3eba559611aso711488b6e.0 for ; Fri, 24 Jan 2025 12:48:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737751698; x=1738356498; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QSgi3kw7bFscI4U3pI0dPYp1l5hHbgjpKx8NF/oyVvg=; b=Pu2UesSzRP0s3Xj+apH48v5H6WEoe3Le0Egl5QrNAFuaGY6KEwtFxfI59weN2AofOc 6W11R+v7b79vFNbKv/Q7k2tkv0dRjen+OiUf7Zc/2fW17o4xcOp6ivuj8+A+cOVETg6V 9M9i8iB+RzYfYzpiJzB/JLW+w+CiMzhA/4kUTiH335XH1vDAU4no3+UgAU5u5TIvV4oC cg+28ziSyjLq/WKlj+jx5K4ThMXhwQraOlnWV/2Qv66jmp8rZMDoQ2THau3B9Lml6PWz lOxIbBe+jUqN8Sf0Nn2yWqLWDSSxtd4rC43QW+jiTx8+/CtSTQHHPs2oD0/iasGuDf6b Kuag== X-Forwarded-Encrypted: i=1; AJvYcCWewiVNpsbOqiEjuEk325NCkhEzVoP2L59hdGlxPNrfQLNXiXGtWFFIbClKqIThtf9ciP/neNQ9w7ZK/dY=@vger.kernel.org X-Gm-Message-State: AOJu0YwD3keMh+oo5itS/uwobltNTnRAUD7RuygT9B5LFLAsm/jaLujv hUExj/VVzCht6+egCFY+kMAyobSb8+xCZ7Hu67cYTKSJ+j0+jJg5 X-Gm-Gg: ASbGnct21xWlsA8Jhmvar9kInCExwBCvznyCbzDOoOpmZhvr3xEwQUaPNwWEKd/3/iF PknQ+YQG7lC5whwIDz5p+dBxkelDACrBxo3Phzcp2rYCFpIuV2XRW1+ybWvVUkAkHuLyPc1UKpo KSBxz4DTyu/ZxXjGxZ+30lais4ANLjgDcWaYQKaqKcdX8rNndaZiVZJdRX5XTROvgYKc4B4zX2E b6BWz1DQlz5DynS/u+OsEsSbNEdFHWZk1DGHwU5Qrgow7Z6E1QYj69dxncynC2gL0Q09CEk73kZ 2NLEsg== X-Google-Smtp-Source: AGHT+IG80veEMQhupDpObdV+bU0AgKFzhdJHt/NS6t/Qj2aJuLV/Rb+ztj34oVJUUYrZPJYRSX3VIw== X-Received: by 2002:a05:6808:398c:b0:3e6:5761:af3 with SMTP id 5614622812f47-3f19fc7d842mr21834906b6e.9.1737751697838; Fri, 24 Jan 2025 12:48:17 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f1f0981130sm598700b6e.36.2025.01.24.12.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:48:16 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/5] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide Date: Fri, 24 Jan 2025 20:46:48 +0000 Message-ID: <20250124204648.56989-8-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Andrew Wyatt The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same panel used on the AYANEO Air Plus, but the DMI data is too different to match both with one entry. Add a DMI match to correctly rotate the panel on the AYANEO Slide. This also covers the Antec Core HS, which is a rebranded AYANEO Slide with the exact same hardware and DMI strings. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index c5acf2628..9e6708cd1 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -244,6 +244,12 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_MATCH(DMI_BOARD_NAME, "KUN"), }, .driver_data =3D (void *)&lcd1600x2560_rightside_up, + }, { /* AYA NEO SLIDE */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_MATCH(DMI_PRODUCT_NAME, "SLIDE"), + }, + .driver_data =3D (void *)&lcd1080x1920_leftside_up, }, { /* AYN Loki Max */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"), --=20 2.43.0 From nobody Sat May 9 09:10:38 2026 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 303651D5ACF for ; Fri, 24 Jan 2025 20:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751712; cv=none; b=axDIJOMc0jApWAobUHDZ4L2iO/68NKBHwPBPIWY0kyGmJC+GNHxF4jBZHb8tDoi+TIQmy6MMwZTclssVXzK6WMPiQyc6XMnb5TeVfpvnf40cjIh5JTWtwgGjD47tqfh3YRMsfJn60xXbzvXp6eQxb+yYMpZF0VqbziZYhFq6Z4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751712; c=relaxed/simple; bh=ZwTUufsdp8VXxjyapY5er+4E4l7ltgsQ5YRSG6aTB4k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X71v+Zume01ctuX5/Xie+l/usUW3uHzXzaKzazEhSn/zk9N8iqh5WY7nRshkgxJvseyUnxckXLOfY1s+J6L4cwbWiLzNSFLcyOw5RIsZXI58a6C0/Y8XLwg5QAT9DCz134NHOfUO3kI2WsC6vL69eeZr91A08dxz6jFFthcUs2Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3eb7f3b1342so1268341b6e.1 for ; Fri, 24 Jan 2025 12:48:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737751710; x=1738356510; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zTmcnMLYrKmxshYXQBR0d85tQtf4Zs+o04qMUE/3fe0=; b=O3Zr0lyrLLIX1QTyiHU24UcvN1WPr9vzJ5AX83qOjSg/XP8BBt2TZWJ/J34ec6wePE DENBNzvRjCWqyz1/4v8O6bPPtt6wJ2Hhk3+GNi7gRKHFUca8kssc6BVPA0voDLaM8Gbo bhhgE3U3/hnHXUeR/1B+PLYiOWUfHINUs32OV+iXFzNAPvq6cp4dN6RR79apsiPcyZiu JV+MGFz9P0UCi1If6QRoTTTgM5weHqRNtEdkk2kRM/XIT1MAO9IhDwhT8Hz8YB0lHREX j2RBKAnSHK9ZyPODJzDpwnNM0JPEN+EwBCnWOEOpoFYbdzGoK4lVu1mNqZ0QmyXePTII tHLQ== X-Forwarded-Encrypted: i=1; AJvYcCWV8Rh9WJvAMfsEQO/EDih84oqpz9qftxcKnubRTL40WCkomg6d9kCi+iulJyZF/I8Fmxjuc9ZqoakaN44=@vger.kernel.org X-Gm-Message-State: AOJu0YyAbtCH3HaaZBCXypoey72Wwc2smdIdiLcxaK1qwZDQYpm+ltZq x7aEcgN4bcLrhqC01euAgyxL8tgPDNtBair5ded5twcs9ha4ARdW X-Gm-Gg: ASbGncv45PRWZlfwS4WtSBTdJtRTR/WQQvpjh2pJdYF71lcM4p93RWR4evO2FV40Zlh r90A4PR3CJ9rfLrBc5StK1WVCUBNGXWrFHvP7FJC7hCVMm2rXTMEGDIyqj/UTESL9JRTs4hZEb3 sCuEHj6LSC4YTiR8ZZJaBpQ5253ixkXjrtWgJVE81nwtzTB5Q8+gQH2LKVYIooDc20RbaweIVL2 JuvzuFB/39MGMKkUg5IZEg013gl7NhN6MZdyTDsogbBKV7Oq5NgIvWHnV4/82ls+amXarPdlXkF 22gF9wNYzAgrbWDI X-Google-Smtp-Source: AGHT+IHUENjiGVLI+oMMp3gBm5+kAKqMBuu4g8ZgEw8kKGT+Kr/ZYXTAqcZqBbONvERpVoLyMHtDDQ== X-Received: by 2002:a05:6808:1c0f:b0:3eb:6e47:2fe1 with SMTP id 5614622812f47-3f19fcd7a40mr18372654b6e.33.1737751710195; Fri, 24 Jan 2025 12:48:30 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f1f0981130sm598700b6e.36.2025.01.24.12.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:48:29 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Paco Avelar Subject: [PATCH v2 4/5] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Fri, 24 Jan 2025 20:46:50 +0000 Message-ID: <20250124204648.56989-10-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Andrew Wyatt Some GPD Win 2 units shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these units. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index 9e6708cd1..e6148cc31 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), }, .driver_data =3D (void *)&gpd_win2, + }, { /* GPD Win 2 (correct DMI strings) */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") + }, + .driver_data =3D (void *)&lcd720x1280_rightside_up, }, { /* GPD Win 3 */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), --=20 2.43.0 From nobody Sat May 9 09:10:38 2026 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF4C11DB958 for ; Fri, 24 Jan 2025 20:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737752075; cv=none; b=rnK/jXEG7cvDJ5aEMMQtABwt3Wr5xUcUqPQpJ0AU2r/eG+z8JPFnvDQzLt+qHlzeKg+JeawI9CkNRwVXjsl93dghAa5EjA/gwycQDocNXOTfsVNASjS/0rxqJdT+/ynRsK1YURH8y9u+cqVJCGWsaJ1RIDeTVBNk1k1PpdoGAH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737752075; c=relaxed/simple; bh=mbSsP8BcVT+ij7EAuMMUrwEL9kIIxhkCeo2n2u7tXIc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=l7jiH2oiJw5pJj+6sAyaw+pQNqDjg72MuislGB4ePB9Iv4Lud6MvGxxXIYMqtohghE1dN1SG84neYkWUcNjBpuQlayF+kj7bTYuQDyDFGw+a9g3oiumLAgUslgo4PpmAM2paMWIvLmLmMG/uSO/FiApx0nUr201AgC0x9w92b5w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-71e2aa8d5e3so1356258a34.2 for ; Fri, 24 Jan 2025 12:54:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737752073; x=1738356873; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JnOGBClk7osJ0B6upaFsfK1KgRp3GiXOZGZi8eI3q40=; b=XLdS6gJ9teFES+aOWrudcR9Kxs8EgFXokSY9LmvvhJ/Ig/wM+nn+rpuIAjU+1SlSc8 kj3/FB0B7t83r2R8OybqErft8B6uTxKISz3c+mdMs3NWmbN9MDK7BmenNCQ69H5iqL7e +KphQB4eqPS87qgbq7eFMPEL1fE3BkvPYLC/43ze/hUVV7UH0C8rAj6aDxFFZykM1GnF QBWlRjWPzfEwD0VGWJL/0myZHtIIifmFdGzAGorJDrVkYaSZiTha5AFzYh+F1tr1+AVB C9XjFe+v3EdVOQE1AA420TJXQvyJW1SPdxKmNBzaTcdy/TsKK4J2F6VZ8cpaoHesA968 ZxlQ== X-Forwarded-Encrypted: i=1; AJvYcCUZp26rJWBzw0hRX2RLRW0VeXlr5RZ249sskxm+GLpLQASaB0kRWNuOSgUQLj1k4DXqAFZMiMo23BgVN10=@vger.kernel.org X-Gm-Message-State: AOJu0YyIpwSTMVei22w+nG4bntuCp0koP6+G2b/WpF4btAfW9BodjYZp sa86TiE4ynt/wRgg+zhIhhPKec6aMu7CNX8AaWPUjk4vLy1+IdJB X-Gm-Gg: ASbGnctHKQbpqvzMAhd4v+xej5sIi4xj77Xz1OS1vVuOu4yjWKQmckMgWrYV6vQD/cH rEzw2OI2+2E8Jw/Y0rCbKC1P2LrrvDd9nf0A5D1FU3Dng/mN9YQr8hkJ35mbJmZ5M18dZQYviq4 Lrmqe/1Eb1T0st3+E0JoNgs3uIxwxX9fIoXWXqogo62BsvXsYSQXDUAR6TPOVJkhPXUY1teRzQe SoKW7b18l9iHif2sgNuYn0jc0lhROaNo7LaDQB+hJqPYIcft+Gnz9JF8WraubynTxa4siWxU9yJ 77TWzA== X-Google-Smtp-Source: AGHT+IEBJwsGWY0m4HRWqPxTKo9Z+JkgxvCDzRFG8SK7wGfzwjM0LCJjki2X4FEaPu19+tNx1Jzofg== X-Received: by 2002:a05:6830:641a:b0:71d:eee3:fd26 with SMTP id 46e09a7af769-7249da56939mr19282278a34.4.1737752072731; Fri, 24 Jan 2025 12:54:32 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa8b9b8fd3sm553703eaf.40.2025.01.24.12.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:54:31 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jo=C3=A3o=20Pedro=20Kurtz?= Subject: [PATCH v2 5/5] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) Date: Fri, 24 Jan 2025 20:52:51 +0000 Message-ID: <20250124205301.57041-3-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Andrew Wyatt The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rotate this panel. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: Jo=C3=A3o Pedro Kurtz Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index e6148cc31..88aa57c15 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -129,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd= 1080x1920_rightside_up =3D { .orientation =3D DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; =20 +static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_u= p =3D { + .width =3D 1200, + .height =3D 1920, + .orientation =3D DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_= up =3D { .width =3D 1200, .height =3D 1920, @@ -473,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), }, .driver_data =3D (void *)&lcd1600x2560_leftside_up, + }, { /* OneXPlayer Mini (Intel) */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), + }, + .driver_data =3D (void *)&lcd1200x1920_leftside_up, }, { /* OrangePi Neo */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"), --=20 2.43.0 From nobody Sat May 9 09:10:38 2026 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 82AD41D5ACF for ; Fri, 24 Jan 2025 20:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751750; cv=none; b=ia3T3J/NCRg22Qm0hKhHPeICSMTksSYtWEQCaknERbfCTGN8iv0vF2ik5ZUC/hJeVBuXAya/zpdf2qZK12Yv/u05JTvhNOyYK8J7yvMSv9KF0U85wsxsa8lSPgEFZPWgr/EJw3+/jS10Terz7CQ7iW6FHDvzedpT5hcoiBora7U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737751750; c=relaxed/simple; bh=mdeoTr01VJnqLCFPcY+Wtg0ujA0zuWNfRhc6JIyRGAc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=X6f1LPlFzfgx1ummCcWhrcOPIwVFSVZXXHFAcJdynJEiDQkHVFBCWgJ7/J6QBVW83ssmgRiLbsLLWLF0tC3nqxJ88hgy6E/DAE98ACBIoSM7lsFOTqGyEWWhTpxjzwP5MsObVslSC+dm0MEMoYGLAhyVZr0jONteIgArt2OtIxs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.167.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=uejji.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f171.google.com with SMTP id 5614622812f47-3eb7f3b1342so1268642b6e.1 for ; Fri, 24 Jan 2025 12:49:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737751748; x=1738356548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5xA14pV/ID80+ZWYLSsOoIEL9rfki2kGsfrRSt/vpbY=; b=VDwrCrV5/QnAjiZgO6SjbiONDSxW4WWsBUButdAq5YQpzGl3lQpSH2CNEmk2t/mTk0 zhfTn1d6Uzwk095jlgHHv+2pF9RvrhGh36b1f/ulx0S/KP/7iEZ7LhSz0S73BPfmwRsF 6BHbeL/icq6LjtixHAI9MWfrn9EyoOO4PqUmzYnr8W4nwuIe/vp4YxFd1IU7bM5WZsi0 92cIlTbZ0HmcxRQSCZU0f9Q1clicRvxQj8W34WL9Oa8KjTC6Kvd6GqoTyfbwzVouhClg GcaeHj3lvGs6rIP/c3fiHlJKed3ATsllTqrmZZzdrzpHZOsLhBZQl0YS9h8IKOwfbDeP 60Lw== X-Forwarded-Encrypted: i=1; AJvYcCXnhiNVxue6GYNX8S0+jiaIFea5PqcxTIZjtJl/+iVZ37QLgRnVc7z6kKXdmbQ85oXK+W9Ez/yx2XN1gQ4=@vger.kernel.org X-Gm-Message-State: AOJu0YxJo95FlZMEKrb9x68l1hfFlMc4YM7UsiVzGlWseNcRiaoh0Kvr Eq6X2MYADZ7RXf2J+mRnM0k8VceAdBRXq37SEDHoQcRYZ92GZDLN X-Gm-Gg: ASbGncs1bEoj7VXAqzS0SihTsamKjlRC7Bzw/nBQdMMTLy7Q0a4jGGBLCM6usPpcyVm GZgqPNQSsFuUqY+/WLjyVFfGgGKcjMr6b7FE9vW9wRxR3s8TqgbS9kJdvf3M1CDJYxbON6mF+Fe J7DLhDVpGWBKkeekRyjihGRR1wkPDZlEMFhyOPUAwlAD/udC6RcGCChc+dje1RxdZZTUGY/7Ao2 m8BJXZHI3JlQoi0rB1mnVx9utsfkMmZNnXeYcaGcuNNrAIblrW5zgX8ah8f8Enk0saf35ZMBKu4 40QYQg== X-Google-Smtp-Source: AGHT+IFoCw9pViPBJfjcoCYgkjD9iFLB95goRltiwpnSLVyw4cjDuOVRPwGZV0c0Kx+SMcyafVuOIg== X-Received: by 2002:a05:6808:3c46:b0:3e6:63b5:f248 with SMTP id 5614622812f47-3f19fbfe377mr21460708b6e.7.1737751748520; Fri, 24 Jan 2025 12:49:08 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3f1f0981130sm598700b6e.36.2025.01.24.12.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 12:49:07 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter , Hans de Goede Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Jo=C3=A3o=20Pedro=20Kurtz?= Subject: [PATCH v2 5/5] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) From: Andrew Wyatt Date: Fri, 24 Jan 2025 20:46:52 +0000 Message-ID: <20250124204648.56989-12-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250124204648.56989-2-uejji@uejji.net> References: <20250124204648.56989-2-uejji@uejji.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rotate this panel. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: Jo=C3=A3o Pedro Kurtz Reviewed-by: Hans de Goede Reviewed-by: Thomas Zimmermann --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/d= rm/drm_panel_orientation_quirks.c index e6148cc31..88aa57c15 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -129,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd= 1080x1920_rightside_up =3D { .orientation =3D DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; =20 +static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_u= p =3D { + .width =3D 1200, + .height =3D 1920, + .orientation =3D DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_= up =3D { .width =3D 1200, .height =3D 1920, @@ -473,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = =3D { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), }, .driver_data =3D (void *)&lcd1600x2560_leftside_up, + }, { /* OneXPlayer Mini (Intel) */ + .matches =3D { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"), + }, + .driver_data =3D (void *)&lcd1200x1920_leftside_up, }, { /* OrangePi Neo */ .matches =3D { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"), --=20 2.43.0