Lines Matching +full:vccio +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0
5 * Found in the Samsung Galaxy Beam GT-I8350 mobile phone.
16 #include <linux/media-bus-format.h>
49 * struct db7430 - state container for a panel controlled by the DB7430
61 /** @regulators: VCCIO and VIO supply regulators */
91 struct mipi_dbi *dbi = &db->dbi;
95 ret = regulator_bulk_enable(ARRAY_SIZE(db->regulators),
96 db->regulators);
98 dev_err(db->dev, "failed to enable regulators: %d\n", ret);
104 gpiod_set_value_cansleep(db->reset, 1);
106 /* De-assert reset */
107 gpiod_set_value_cansleep(db->reset, 0);
110 dev_dbg(db->dev, "de-asserted RESET\n");
167 gpiod_set_value_cansleep(db->reset, 1);
168 return regulator_bulk_disable(ARRAY_SIZE(db->regulators),
169 db->regulators);
180 struct mipi_dbi *dbi = &db->dbi;
198 struct mipi_dbi *dbi = &db->dbi;
204 /* NVM (non-volatile memory) load sequence */
223 * db7430_get_modes() - return the mode
234 mode = drm_mode_duplicate(connector->dev, &db7430_480_800_mode);
236 dev_err(db->dev, "failed to add mode\n");
237 return -ENOMEM;
240 connector->display_info.bpc = 8;
241 connector->display_info.width_mm = mode->width_mm;
242 connector->display_info.height_mm = mode->height_mm;
243 connector->display_info.bus_flags =
245 drm_display_info_set_bus_formats(&connector->display_info,
249 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
266 struct device *dev = &spi->dev;
275 db->dev = dev;
278 * VCI is the analog voltage supply
279 * VCCIO is the digital I/O voltage supply
281 db->regulators[0].supply = "vci";
282 db->regulators[1].supply = "vccio";
284 ARRAY_SIZE(db->regulators),
285 db->regulators);
289 db->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
290 if (IS_ERR(db->reset)) {
291 ret = PTR_ERR(db->reset);
295 ret = mipi_dbi_spi_init(spi, &db->dbi, NULL);
300 ret = drm_panel_of_backlight(&db->panel);
306 drm_panel_add(&db->panel);
316 drm_panel_remove(&db->panel);
321 * so list the different variants here and add per-variant data if needed.
340 .name = "db7430-panel",