Lines Matching +full:multi +full:- +full:bit

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * DRM driver for Multi-Inno MI0283QT panels
46 #define ILI9341_MADCTL_BGR BIT(3)
47 #define ILI9341_MADCTL_MV BIT(5)
48 #define ILI9341_MADCTL_MX BIT(6)
49 #define ILI9341_MADCTL_MY BIT(7)
55 struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(pipe->crtc.dev); in mi0283qt_enable()
56 struct mipi_dbi *dbi = &dbidev->dbi; in mi0283qt_enable()
60 if (!drm_dev_enter(pipe->crtc.dev, &idx)) in mi0283qt_enable()
116 * resets only on power-on and not on each reboot through in mi0283qt_enable()
117 * a gpio like the rpi-display does. in mi0283qt_enable()
121 switch (dbidev->rotation) { in mi0283qt_enable()
159 .desc = "Multi-Inno MI0283QT",
166 { .compatible = "multi-inno,mi0283qt" },
179 struct device *dev = &spi->dev; in mi0283qt_probe()
192 dbi = &dbidev->dbi; in mi0283qt_probe()
193 drm = &dbidev->drm; in mi0283qt_probe()
195 dbi->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in mi0283qt_probe()
196 if (IS_ERR(dbi->reset)) in mi0283qt_probe()
197 return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n"); in mi0283qt_probe()
203 dbidev->regulator = devm_regulator_get(dev, "power"); in mi0283qt_probe()
204 if (IS_ERR(dbidev->regulator)) in mi0283qt_probe()
205 return PTR_ERR(dbidev->regulator); in mi0283qt_probe()
207 dbidev->backlight = devm_of_find_backlight(dev); in mi0283qt_probe()
208 if (IS_ERR(dbidev->backlight)) in mi0283qt_probe()
209 return PTR_ERR(dbidev->backlight); in mi0283qt_probe()
276 MODULE_DESCRIPTION("Multi-Inno MI0283QT DRM driver");