diff mbox series

[v2,2/3] drm: panel-backlight-quirks: Add Framework 13 matte panel

Message ID 20240623-amdgpu-min-backlight-quirk-v2-2-cecf7f49da9b@weissschuh.net (mailing list archive)
State New, archived
Headers show
Series drm: backlight quirk infrastructure and lower minimum for Framework AMD 13 | expand

Commit Message

Thomas Weißschuh June 23, 2024, 8:51 a.m. UTC
The value of "min_input_signal" returned from ATIF on a Framework AMD 13
is "12". This leads to a fairly bright minimum display backlight.

Add a quirk to override that the minimum backlight PWM to "0" which
leads to a much lower minimum brightness, which is still visible.

Tested on a Framework AMD 13 BIOS 3.05 with the matte panel.

Link: https://community.frame.work/t/25711/9
Link: https://community.frame.work/t/47036
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
 drivers/gpu/drm/drm_panel_backlight_quirks.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c
index a89b5fd1940e..e7671b1ba885 100644
--- a/drivers/gpu/drm/drm_panel_backlight_quirks.c
+++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c
@@ -17,6 +17,15 @@  struct drm_panel_backlight_entry {
 };
 
 static const struct drm_panel_backlight_entry drm_panel_backlight_entries[] = {
+	/* 13 inch matte panel */
+	{
+		.dmi_match.field = DMI_BOARD_VENDOR,
+		.dmi_match.value = "Framework",
+		.ident.panel_id = drm_edid_encode_panel_id('B', 'O', 'E', 0x0bca),
+		.ident.name = "NE135FBM-N41",
+		.quirk.overrides.pwm_min_brightness = true,
+		.quirk.pwm_min_brightness = 0,
+	},
 };
 
 static bool drm_panel_backlight_entry_matches(const struct drm_panel_backlight_entry *entry,