From e68eca31d83699b98159545188704272ab00a2a1 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Thu, 13 Nov 2025 00:17:53 +0000 Subject: [PATCH] panel-nx: match jdi panel driver style squash later --- drivers/gpu/drm/panel/panel-nx-dsi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-nx-dsi.c b/drivers/gpu/drm/panel/panel-nx-dsi.c index 26e66a0b4446..3b2f923cf05c 100644 --- a/drivers/gpu/drm/panel/panel-nx-dsi.c +++ b/drivers/gpu/drm/panel/panel-nx-dsi.c @@ -612,8 +612,7 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 10, .vsync_end = 1280 + 10 + 2, .vtotal = 1280 + 10 + 1 + 9, - .width_mm = 77, - .height_mm = 137, + .flags = 0, }; static int nx_panel_get_modes(struct drm_panel *panel, @@ -636,8 +635,9 @@ static int nx_panel_get_modes(struct drm_panel *panel, drm_mode_set_name(mode); drm_mode_probed_add(connector, mode); - connector->display_info.width_mm = default_mode.width_mm; - connector->display_info.height_mm = default_mode.height_mm; + connector->display_info.width_mm = 77; + connector->display_info.height_mm = 137; + connector->display_info.bpc = 8; return 1; } @@ -676,6 +676,8 @@ static int nx_panel_add(struct nx_panel *nx) gpiod_set_value(nx->reset_gpio, 0); } + usleep_range(2000, 4000); + printk("backlight"); np = of_parse_phandle(dev->of_node, "backlight", 0);