Lines Matching +full:te +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams581vf01_reset()
47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ams581vf01_reset()
53 struct mipi_dsi_device *dsi = ctx->dsi; in ams581vf01_on()
60 /* TE On */ in ams581vf01_on()
93 struct mipi_dsi_device *dsi = ctx->dsi; in ams581vf01_off()
116 ctx->supplies); in ams581vf01_prepare()
124 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams581vf01_prepare()
126 ctx->supplies); in ams581vf01_prepare()
139 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ams581vf01_unprepare()
141 ctx->supplies); in ams581vf01_unprepare()
179 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in ams581vf01_bl_update_status()
185 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in ams581vf01_bl_update_status()
197 struct device *dev = &dsi->dev; in ams581vf01_create_backlight()
210 struct device *dev = &dsi->dev; in ams581vf01_probe()
216 return -ENOMEM; in ams581vf01_probe()
218 ret = devm_regulator_bulk_get_const(&dsi->dev, in ams581vf01_probe()
221 &ctx->supplies); in ams581vf01_probe()
225 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ams581vf01_probe()
226 if (IS_ERR(ctx->reset_gpio)) in ams581vf01_probe()
227 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in ams581vf01_probe()
228 "Failed to get reset-gpios\n"); in ams581vf01_probe()
230 ctx->dsi = dsi; in ams581vf01_probe()
233 dsi->lanes = 4; in ams581vf01_probe()
234 dsi->format = MIPI_DSI_FMT_RGB888; in ams581vf01_probe()
235 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_BURST | in ams581vf01_probe()
238 drm_panel_init(&ctx->panel, dev, &ams581vf01_panel_funcs, in ams581vf01_probe()
240 ctx->panel.prepare_prev_first = true; in ams581vf01_probe()
242 ctx->panel.backlight = ams581vf01_create_backlight(dsi); in ams581vf01_probe()
243 if (IS_ERR(ctx->panel.backlight)) in ams581vf01_probe()
244 return dev_err_probe(dev, PTR_ERR(ctx->panel.backlight), in ams581vf01_probe()
247 drm_panel_add(&ctx->panel); in ams581vf01_probe()
251 drm_panel_remove(&ctx->panel); in ams581vf01_probe()
262 drm_panel_remove(&ctx->panel); in ams581vf01_remove()
275 .name = "panel-samsung-ams581vf01",