panel-nx: match jdi panel driver style

squash later
This commit is contained in:
2025-11-13 00:17:53 +00:00
parent b86244cb58
commit e68eca31d8

View File

@@ -612,8 +612,7 @@ static const struct drm_display_mode default_mode = {
.vsync_start = 1280 + 10, .vsync_start = 1280 + 10,
.vsync_end = 1280 + 10 + 2, .vsync_end = 1280 + 10 + 2,
.vtotal = 1280 + 10 + 1 + 9, .vtotal = 1280 + 10 + 1 + 9,
.width_mm = 77, .flags = 0,
.height_mm = 137,
}; };
static int nx_panel_get_modes(struct drm_panel *panel, 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_set_name(mode);
drm_mode_probed_add(connector, mode); drm_mode_probed_add(connector, mode);
connector->display_info.width_mm = default_mode.width_mm; connector->display_info.width_mm = 77;
connector->display_info.height_mm = default_mode.height_mm; connector->display_info.height_mm = 137;
connector->display_info.bpc = 8;
return 1; return 1;
} }
@@ -676,6 +676,8 @@ static int nx_panel_add(struct nx_panel *nx)
gpiod_set_value(nx->reset_gpio, 0); gpiod_set_value(nx->reset_gpio, 0);
} }
usleep_range(2000, 4000);
printk("backlight"); printk("backlight");
np = of_parse_phandle(dev->of_node, "backlight", 0); np = of_parse_phandle(dev->of_node, "backlight", 0);