panel-nx: match jdi panel driver style

squash later
This commit is contained in:
tmakin committed 2026-08-24 18:39:39 -05:00
1 parent cb59995ea8
commit 9856c0e55d
1 file changed
+6 -4
+6 -4
View File
@@ -606,8 +606,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,
@@ -628,8 +627,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;
}
@@ -666,6 +666,8 @@ static int nx_panel_add(struct nx_panel *nx)
gpiod_set_value(nx->reset_gpio, 0);
}
usleep_range(2000, 4000);
np = of_parse_phandle(dev->of_node, "backlight", 0);
if (np) {
nx->backlight = of_find_backlight_by_node(np);