Lines Matching +full:te +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
49 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams639rq08_reset()
51 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ams639rq08_reset()
57 struct mipi_dsi_device *dsi = ctx->dsi; in ams639rq08_on()
74 /* TE OUT (Vsync On) */ in ams639rq08_on()
130 struct mipi_dsi_device *dsi = ctx->dsi; in ams639rq08_off()
144 ctx->supplies); in ams639rq08_prepare()
152 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams639rq08_prepare()
154 ctx->supplies); in ams639rq08_prepare()
167 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams639rq08_unprepare()
169 ctx->supplies); in ams639rq08_unprepare()
207 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in ams639rq08_bl_update_status()
213 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in ams639rq08_bl_update_status()
224 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in ams639rq08_bl_get_brightness()
230 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in ams639rq08_bl_get_brightness()
243 struct device *dev = &dsi->dev; in ams639rq08_create_backlight()
256 struct device *dev = &dsi->dev; in ams639rq08_probe()
262 return -ENOMEM; in ams639rq08_probe()
264 ret = devm_regulator_bulk_get_const(&dsi->dev, in ams639rq08_probe()
267 &ctx->supplies); in ams639rq08_probe()
271 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ams639rq08_probe()
272 if (IS_ERR(ctx->reset_gpio)) in ams639rq08_probe()
273 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in ams639rq08_probe()
274 "Failed to get reset-gpios\n"); in ams639rq08_probe()
276 ctx->dsi = dsi; in ams639rq08_probe()
279 dsi->lanes = 4; in ams639rq08_probe()
280 dsi->format = MIPI_DSI_FMT_RGB888; in ams639rq08_probe()
281 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in ams639rq08_probe()
284 drm_panel_init(&ctx->panel, dev, &ams639rq08_panel_funcs, in ams639rq08_probe()
286 ctx->panel.prepare_prev_first = true; in ams639rq08_probe()
288 ctx->panel.backlight = ams639rq08_create_backlight(dsi); in ams639rq08_probe()
289 if (IS_ERR(ctx->panel.backlight)) in ams639rq08_probe()
290 return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), in ams639rq08_probe()
293 drm_panel_add(&ctx->panel); in ams639rq08_probe()
297 drm_panel_remove(&ctx->panel); in ams639rq08_probe()
308 drm_panel_remove(&ctx->panel); in ams639rq08_remove()
321 .name = "panel-samsung-ams639rq08",