Lines Matching +full:panel +full:- +full:mipi +full:- +full:dbi +full:- +full:spi
1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/spi/spi.h>
11 #include "panel-samsung-s6e63m0.h"
23 struct mipi_dbi *dbi = trsp; in s6e63m0_spi_dcs_read() local
26 ret = mipi_dbi_command_read(dbi, cmd, data); in s6e63m0_spi_dcs_read()
28 dev_err(dev, "error on DBI read command %02x\n", cmd); in s6e63m0_spi_dcs_read()
36 struct mipi_dbi *dbi = trsp; in s6e63m0_spi_dcs_write() local
39 ret = mipi_dbi_command_stackbuf(dbi, data[0], (data + 1), (len - 1)); in s6e63m0_spi_dcs_write()
45 static int s6e63m0_spi_probe(struct spi_device *spi) in s6e63m0_spi_probe() argument
47 struct device *dev = &spi->dev; in s6e63m0_spi_probe()
48 struct mipi_dbi *dbi; in s6e63m0_spi_probe() local
51 dbi = devm_kzalloc(dev, sizeof(*dbi), GFP_KERNEL); in s6e63m0_spi_probe()
52 if (!dbi) in s6e63m0_spi_probe()
53 return -ENOMEM; in s6e63m0_spi_probe()
55 ret = mipi_dbi_spi_init(spi, dbi, NULL); in s6e63m0_spi_probe()
57 return dev_err_probe(dev, ret, "MIPI DBI init failed\n"); in s6e63m0_spi_probe()
59 dbi->read_commands = s6e63m0_dbi_read_commands; in s6e63m0_spi_probe()
61 return s6e63m0_probe(dev, dbi, s6e63m0_spi_dcs_read, in s6e63m0_spi_probe()
65 static void s6e63m0_spi_remove(struct spi_device *spi) in s6e63m0_spi_remove() argument
67 s6e63m0_remove(&spi->dev); in s6e63m0_spi_remove()
80 .name = "panel-samsung-s6e63m0",
87 MODULE_DESCRIPTION("s6e63m0 LCD SPI Driver");