Lines Matching +full:tv101wum +full:- +full:ll2
1 // SPDX-License-Identifier: GPL-2.0-only
2 // Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
36 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in boe_tv101wum_ll2_reset()
38 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in boe_tv101wum_ll2_reset()
40 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in boe_tv101wum_ll2_reset()
47 struct mipi_dsi_device *dsi = ctx->dsi; in boe_tv101wum_ll2_on()
50 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in boe_tv101wum_ll2_on()
78 struct mipi_dsi_device *dsi = ctx->dsi; in boe_tv101wum_ll2_off()
81 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in boe_tv101wum_ll2_off()
103 ctx->supplies); in boe_tv101wum_ll2_prepare()
111 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in boe_tv101wum_ll2_prepare()
113 ctx->supplies); in boe_tv101wum_ll2_prepare()
127 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in boe_tv101wum_ll2_unprepare()
130 ctx->supplies); in boe_tv101wum_ll2_unprepare()
165 struct device *dev = &dsi->dev; in boe_tv101wum_ll2_probe()
171 return -ENOMEM; in boe_tv101wum_ll2_probe()
173 ret = devm_regulator_bulk_get_const(&dsi->dev, in boe_tv101wum_ll2_probe()
176 &ctx->supplies); in boe_tv101wum_ll2_probe()
180 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in boe_tv101wum_ll2_probe()
181 if (IS_ERR(ctx->reset_gpio)) in boe_tv101wum_ll2_probe()
182 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in boe_tv101wum_ll2_probe()
183 "Failed to get reset-gpios\n"); in boe_tv101wum_ll2_probe()
185 ctx->dsi = dsi; in boe_tv101wum_ll2_probe()
188 dsi->lanes = 4; in boe_tv101wum_ll2_probe()
189 dsi->format = MIPI_DSI_FMT_RGB888; in boe_tv101wum_ll2_probe()
190 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in boe_tv101wum_ll2_probe()
193 drm_panel_init(&ctx->panel, dev, &boe_tv101wum_ll2_panel_funcs, in boe_tv101wum_ll2_probe()
195 ctx->panel.prepare_prev_first = true; in boe_tv101wum_ll2_probe()
197 ret = drm_panel_of_backlight(&ctx->panel); in boe_tv101wum_ll2_probe()
201 drm_panel_add(&ctx->panel); in boe_tv101wum_ll2_probe()
205 drm_panel_remove(&ctx->panel); in boe_tv101wum_ll2_probe()
219 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in boe_tv101wum_ll2_remove()
221 drm_panel_remove(&ctx->panel); in boe_tv101wum_ll2_remove()
225 { .compatible = "boe,tv101wum-ll2" },
234 .name = "panel-boe-tv101wum_ll2",
240 MODULE_DESCRIPTION("DRM driver for BOE TV101WUM-LL2 Panel");