Lines Matching +full:vsn +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree.
51 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in hx83112a_reset()
53 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in hx83112a_reset()
55 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in hx83112a_reset()
61 struct mipi_dsi_device *dsi = ctx->dsi; in hx83112a_on()
62 struct device *dev = &dsi->dev; in hx83112a_on()
65 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in hx83112a_on()
205 struct mipi_dsi_device *dsi = ctx->dsi; in hx83112a_disable()
206 struct device *dev = &dsi->dev; in hx83112a_disable()
209 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in hx83112a_disable()
231 struct device *dev = &ctx->dsi->dev; in hx83112a_prepare()
234 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in hx83112a_prepare()
245 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in hx83112a_prepare()
246 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in hx83112a_prepare()
257 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in hx83112a_unprepare()
258 regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in hx83112a_unprepare()
293 struct device *dev = &dsi->dev; in hx83112a_probe()
299 return -ENOMEM; in hx83112a_probe()
301 ctx->supplies[0].supply = "vdd1"; in hx83112a_probe()
302 ctx->supplies[1].supply = "vsn"; in hx83112a_probe()
303 ctx->supplies[2].supply = "vsp"; in hx83112a_probe()
304 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in hx83112a_probe()
305 ctx->supplies); in hx83112a_probe()
309 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in hx83112a_probe()
310 if (IS_ERR(ctx->reset_gpio)) in hx83112a_probe()
311 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in hx83112a_probe()
312 "Failed to get reset-gpios\n"); in hx83112a_probe()
314 ctx->dsi = dsi; in hx83112a_probe()
317 dsi->lanes = 4; in hx83112a_probe()
318 dsi->format = MIPI_DSI_FMT_RGB888; in hx83112a_probe()
319 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in hx83112a_probe()
323 drm_panel_init(&ctx->panel, dev, &hx83112a_panel_funcs, in hx83112a_probe()
325 ctx->panel.prepare_prev_first = true; in hx83112a_probe()
327 ret = drm_panel_of_backlight(&ctx->panel); in hx83112a_probe()
331 drm_panel_add(&ctx->panel); in hx83112a_probe()
336 drm_panel_remove(&ctx->panel); in hx83112a_probe()
350 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in hx83112a_remove()
352 drm_panel_remove(&ctx->panel); in hx83112a_remove()
356 { .compatible = "djn,9a-3r063-1102b" },
365 .name = "panel-himax-hx83112a",
371 MODULE_DESCRIPTION("DRM driver for hx83112a-equipped DSI panels");