Lines Matching +full:vdd1 +full:- +full:supply
1 // SPDX-License-Identifier: GPL-2.0+
3 * MIPI-DSI Samsung s6d16d0 panel driver. This is a 864x480
4 * AMOLED panel with a command-only DSI interface.
20 struct regulator *supply;
51 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev);
57 dev_err(s6->dev, "failed to enter sleep mode (%d)\n", ret);
62 gpiod_set_value_cansleep(s6->reset_gpio, 1);
63 regulator_disable(s6->supply);
71 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev);
74 ret = regulator_enable(s6->supply);
76 dev_err(s6->dev, "failed to enable supply (%d)\n", ret);
81 gpiod_set_value_cansleep(s6->reset_gpio, 1);
83 /* De-assert RESET */
84 gpiod_set_value_cansleep(s6->reset_gpio, 0);
91 dev_err(s6->dev, "failed to enable vblank TE (%d)\n", ret);
97 dev_err(s6->dev, "failed to exit sleep mode (%d)\n", ret);
107 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev);
112 dev_err(s6->dev, "failed to turn display on (%d)\n", ret);
122 struct mipi_dsi_device *dsi = to_mipi_dsi_device(s6->dev);
127 dev_err(s6->dev, "failed to turn display off (%d)\n", ret);
139 mode = drm_mode_duplicate(connector->dev, &samsung_s6d16d0_mode);
141 dev_err(panel->dev, "bad mode or failed to add mode\n");
142 return -EINVAL;
145 mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
147 connector->display_info.width_mm = mode->width_mm;
148 connector->display_info.height_mm = mode->height_mm;
165 struct device *dev = &dsi->dev;
176 s6->dev = dev;
178 dsi->lanes = 2;
179 dsi->format = MIPI_DSI_FMT_RGB888;
180 dsi->hs_rate = 420160000;
181 dsi->lp_rate = 19200000;
189 dsi->mode_flags = MIPI_DSI_CLOCK_NON_CONTINUOUS;
191 s6->supply = devm_regulator_get(dev, "vdd1");
192 if (IS_ERR(s6->supply))
193 return PTR_ERR(s6->supply);
196 s6->reset_gpio = devm_gpiod_get_optional(dev, "reset",
198 if (IS_ERR(s6->reset_gpio)) {
199 ret = PTR_ERR(s6->reset_gpio);
200 if (ret != -EPROBE_DEFER)
205 drm_panel_add(&s6->panel);
209 drm_panel_remove(&s6->panel);
219 drm_panel_remove(&s6->panel);
232 .name = "panel-samsung-s6d16d0",
239 MODULE_DESCRIPTION("MIPI-DSI s6d16d0 Panel Driver");