Lines Matching +full:avee +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0
30 #define MCS_STBCTR 0x12 /* TE1 Output Setting Zig-Zag Connection */
36 #define MCS_SETAVEE 0x29 /* PFM Control for AVEE Output */
45 /* CMD2 P2 commands (GOA Timing Control) - no description in datasheet */
79 struct regulator *supply;
105 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
110 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write buffer failed: %d\n", err);
115 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
120 dev_err_ratelimited(ctx->dev, "MIPI DSI DCS write failed: %d\n", err);
131 * This panel is not able to auto-increment all cmd addresses so for some of
235 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
240 dev_warn(panel->dev, "failed to set display off: %d\n", ret);
244 dev_warn(panel->dev, "failed to enter sleep mode: %d\n", ret);
248 if (ctx->reset_gpio) {
249 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
253 regulator_disable(ctx->supply);
261 struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
264 ret = regulator_enable(ctx->supply);
266 dev_err(ctx->dev, "failed to enable supply: %d\n", ret);
270 if (ctx->reset_gpio) {
271 gpiod_set_value_cansleep(ctx->reset_gpio, 1);
273 gpiod_set_value_cansleep(ctx->reset_gpio, 0);
299 mode = drm_mode_duplicate(connector->dev, &default_mode);
301 dev_err(panel->dev, "failed to add mode %ux%u@%u\n",
304 return -ENOMEM;
309 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
312 connector->display_info.width_mm = mode->width_mm;
313 connector->display_info.height_mm = mode->height_mm;
326 struct device *dev = &dsi->dev;
336 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
337 if (IS_ERR(ctx->reset_gpio)) {
338 ret = PTR_ERR(ctx->reset_gpio);
343 ctx->supply = devm_regulator_get(dev, "power");
344 if (IS_ERR(ctx->supply)) {
345 ret = PTR_ERR(ctx->supply);
346 if (ret != -EPROBE_DEFER)
353 ctx->dev = dev;
355 dsi->lanes = 2;
356 dsi->format = MIPI_DSI_FMT_RGB888;
357 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
360 ret = drm_panel_of_backlight(&ctx->panel);
364 drm_panel_add(&ctx->panel);
369 drm_panel_remove(&ctx->panel);
381 drm_panel_remove(&ctx->panel);
394 .name = "panel-raydium-rm68200",