Lines Matching +full:vddpos +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0-only
4 * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
22 "vddpos",
49 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ebbg_ft8719_reset()
51 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_reset()
53 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in ebbg_ft8719_reset()
59 struct mipi_dsi_device *dsi = ctx->dsi; in ebbg_ft8719_on()
60 struct device *dev = &dsi->dev; in ebbg_ft8719_on()
63 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in ebbg_ft8719_on()
92 struct mipi_dsi_device *dsi = ctx->dsi; in ebbg_ft8719_off()
93 struct device *dev = &dsi->dev; in ebbg_ft8719_off()
96 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in ebbg_ft8719_off()
118 struct device *dev = &ctx->dsi->dev; in ebbg_ft8719_prepare()
121 ret = regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_prepare()
130 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_prepare()
140 struct device *dev = &ctx->dsi->dev; in ebbg_ft8719_unprepare()
145 dev_err(dev, "Failed to un-initialize panel: %d\n", ret); in ebbg_ft8719_unprepare()
147 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in ebbg_ft8719_unprepare()
149 ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); in ebbg_ft8719_unprepare()
151 dev_err(panel->dev, "Failed to disable regulators: %d\n", ret); in ebbg_ft8719_unprepare()
175 mode = drm_mode_duplicate(connector->dev, &ebbg_ft8719_mode); in ebbg_ft8719_get_modes()
177 return -ENOMEM; in ebbg_ft8719_get_modes()
181 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED; in ebbg_ft8719_get_modes()
182 connector->display_info.width_mm = mode->width_mm; in ebbg_ft8719_get_modes()
183 connector->display_info.height_mm = mode->height_mm; in ebbg_ft8719_get_modes()
197 struct device *dev = &dsi->dev; in ebbg_ft8719_probe()
203 return -ENOMEM; in ebbg_ft8719_probe()
205 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) in ebbg_ft8719_probe()
206 ctx->supplies[i].supply = regulator_names[i]; in ebbg_ft8719_probe()
208 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), in ebbg_ft8719_probe()
209 ctx->supplies); in ebbg_ft8719_probe()
213 for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) { in ebbg_ft8719_probe()
214 ret = regulator_set_load(ctx->supplies[i].consumer, in ebbg_ft8719_probe()
221 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ebbg_ft8719_probe()
222 if (IS_ERR(ctx->reset_gpio)) in ebbg_ft8719_probe()
223 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in ebbg_ft8719_probe()
224 "Failed to get reset-gpios\n"); in ebbg_ft8719_probe()
226 ctx->dsi = dsi; in ebbg_ft8719_probe()
229 dsi->lanes = 4; in ebbg_ft8719_probe()
230 dsi->format = MIPI_DSI_FMT_RGB888; in ebbg_ft8719_probe()
231 dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | in ebbg_ft8719_probe()
234 drm_panel_init(&ctx->panel, dev, &ebbg_ft8719_panel_funcs, in ebbg_ft8719_probe()
237 ret = drm_panel_of_backlight(&ctx->panel); in ebbg_ft8719_probe()
241 drm_panel_add(&ctx->panel); in ebbg_ft8719_probe()
246 drm_panel_remove(&ctx->panel); in ebbg_ft8719_probe()
260 dev_err(&dsi->dev, "Failed to detach from DSI host: %d\n", ret); in ebbg_ft8719_remove()
262 drm_panel_remove(&ctx->panel); in ebbg_ft8719_remove()
275 .name = "panel-ebbg-ft8719",