Lines Matching +full:jd +full:- +full:t18003 +full:- +full:t01

1 // SPDX-License-Identifier: GPL-2.0+
12 #include <linux/dma-buf.h>
62 struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(pipe->crtc.dev); in st7735r_pipe_enable()
65 struct mipi_dbi *dbi = &dbidev->dbi; in st7735r_pipe_enable()
69 if (!drm_dev_enter(pipe->crtc.dev, &idx)) in st7735r_pipe_enable()
95 switch (dbidev->rotation) { in st7735r_pipe_enable()
110 if (priv->cfg->rgb) in st7735r_pipe_enable()
170 { .compatible = "jianda,jd-t18003-t01", .data = &jd_t18003_t01_cfg },
177 { "jd-t18003-t01", (uintptr_t)&jd_t18003_t01_cfg },
185 struct device *dev = &spi->dev; in st7735r_probe()
195 cfg = device_get_match_data(&spi->dev); in st7735r_probe()
197 cfg = (void *)spi_get_device_id(spi)->driver_data; in st7735r_probe()
204 dbidev = &priv->dbidev; in st7735r_probe()
205 priv->cfg = cfg; in st7735r_probe()
207 dbi = &dbidev->dbi; in st7735r_probe()
208 drm = &dbidev->drm; in st7735r_probe()
210 dbi->reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in st7735r_probe()
211 if (IS_ERR(dbi->reset)) in st7735r_probe()
212 return dev_err_probe(dev, PTR_ERR(dbi->reset), "Failed to get GPIO 'reset'\n"); in st7735r_probe()
218 dbidev->backlight = devm_of_find_backlight(dev); in st7735r_probe()
219 if (IS_ERR(dbidev->backlight)) in st7735r_probe()
220 return PTR_ERR(dbidev->backlight); in st7735r_probe()
228 if (cfg->write_only) in st7735r_probe()
229 dbi->read_commands = NULL; in st7735r_probe()
231 dbidev->left_offset = cfg->left_offset; in st7735r_probe()
232 dbidev->top_offset = cfg->top_offset; in st7735r_probe()
234 ret = mipi_dbi_dev_init(dbidev, &st7735r_pipe_funcs, &cfg->mode, in st7735r_probe()