Lines Matching +full:vddp +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0-only
25 "vddp",
50 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_init()
51 struct device *dev = &jdi->dsi->dev; in jdi_panel_init()
54 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_panel_init()
68 ret = mipi_dsi_dcs_set_column_address(dsi, 0, jdi->mode->hdisplay - 1); in jdi_panel_init()
74 ret = mipi_dsi_dcs_set_page_address(dsi, 0, jdi->mode->vdisplay - 1); in jdi_panel_init()
140 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_on()
141 struct device *dev = &jdi->dsi->dev; in jdi_panel_on()
144 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in jdi_panel_on()
155 struct mipi_dsi_device *dsi = jdi->dsi; in jdi_panel_off()
156 struct device *dev = &jdi->dsi->dev; in jdi_panel_off()
159 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in jdi_panel_off()
176 backlight_disable(jdi->backlight); in jdi_panel_disable()
184 struct device *dev = &jdi->dsi->dev; in jdi_panel_unprepare()
189 ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_unprepare()
193 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_unprepare()
195 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_unprepare()
197 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_unprepare()
205 struct device *dev = &jdi->dsi->dev; in jdi_panel_prepare()
208 ret = regulator_bulk_enable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_prepare()
216 gpiod_set_value(jdi->dcdc_en_gpio, 1); in jdi_panel_prepare()
219 gpiod_set_value(jdi->reset_gpio, 0); in jdi_panel_prepare()
222 gpiod_set_value(jdi->enable_gpio, 1); in jdi_panel_prepare()
240 ret = regulator_bulk_disable(ARRAY_SIZE(jdi->supplies), jdi->supplies); in jdi_panel_prepare()
244 gpiod_set_value(jdi->enable_gpio, 0); in jdi_panel_prepare()
246 gpiod_set_value(jdi->reset_gpio, 1); in jdi_panel_prepare()
248 gpiod_set_value(jdi->dcdc_en_gpio, 0); in jdi_panel_prepare()
257 backlight_enable(jdi->backlight); in jdi_panel_enable()
280 struct device *dev = &jdi->dsi->dev; in jdi_panel_get_modes()
282 mode = drm_mode_duplicate(connector->dev, &default_mode); in jdi_panel_get_modes()
287 return -ENOMEM; in jdi_panel_get_modes()
294 connector->display_info.width_mm = 95; in jdi_panel_get_modes()
295 connector->display_info.height_mm = 151; in jdi_panel_get_modes()
304 u16 brightness = bl->props.brightness; in dsi_dcs_bl_get_brightness()
306 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
312 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_get_brightness()
322 dsi->mode_flags &= ~MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
324 ret = mipi_dsi_dcs_set_display_brightness(dsi, bl->props.brightness); in dsi_dcs_bl_update_status()
328 dsi->mode_flags |= MIPI_DSI_MODE_LPM; in dsi_dcs_bl_update_status()
341 struct device *dev = &dsi->dev; in drm_panel_create_dsi_backlight()
369 struct device *dev = &jdi->dsi->dev; in jdi_panel_add()
373 jdi->mode = &default_mode; in jdi_panel_add()
375 for (i = 0; i < ARRAY_SIZE(jdi->supplies); i++) in jdi_panel_add()
376 jdi->supplies[i].supply = regulator_names[i]; in jdi_panel_add()
378 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(jdi->supplies), in jdi_panel_add()
379 jdi->supplies); in jdi_panel_add()
384 jdi->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in jdi_panel_add()
385 if (IS_ERR(jdi->enable_gpio)) { in jdi_panel_add()
386 return dev_err_probe(dev, PTR_ERR(jdi->enable_gpio), in jdi_panel_add()
387 "cannot get enable-gpio %d\n", ret); in jdi_panel_add()
390 jdi->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in jdi_panel_add()
391 if (IS_ERR(jdi->reset_gpio)) in jdi_panel_add()
392 return dev_err_probe(dev, PTR_ERR(jdi->reset_gpio), in jdi_panel_add()
393 "cannot get reset-gpios %d\n", ret); in jdi_panel_add()
395 jdi->dcdc_en_gpio = devm_gpiod_get(dev, "dcdc-en", GPIOD_OUT_LOW); in jdi_panel_add()
396 if (IS_ERR(jdi->dcdc_en_gpio)) in jdi_panel_add()
397 return dev_err_probe(dev, PTR_ERR(jdi->dcdc_en_gpio), in jdi_panel_add()
398 "cannot get dcdc-en-gpio %d\n", ret); in jdi_panel_add()
400 jdi->backlight = drm_panel_create_dsi_backlight(jdi->dsi); in jdi_panel_add()
401 if (IS_ERR(jdi->backlight)) in jdi_panel_add()
402 return dev_err_probe(dev, PTR_ERR(jdi->backlight), in jdi_panel_add()
405 drm_panel_init(&jdi->base, &jdi->dsi->dev, &jdi_panel_funcs, in jdi_panel_add()
408 drm_panel_add(&jdi->base); in jdi_panel_add()
415 if (jdi->base.dev) in jdi_panel_del()
416 drm_panel_remove(&jdi->base); in jdi_panel_del()
424 dsi->lanes = 4; in jdi_panel_probe()
425 dsi->format = MIPI_DSI_FMT_RGB888; in jdi_panel_probe()
426 dsi->mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO | in jdi_panel_probe()
429 jdi = devm_kzalloc(&dsi->dev, sizeof(*jdi), GFP_KERNEL); in jdi_panel_probe()
431 return -ENOMEM; in jdi_panel_probe()
435 jdi->dsi = dsi; in jdi_panel_probe()
457 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", in jdi_panel_remove()
465 .name = "panel-jdi-lt070me05000",