Lines Matching +full:i2c +full:- +full:alias
1 // SPDX-License-Identifier: GPL-2.0-only
13 #define DRIVER_NAME "ssd130x-spi"
23 * but toggling the Data/Command control pin (D/C#). Since for 4-wire SPI
24 * a D/C# pin is used, in contrast with I2C where a control byte is sent,
34 struct spi_device *spi = t->spi; in ssd130x_spi_write()
38 gpiod_set_value_cansleep(t->dc, 0); in ssd130x_spi_write()
41 gpiod_set_value_cansleep(t->dc, 1); in ssd130x_spi_write()
43 /* Remove control byte since is not used in a 4-wire SPI interface */ in ssd130x_spi_write()
44 return spi_write(spi, reg + 1, count - 1); in ssd130x_spi_write()
51 return -EOPNOTSUPP; in ssd130x_spi_read()
68 struct device *dev = &spi->dev; in ssd130x_spi_probe()
77 return dev_err_probe(dev, -ENOMEM, in ssd130x_spi_probe()
80 t->spi = spi; in ssd130x_spi_probe()
81 t->dc = dc; in ssd130x_spi_probe()
158 * auto loaded, unless it contains an alias that matches the MODALIAS reported.