Skip to content

Commit bfbdf72

Browse files
Abhishek-Tamboli9superna9999
authored andcommitted
drm/panel: nv3051d: Transition to mipi_dsi_dcs_write_seq_multi
Replace deprecated 'mipi_dsi_dcs_write_seq()' macro to 'mipi_dsi_dcs_write_seq_multi' macro in panel_nv3051d_init_sequence function. Signed-off-by: Abhishek Tamboli <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Neil Armstrong <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 076403a commit bfbdf72

File tree

1 file changed

+184
-183
lines changed

1 file changed

+184
-183
lines changed

drivers/gpu/drm/panel/panel-newvision-nv3051d.c

Lines changed: 184 additions & 183 deletions
Original file line numberDiff line numberDiff line change
@@ -47,195 +47,196 @@ static inline struct panel_nv3051d *panel_to_panelnv3051d(struct drm_panel *pane
4747
static int panel_nv3051d_init_sequence(struct panel_nv3051d *ctx)
4848
{
4949
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
50+
struct mipi_dsi_multi_context dsi_ctx = {.dsi = dsi};
5051

5152
/*
5253
* Init sequence was supplied by device vendor with no
5354
* documentation.
5455
*/
5556

56-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x30);
57-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x52);
58-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x01);
59-
mipi_dsi_dcs_write_seq(dsi, 0xE3, 0x00);
60-
mipi_dsi_dcs_write_seq(dsi, 0x03, 0x40);
61-
mipi_dsi_dcs_write_seq(dsi, 0x04, 0x00);
62-
mipi_dsi_dcs_write_seq(dsi, 0x05, 0x03);
63-
mipi_dsi_dcs_write_seq(dsi, 0x24, 0x12);
64-
mipi_dsi_dcs_write_seq(dsi, 0x25, 0x1E);
65-
mipi_dsi_dcs_write_seq(dsi, 0x26, 0x28);
66-
mipi_dsi_dcs_write_seq(dsi, 0x27, 0x52);
67-
mipi_dsi_dcs_write_seq(dsi, 0x28, 0x57);
68-
mipi_dsi_dcs_write_seq(dsi, 0x29, 0x01);
69-
mipi_dsi_dcs_write_seq(dsi, 0x2A, 0xDF);
70-
mipi_dsi_dcs_write_seq(dsi, 0x38, 0x9C);
71-
mipi_dsi_dcs_write_seq(dsi, 0x39, 0xA7);
72-
mipi_dsi_dcs_write_seq(dsi, 0x3A, 0x53);
73-
mipi_dsi_dcs_write_seq(dsi, 0x44, 0x00);
74-
mipi_dsi_dcs_write_seq(dsi, 0x49, 0x3C);
75-
mipi_dsi_dcs_write_seq(dsi, 0x59, 0xFE);
76-
mipi_dsi_dcs_write_seq(dsi, 0x5C, 0x00);
77-
mipi_dsi_dcs_write_seq(dsi, 0x91, 0x77);
78-
mipi_dsi_dcs_write_seq(dsi, 0x92, 0x77);
79-
mipi_dsi_dcs_write_seq(dsi, 0xA0, 0x55);
80-
mipi_dsi_dcs_write_seq(dsi, 0xA1, 0x50);
81-
mipi_dsi_dcs_write_seq(dsi, 0xA4, 0x9C);
82-
mipi_dsi_dcs_write_seq(dsi, 0xA7, 0x02);
83-
mipi_dsi_dcs_write_seq(dsi, 0xA8, 0x01);
84-
mipi_dsi_dcs_write_seq(dsi, 0xA9, 0x01);
85-
mipi_dsi_dcs_write_seq(dsi, 0xAA, 0xFC);
86-
mipi_dsi_dcs_write_seq(dsi, 0xAB, 0x28);
87-
mipi_dsi_dcs_write_seq(dsi, 0xAC, 0x06);
88-
mipi_dsi_dcs_write_seq(dsi, 0xAD, 0x06);
89-
mipi_dsi_dcs_write_seq(dsi, 0xAE, 0x06);
90-
mipi_dsi_dcs_write_seq(dsi, 0xAF, 0x03);
91-
mipi_dsi_dcs_write_seq(dsi, 0xB0, 0x08);
92-
mipi_dsi_dcs_write_seq(dsi, 0xB1, 0x26);
93-
mipi_dsi_dcs_write_seq(dsi, 0xB2, 0x28);
94-
mipi_dsi_dcs_write_seq(dsi, 0xB3, 0x28);
95-
mipi_dsi_dcs_write_seq(dsi, 0xB4, 0x33);
96-
mipi_dsi_dcs_write_seq(dsi, 0xB5, 0x08);
97-
mipi_dsi_dcs_write_seq(dsi, 0xB6, 0x26);
98-
mipi_dsi_dcs_write_seq(dsi, 0xB7, 0x08);
99-
mipi_dsi_dcs_write_seq(dsi, 0xB8, 0x26);
100-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x30);
101-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x52);
102-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x02);
103-
mipi_dsi_dcs_write_seq(dsi, 0xB1, 0x0E);
104-
mipi_dsi_dcs_write_seq(dsi, 0xD1, 0x0E);
105-
mipi_dsi_dcs_write_seq(dsi, 0xB4, 0x29);
106-
mipi_dsi_dcs_write_seq(dsi, 0xD4, 0x2B);
107-
mipi_dsi_dcs_write_seq(dsi, 0xB2, 0x0C);
108-
mipi_dsi_dcs_write_seq(dsi, 0xD2, 0x0A);
109-
mipi_dsi_dcs_write_seq(dsi, 0xB3, 0x28);
110-
mipi_dsi_dcs_write_seq(dsi, 0xD3, 0x28);
111-
mipi_dsi_dcs_write_seq(dsi, 0xB6, 0x11);
112-
mipi_dsi_dcs_write_seq(dsi, 0xD6, 0x0D);
113-
mipi_dsi_dcs_write_seq(dsi, 0xB7, 0x32);
114-
mipi_dsi_dcs_write_seq(dsi, 0xD7, 0x30);
115-
mipi_dsi_dcs_write_seq(dsi, 0xC1, 0x04);
116-
mipi_dsi_dcs_write_seq(dsi, 0xE1, 0x06);
117-
mipi_dsi_dcs_write_seq(dsi, 0xB8, 0x0A);
118-
mipi_dsi_dcs_write_seq(dsi, 0xD8, 0x0A);
119-
mipi_dsi_dcs_write_seq(dsi, 0xB9, 0x01);
120-
mipi_dsi_dcs_write_seq(dsi, 0xD9, 0x01);
121-
mipi_dsi_dcs_write_seq(dsi, 0xBD, 0x13);
122-
mipi_dsi_dcs_write_seq(dsi, 0xDD, 0x13);
123-
mipi_dsi_dcs_write_seq(dsi, 0xBC, 0x11);
124-
mipi_dsi_dcs_write_seq(dsi, 0xDC, 0x11);
125-
mipi_dsi_dcs_write_seq(dsi, 0xBB, 0x0F);
126-
mipi_dsi_dcs_write_seq(dsi, 0xDB, 0x0F);
127-
mipi_dsi_dcs_write_seq(dsi, 0xBA, 0x0F);
128-
mipi_dsi_dcs_write_seq(dsi, 0xDA, 0x0F);
129-
mipi_dsi_dcs_write_seq(dsi, 0xBE, 0x18);
130-
mipi_dsi_dcs_write_seq(dsi, 0xDE, 0x18);
131-
mipi_dsi_dcs_write_seq(dsi, 0xBF, 0x0F);
132-
mipi_dsi_dcs_write_seq(dsi, 0xDF, 0x0F);
133-
mipi_dsi_dcs_write_seq(dsi, 0xC0, 0x17);
134-
mipi_dsi_dcs_write_seq(dsi, 0xE0, 0x17);
135-
mipi_dsi_dcs_write_seq(dsi, 0xB5, 0x3B);
136-
mipi_dsi_dcs_write_seq(dsi, 0xD5, 0x3C);
137-
mipi_dsi_dcs_write_seq(dsi, 0xB0, 0x0B);
138-
mipi_dsi_dcs_write_seq(dsi, 0xD0, 0x0C);
139-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x30);
140-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x52);
141-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x03);
142-
mipi_dsi_dcs_write_seq(dsi, 0x00, 0x2A);
143-
mipi_dsi_dcs_write_seq(dsi, 0x01, 0x2A);
144-
mipi_dsi_dcs_write_seq(dsi, 0x02, 0x2A);
145-
mipi_dsi_dcs_write_seq(dsi, 0x03, 0x2A);
146-
mipi_dsi_dcs_write_seq(dsi, 0x04, 0x61);
147-
mipi_dsi_dcs_write_seq(dsi, 0x05, 0x80);
148-
mipi_dsi_dcs_write_seq(dsi, 0x06, 0xC7);
149-
mipi_dsi_dcs_write_seq(dsi, 0x07, 0x01);
150-
mipi_dsi_dcs_write_seq(dsi, 0x08, 0x82);
151-
mipi_dsi_dcs_write_seq(dsi, 0x09, 0x83);
152-
mipi_dsi_dcs_write_seq(dsi, 0x30, 0x2A);
153-
mipi_dsi_dcs_write_seq(dsi, 0x31, 0x2A);
154-
mipi_dsi_dcs_write_seq(dsi, 0x32, 0x2A);
155-
mipi_dsi_dcs_write_seq(dsi, 0x33, 0x2A);
156-
mipi_dsi_dcs_write_seq(dsi, 0x34, 0x61);
157-
mipi_dsi_dcs_write_seq(dsi, 0x35, 0xC5);
158-
mipi_dsi_dcs_write_seq(dsi, 0x36, 0x80);
159-
mipi_dsi_dcs_write_seq(dsi, 0x37, 0x23);
160-
mipi_dsi_dcs_write_seq(dsi, 0x40, 0x82);
161-
mipi_dsi_dcs_write_seq(dsi, 0x41, 0x83);
162-
mipi_dsi_dcs_write_seq(dsi, 0x42, 0x80);
163-
mipi_dsi_dcs_write_seq(dsi, 0x43, 0x81);
164-
mipi_dsi_dcs_write_seq(dsi, 0x44, 0x11);
165-
mipi_dsi_dcs_write_seq(dsi, 0x45, 0xF2);
166-
mipi_dsi_dcs_write_seq(dsi, 0x46, 0xF1);
167-
mipi_dsi_dcs_write_seq(dsi, 0x47, 0x11);
168-
mipi_dsi_dcs_write_seq(dsi, 0x48, 0xF4);
169-
mipi_dsi_dcs_write_seq(dsi, 0x49, 0xF3);
170-
mipi_dsi_dcs_write_seq(dsi, 0x50, 0x02);
171-
mipi_dsi_dcs_write_seq(dsi, 0x51, 0x01);
172-
mipi_dsi_dcs_write_seq(dsi, 0x52, 0x04);
173-
mipi_dsi_dcs_write_seq(dsi, 0x53, 0x03);
174-
mipi_dsi_dcs_write_seq(dsi, 0x54, 0x11);
175-
mipi_dsi_dcs_write_seq(dsi, 0x55, 0xF6);
176-
mipi_dsi_dcs_write_seq(dsi, 0x56, 0xF5);
177-
mipi_dsi_dcs_write_seq(dsi, 0x57, 0x11);
178-
mipi_dsi_dcs_write_seq(dsi, 0x58, 0xF8);
179-
mipi_dsi_dcs_write_seq(dsi, 0x59, 0xF7);
180-
mipi_dsi_dcs_write_seq(dsi, 0x7E, 0x02);
181-
mipi_dsi_dcs_write_seq(dsi, 0x7F, 0x80);
182-
mipi_dsi_dcs_write_seq(dsi, 0xE0, 0x5A);
183-
mipi_dsi_dcs_write_seq(dsi, 0xB1, 0x00);
184-
mipi_dsi_dcs_write_seq(dsi, 0xB4, 0x0E);
185-
mipi_dsi_dcs_write_seq(dsi, 0xB5, 0x0F);
186-
mipi_dsi_dcs_write_seq(dsi, 0xB6, 0x04);
187-
mipi_dsi_dcs_write_seq(dsi, 0xB7, 0x07);
188-
mipi_dsi_dcs_write_seq(dsi, 0xB8, 0x06);
189-
mipi_dsi_dcs_write_seq(dsi, 0xB9, 0x05);
190-
mipi_dsi_dcs_write_seq(dsi, 0xBA, 0x0F);
191-
mipi_dsi_dcs_write_seq(dsi, 0xC7, 0x00);
192-
mipi_dsi_dcs_write_seq(dsi, 0xCA, 0x0E);
193-
mipi_dsi_dcs_write_seq(dsi, 0xCB, 0x0F);
194-
mipi_dsi_dcs_write_seq(dsi, 0xCC, 0x04);
195-
mipi_dsi_dcs_write_seq(dsi, 0xCD, 0x07);
196-
mipi_dsi_dcs_write_seq(dsi, 0xCE, 0x06);
197-
mipi_dsi_dcs_write_seq(dsi, 0xCF, 0x05);
198-
mipi_dsi_dcs_write_seq(dsi, 0xD0, 0x0F);
199-
mipi_dsi_dcs_write_seq(dsi, 0x81, 0x0F);
200-
mipi_dsi_dcs_write_seq(dsi, 0x84, 0x0E);
201-
mipi_dsi_dcs_write_seq(dsi, 0x85, 0x0F);
202-
mipi_dsi_dcs_write_seq(dsi, 0x86, 0x07);
203-
mipi_dsi_dcs_write_seq(dsi, 0x87, 0x04);
204-
mipi_dsi_dcs_write_seq(dsi, 0x88, 0x05);
205-
mipi_dsi_dcs_write_seq(dsi, 0x89, 0x06);
206-
mipi_dsi_dcs_write_seq(dsi, 0x8A, 0x00);
207-
mipi_dsi_dcs_write_seq(dsi, 0x97, 0x0F);
208-
mipi_dsi_dcs_write_seq(dsi, 0x9A, 0x0E);
209-
mipi_dsi_dcs_write_seq(dsi, 0x9B, 0x0F);
210-
mipi_dsi_dcs_write_seq(dsi, 0x9C, 0x07);
211-
mipi_dsi_dcs_write_seq(dsi, 0x9D, 0x04);
212-
mipi_dsi_dcs_write_seq(dsi, 0x9E, 0x05);
213-
mipi_dsi_dcs_write_seq(dsi, 0x9F, 0x06);
214-
mipi_dsi_dcs_write_seq(dsi, 0xA0, 0x00);
215-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x30);
216-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x52);
217-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x02);
218-
mipi_dsi_dcs_write_seq(dsi, 0x01, 0x01);
219-
mipi_dsi_dcs_write_seq(dsi, 0x02, 0xDA);
220-
mipi_dsi_dcs_write_seq(dsi, 0x03, 0xBA);
221-
mipi_dsi_dcs_write_seq(dsi, 0x04, 0xA8);
222-
mipi_dsi_dcs_write_seq(dsi, 0x05, 0x9A);
223-
mipi_dsi_dcs_write_seq(dsi, 0x06, 0x70);
224-
mipi_dsi_dcs_write_seq(dsi, 0x07, 0xFF);
225-
mipi_dsi_dcs_write_seq(dsi, 0x08, 0x91);
226-
mipi_dsi_dcs_write_seq(dsi, 0x09, 0x90);
227-
mipi_dsi_dcs_write_seq(dsi, 0x0A, 0xFF);
228-
mipi_dsi_dcs_write_seq(dsi, 0x0B, 0x8F);
229-
mipi_dsi_dcs_write_seq(dsi, 0x0C, 0x60);
230-
mipi_dsi_dcs_write_seq(dsi, 0x0D, 0x58);
231-
mipi_dsi_dcs_write_seq(dsi, 0x0E, 0x48);
232-
mipi_dsi_dcs_write_seq(dsi, 0x0F, 0x38);
233-
mipi_dsi_dcs_write_seq(dsi, 0x10, 0x2B);
234-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x30);
235-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x52);
236-
mipi_dsi_dcs_write_seq(dsi, 0xFF, 0x00);
237-
mipi_dsi_dcs_write_seq(dsi, 0x36, 0x02);
238-
mipi_dsi_dcs_write_seq(dsi, 0x3A, 0x70);
57+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x30);
58+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x52);
59+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x01);
60+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xE3, 0x00);
61+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x03, 0x40);
62+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x04, 0x00);
63+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x05, 0x03);
64+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x24, 0x12);
65+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x25, 0x1E);
66+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x26, 0x28);
67+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x27, 0x52);
68+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x28, 0x57);
69+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x29, 0x01);
70+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x2A, 0xDF);
71+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x38, 0x9C);
72+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x39, 0xA7);
73+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x3A, 0x53);
74+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x44, 0x00);
75+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x49, 0x3C);
76+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x59, 0xFE);
77+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x5C, 0x00);
78+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x91, 0x77);
79+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x92, 0x77);
80+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA0, 0x55);
81+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA1, 0x50);
82+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA4, 0x9C);
83+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA7, 0x02);
84+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA8, 0x01);
85+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA9, 0x01);
86+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAA, 0xFC);
87+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAB, 0x28);
88+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAC, 0x06);
89+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAD, 0x06);
90+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAE, 0x06);
91+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xAF, 0x03);
92+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB0, 0x08);
93+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB1, 0x26);
94+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB2, 0x28);
95+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB3, 0x28);
96+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB4, 0x33);
97+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB5, 0x08);
98+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB6, 0x26);
99+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB7, 0x08);
100+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB8, 0x26);
101+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x30);
102+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x52);
103+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x02);
104+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB1, 0x0E);
105+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD1, 0x0E);
106+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB4, 0x29);
107+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD4, 0x2B);
108+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB2, 0x0C);
109+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD2, 0x0A);
110+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB3, 0x28);
111+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD3, 0x28);
112+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB6, 0x11);
113+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD6, 0x0D);
114+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB7, 0x32);
115+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD7, 0x30);
116+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xC1, 0x04);
117+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xE1, 0x06);
118+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB8, 0x0A);
119+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD8, 0x0A);
120+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB9, 0x01);
121+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD9, 0x01);
122+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBD, 0x13);
123+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDD, 0x13);
124+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBC, 0x11);
125+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDC, 0x11);
126+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBB, 0x0F);
127+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDB, 0x0F);
128+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBA, 0x0F);
129+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDA, 0x0F);
130+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBE, 0x18);
131+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDE, 0x18);
132+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBF, 0x0F);
133+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xDF, 0x0F);
134+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xC0, 0x17);
135+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xE0, 0x17);
136+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB5, 0x3B);
137+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD5, 0x3C);
138+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB0, 0x0B);
139+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD0, 0x0C);
140+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x30);
141+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x52);
142+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x03);
143+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x00, 0x2A);
144+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x01, 0x2A);
145+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x02, 0x2A);
146+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x03, 0x2A);
147+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x04, 0x61);
148+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x05, 0x80);
149+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x06, 0xC7);
150+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x07, 0x01);
151+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x08, 0x82);
152+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x09, 0x83);
153+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x30, 0x2A);
154+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x31, 0x2A);
155+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x32, 0x2A);
156+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x33, 0x2A);
157+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x34, 0x61);
158+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x35, 0xC5);
159+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x36, 0x80);
160+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x37, 0x23);
161+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x40, 0x82);
162+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x41, 0x83);
163+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x42, 0x80);
164+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x43, 0x81);
165+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x44, 0x11);
166+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x45, 0xF2);
167+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x46, 0xF1);
168+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x47, 0x11);
169+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x48, 0xF4);
170+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x49, 0xF3);
171+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x50, 0x02);
172+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x51, 0x01);
173+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x52, 0x04);
174+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x53, 0x03);
175+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x54, 0x11);
176+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x55, 0xF6);
177+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x56, 0xF5);
178+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x57, 0x11);
179+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x58, 0xF8);
180+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x59, 0xF7);
181+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x7E, 0x02);
182+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x7F, 0x80);
183+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xE0, 0x5A);
184+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB1, 0x00);
185+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB4, 0x0E);
186+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB5, 0x0F);
187+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB6, 0x04);
188+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB7, 0x07);
189+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB8, 0x06);
190+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xB9, 0x05);
191+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xBA, 0x0F);
192+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xC7, 0x00);
193+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCA, 0x0E);
194+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCB, 0x0F);
195+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCC, 0x04);
196+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCD, 0x07);
197+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCE, 0x06);
198+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xCF, 0x05);
199+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xD0, 0x0F);
200+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x81, 0x0F);
201+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x84, 0x0E);
202+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x85, 0x0F);
203+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x86, 0x07);
204+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x87, 0x04);
205+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x88, 0x05);
206+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x89, 0x06);
207+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x8A, 0x00);
208+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x97, 0x0F);
209+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9A, 0x0E);
210+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9B, 0x0F);
211+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9C, 0x07);
212+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9D, 0x04);
213+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9E, 0x05);
214+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x9F, 0x06);
215+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xA0, 0x00);
216+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x30);
217+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x52);
218+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x02);
219+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x01, 0x01);
220+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x02, 0xDA);
221+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x03, 0xBA);
222+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x04, 0xA8);
223+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x05, 0x9A);
224+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x06, 0x70);
225+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x07, 0xFF);
226+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x08, 0x91);
227+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x09, 0x90);
228+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0A, 0xFF);
229+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0B, 0x8F);
230+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0C, 0x60);
231+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0D, 0x58);
232+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0E, 0x48);
233+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x0F, 0x38);
234+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x10, 0x2B);
235+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x30);
236+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x52);
237+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0xFF, 0x00);
238+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x36, 0x02);
239+
mipi_dsi_dcs_write_seq_multi(&dsi_ctx, 0x3A, 0x70);
239240

240241
dev_dbg(ctx->dev, "Panel init sequence done\n");
241242

0 commit comments

Comments
 (0)