Lines Matching refs:dbi
65 struct mipi_dbi dbi; member
106 struct mipi_dbi *dbi = &ws->dbi; in ws2401_read_mtp_id() local
110 ret = mipi_dbi_command_read(dbi, WS2401_READ_ID1, &id1); in ws2401_read_mtp_id()
115 ret = mipi_dbi_command_read(dbi, WS2401_READ_ID2, &id2); in ws2401_read_mtp_id()
120 ret = mipi_dbi_command_read(dbi, WS2401_READ_ID3, &id3); in ws2401_read_mtp_id()
130 struct mipi_dbi *dbi = &ws->dbi; in ws2401_power_on() local
155 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ws2401_power_on()
156 mipi_dbi_command(dbi, MIPI_DCS_EXIT_SLEEP_MODE); in ws2401_power_on()
160 mipi_dbi_command(dbi, WS2401_PASSWD1, 0x5a, 0x5a); in ws2401_power_on()
162 mipi_dbi_command(dbi, WS2401_RESCTL, 0x12); in ws2401_power_on()
164 mipi_dbi_command(dbi, MIPI_DCS_SET_ADDRESS_MODE, 0x01); in ws2401_power_on()
166 mipi_dbi_command(dbi, MIPI_DCS_SET_PIXEL_FORMAT, 0x70); in ws2401_power_on()
167 mipi_dbi_command(dbi, WS2401_SMPS, 0x00, 0x0f); in ws2401_power_on()
168 mipi_dbi_command(dbi, WS2401_PSMPS, 0x06, 0x03, /* DDVDH: 4.6v */ in ws2401_power_on()
170 mipi_dbi_command(dbi, WS2401_NSMPS, 0x06, 0x03, /* DDVDH: -4.6v */ in ws2401_power_on()
172 mipi_dbi_command(dbi, WS2401_SMPS, 0x02, 0x0f); in ws2401_power_on()
173 mipi_dbi_command(dbi, WS2401_PWRCTL, 0x10, 0xA9, 0x00, 0x01, 0x44, in ws2401_power_on()
179 mipi_dbi_command(dbi, WS2401_DISCTL, 0x01, 0x00, 0x00, 0x00, 0x14, in ws2401_power_on()
181 mipi_dbi_command(dbi, WS2401_VCOMCTL, 0x30, 0x53, 0x53); in ws2401_power_on()
182 mipi_dbi_command(dbi, WS2401_SRCCTL, 0x03, 0x0C, 0x00, 0x00, 0x00, in ws2401_power_on()
185 mipi_dbi_command(dbi, WS2401_PANELCTL, 0x14, 0x00, 0x80, 0x00); in ws2401_power_on()
186 mipi_dbi_command(dbi, WS2401_WRMIE, 0x01); in ws2401_power_on()
189 mipi_dbi_command(dbi, WS2401_GAMMA_R1, 0x00, in ws2401_power_on()
192 mipi_dbi_command(dbi, WS2401_GAMMA_R2, 0x00, in ws2401_power_on()
195 mipi_dbi_command(dbi, WS2401_GAMMA_G1, 0x00, in ws2401_power_on()
198 mipi_dbi_command(dbi, WS2401_GAMMA_G2, 0x00, in ws2401_power_on()
201 mipi_dbi_command(dbi, WS2401_GAMMA_B1, 0x00, in ws2401_power_on()
204 mipi_dbi_command(dbi, WS2401_GAMMA_B2, 0x00, in ws2401_power_on()
209 mipi_dbi_command(dbi, WS2401_WRCTRLD, 0x2c); in ws2401_power_on()
211 mipi_dbi_command(dbi, WS2401_WRCTRLD, 0x00); in ws2401_power_on()
217 mipi_dbi_command(dbi, WS2401_PASSWD1, 0xa5, 0xa5); in ws2401_power_on()
234 struct mipi_dbi *dbi = &ws->dbi; in ws2401_unprepare() local
238 mipi_dbi_command(dbi, WS2401_WRCTRLD, 0x00); in ws2401_unprepare()
239 mipi_dbi_command(dbi, MIPI_DCS_ENTER_SLEEP_MODE); in ws2401_unprepare()
247 struct mipi_dbi *dbi = &ws->dbi; in ws2401_disable() local
249 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_OFF); in ws2401_disable()
263 struct mipi_dbi *dbi = &ws->dbi; in ws2401_enable() local
265 mipi_dbi_command(dbi, MIPI_DCS_SET_DISPLAY_ON); in ws2401_enable()
321 struct mipi_dbi *dbi = &ws->dbi; in ws2401_set_brightness() local
325 mipi_dbi_command(dbi, WS2401_WRCTRLD, 0x00); in ws2401_set_brightness()
327 mipi_dbi_command(dbi, WS2401_WRCTRLD, 0x2c); in ws2401_set_brightness()
328 mipi_dbi_command(dbi, WS2401_WRDISBV, brightness); in ws2401_set_brightness()
373 ret = mipi_dbi_spi_init(spi, &ws->dbi, NULL); in ws2401_probe()
376 ws->dbi.read_commands = ws2401_dbi_read_commands; in ws2401_probe()