From nobody Sun Dec 14 14:15:28 2025 Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (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 57A2922ACDC for ; Thu, 16 Jan 2025 15:52:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042772; cv=none; b=pMN08w4YyXLBTtAa7WJlEcsk2jlGDK+NGjR7ULKMJoro///cJHApGjhZUzrfsGcrMySIr4MwSwt5cghQ0EjFako0+YbnZNtrSLo/ecPbmeu04Km8cdwOnBpDbUPWeX+KZpXTirImVfhEs8SO79Vk5XU6wR7ZYJ66Ty8naYj7HAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737042772; c=relaxed/simple; bh=ki8HdVEHlbOUjg985ZsIvDvSWPHAsrgvfrgFVRa6WTs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=k7L8irIBDZrLAl4NyDpNTYnGhCyK9kLUq/dfLJPiuOjFrHh5RkVkgB3wc/oTGeQY+q6FHA0HQ8KNsdcivWCV8gh9XJzX/ZshYFHskAgs2PTFYgxblqwo3EZwLog9lD51icFsjjFqxmW2Uubqt3ZoaCxrKlMk2Nw8MRJy8LRNl1Q= 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.161.45 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-oo1-f45.google.com with SMTP id 006d021491bc7-5f304ac59b9so525389eaf.0 for ; Thu, 16 Jan 2025 07:52:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042770; x=1737647570; 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=/5rj34u5pNHeuLWOUSUYUBNhSS+rZXTTOxAW79CUJE8=; b=tC8jjNgZUvsv91fLr2/RTvZV1z2MEAxMP6gMgZLrEnO3SLDcepO4QcfsSZShZ/0stq ca+UFRtjwmA+g3GHaF+wQT+TkPtRfdG/TFXoxVPKqFdB5OCOAHzcvaYGlqDRJfZrlA0j MM+bUSEP0nflCgJ/QYl+1mIgLUdKmSGFDF+MsB+odQYJt5M4ll2jamvifBdPwEf+udnt EQBFjUvgFUryIuZNHf1Bxd0LBDEeWIqCxIwfghbLezN3FvydD+myvTWNoGcnhfqg72vW cPlCDlP5LpJ1a/MIQWDZg5WvGvUHVRclDv0pIs0I1h2wsZXIErHxWd1ujh8f4iTHutSR NdTg== X-Forwarded-Encrypted: i=1; AJvYcCWLRuoC2/wI0HAjn6F75oNZ3lrNZMqblvJ7+MkqdC4SiWPwaygfgOqbVwQtyiWWhq7vudTdNmIBKn+rrDs=@vger.kernel.org X-Gm-Message-State: AOJu0YyWebFdKGBgP9qC4BojZC3QMuTeyROFy0cs/NjamKGjvG3eMWwX 8ughK+B1eJhyJNmCa9mG2y6FJ+qgLH7kqKEXc8aMwUS1oxuNFpHwAq+CGUIc X-Gm-Gg: ASbGncuenEQRNAAj5h81KZvHhSYdZ0N2tjsRybtSsR8yg3CkJQ786MjDZnB+suT3uq5 eIeyC95yegNVgGewMCxftPpqlgj/kkjY2cO0ffmOssY1no7xBBQKfQE+ZblcIslCmCNuyhChbIZ hJUDfhWwjla+Z/b5TXl9bRkAZVhT2WJpDH12b+lu5/ZxLrp/rH26F9ZuX1iPG/Xp7NLHvyanQRr FwVjNgNAUKVDjso0evY8BFBOGDxdEtdxXIOhYuKoGzFLc7GhGTWp1Z4Qw== X-Google-Smtp-Source: AGHT+IEwQCMC+rSOF2ebEhyCNYbOVZz2Y0IsspfjwImeO3LQurHuQIDFGTU7pggWAwduYUbGJiaFRA== X-Received: by 2002:a05:6820:1ad0:b0:5f2:c518:bace with SMTP id 006d021491bc7-5f730909232mr1482377eaf.3.1737042770555; Thu, 16 Jan 2025 07:52:50 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:52:49 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB Date: Thu, 16 Jan 2025 15:50:47 +0000 Message-ID: <20250116155049.39647-6-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-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 properly rotate these panels. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards --- 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