Lines Matching +full:- +full:poc +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
29 { .supply = "vddio" },
30 { .supply = "vci" },
31 { .supply = "poc" },
47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset()
49 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_reset()
51 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset()
57 struct mipi_dsi_device *dsi = ctx->dsi; in sofef00_panel_on()
60 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sofef00_panel_on()
83 struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; in sofef00_enable()
92 struct mipi_dsi_device *dsi = ctx->dsi; in sofef00_panel_off()
109 ret = regulator_bulk_enable(ARRAY_SIZE(sofef00_supplies), ctx->supplies); in sofef00_panel_prepare()
117 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_prepare()
118 regulator_bulk_disable(ARRAY_SIZE(sofef00_supplies), ctx->supplies); in sofef00_panel_prepare()
138 regulator_bulk_disable(ARRAY_SIZE(sofef00_supplies), ctx->supplies); in sofef00_panel_unprepare()
181 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in sofef00_panel_bl_update_status()
187 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in sofef00_panel_bl_update_status()
199 struct device *dev = &dsi->dev; in sofef00_create_backlight()
212 struct device *dev = &dsi->dev; in sofef00_panel_probe()
225 &ctx->supplies); in sofef00_panel_probe()
229 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sofef00_panel_probe()
230 if (IS_ERR(ctx->reset_gpio)) in sofef00_panel_probe()
231 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in sofef00_panel_probe()
232 "Failed to get reset-gpios\n"); in sofef00_panel_probe()
234 ctx->dsi = dsi; in sofef00_panel_probe()
237 dsi->lanes = 4; in sofef00_panel_probe()
238 dsi->format = MIPI_DSI_FMT_RGB888; in sofef00_panel_probe()
239 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in sofef00_panel_probe()
242 ctx->panel.prepare_prev_first = true; in sofef00_panel_probe()
244 ctx->panel.backlight = sofef00_create_backlight(dsi); in sofef00_panel_probe()
245 if (IS_ERR(ctx->panel.backlight)) in sofef00_panel_probe()
246 return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), in sofef00_panel_probe()
249 drm_panel_add(&ctx->panel); in sofef00_panel_probe()
254 drm_panel_remove(&ctx->panel); in sofef00_panel_probe()
268 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in sofef00_panel_remove()
270 drm_panel_remove(&ctx->panel); in sofef00_panel_remove()
275 { .compatible = "samsung,sofef00-ams628nw01" },
284 .name = "panel-samsung-sofef00",