Lines Matching +full:fhd +full:- +full:video

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Generated using linux-mdss-dsi-panel-driver-generator from Lineage OS device tree:
6 …com/LineageOS/android_kernel_xiaomi_msm8996/blob/lineage-18.1/arch/arm/boot/dts/qcom/a1-msm8996-mt…
14 #include <video/mipi_display.h>
33 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset()
35 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_reset()
37 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset()
43 struct mipi_dsi_device *dsi = ctx->dsi; in jdi_fhd_r63452_on()
46 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_fhd_r63452_on()
85 struct mipi_dsi_device *dsi = ctx->dsi; in jdi_fhd_r63452_off()
88 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in jdi_fhd_r63452_off()
112 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_prepare()
128 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_unprepare()
152 mode = drm_mode_duplicate(connector->dev, &jdi_fhd_r63452_mode); in jdi_fhd_r63452_get_modes()
154 return -ENOMEM; in jdi_fhd_r63452_get_modes()
158 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; in jdi_fhd_r63452_get_modes()
159 connector->display_info.width_mm = mode->width_mm; in jdi_fhd_r63452_get_modes()
160 connector->display_info.height_mm = mode->height_mm; in jdi_fhd_r63452_get_modes()
174 struct device *dev = &dsi->dev; in jdi_fhd_r63452_probe()
180 return -ENOMEM; in jdi_fhd_r63452_probe()
182 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in jdi_fhd_r63452_probe()
183 if (IS_ERR(ctx->reset_gpio)) in jdi_fhd_r63452_probe()
184 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in jdi_fhd_r63452_probe()
185 "Failed to get reset-gpios\n"); in jdi_fhd_r63452_probe()
187 ctx->dsi = dsi; in jdi_fhd_r63452_probe()
190 dsi->lanes = 4; in jdi_fhd_r63452_probe()
191 dsi->format = MIPI_DSI_FMT_RGB888; in jdi_fhd_r63452_probe()
192 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in jdi_fhd_r63452_probe()
195 drm_panel_init(&ctx->panel, dev, &jdi_fhd_r63452_panel_funcs, in jdi_fhd_r63452_probe()
197 ctx->panel.prepare_prev_first = true; in jdi_fhd_r63452_probe()
199 ret = drm_panel_of_backlight(&ctx->panel); in jdi_fhd_r63452_probe()
203 drm_panel_add(&ctx->panel); in jdi_fhd_r63452_probe()
221 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in jdi_fhd_r63452_remove()
223 drm_panel_remove(&ctx->panel); in jdi_fhd_r63452_remove()
227 { .compatible = "jdi,fhd-r63452" },
236 .name = "panel-jdi-fhd-r63452",
243 MODULE_DESCRIPTION("DRM driver for JDI FHD R63452 DSI panel, command mode");