Lines Matching +full:0 +full:x4300

35 #define OV5645_SYSTEM_CTRL0		0x3008
36 #define OV5645_SYSTEM_CTRL0_START 0x02
37 #define OV5645_SYSTEM_CTRL0_STOP 0x42
38 #define OV5645_CHIP_ID_HIGH 0x300a
39 #define OV5645_CHIP_ID_HIGH_BYTE 0x56
40 #define OV5645_CHIP_ID_LOW 0x300b
41 #define OV5645_CHIP_ID_LOW_BYTE 0x45
42 #define OV5645_IO_MIPI_CTRL00 0x300e
43 #define OV5645_PAD_OUTPUT00 0x3019
44 #define OV5645_AWB_MANUAL_CONTROL 0x3406
45 #define OV5645_AWB_MANUAL_ENABLE BIT(0)
46 #define OV5645_AEC_PK_MANUAL 0x3503
47 #define OV5645_AEC_MANUAL_ENABLE BIT(0)
49 #define OV5645_TIMING_TC_REG20 0x3820
52 #define OV5645_TIMING_TC_REG21 0x3821
54 #define OV5645_MIPI_CTRL00 0x4800
55 #define OV5645_PRE_ISP_TEST_SETTING_1 0x503d
56 #define OV5645_TEST_PATTERN_MASK 0x3
59 #define OV5645_SDE_SAT_U 0x5583
60 #define OV5645_SDE_SAT_V 0x5584
120 { 0x3103, 0x11 },
121 { 0x3008, 0x42 },
122 { 0x3103, 0x03 },
123 { 0x3503, 0x07 },
124 { 0x3002, 0x1c },
125 { 0x3006, 0xc3 },
126 { 0x3017, 0x00 },
127 { 0x3018, 0x00 },
128 { 0x302e, 0x0b },
129 { 0x3037, 0x13 },
130 { 0x3108, 0x01 },
131 { 0x3611, 0x06 },
132 { 0x3500, 0x00 },
133 { 0x3501, 0x01 },
134 { 0x3502, 0x00 },
135 { 0x350a, 0x00 },
136 { 0x350b, 0x3f },
137 { 0x3620, 0x33 },
138 { 0x3621, 0xe0 },
139 { 0x3622, 0x01 },
140 { 0x3630, 0x2e },
141 { 0x3631, 0x00 },
142 { 0x3632, 0x32 },
143 { 0x3633, 0x52 },
144 { 0x3634, 0x70 },
145 { 0x3635, 0x13 },
146 { 0x3636, 0x03 },
147 { 0x3703, 0x5a },
148 { 0x3704, 0xa0 },
149 { 0x3705, 0x1a },
150 { 0x3709, 0x12 },
151 { 0x370b, 0x61 },
152 { 0x370f, 0x10 },
153 { 0x3715, 0x78 },
154 { 0x3717, 0x01 },
155 { 0x371b, 0x20 },
156 { 0x3731, 0x12 },
157 { 0x3901, 0x0a },
158 { 0x3905, 0x02 },
159 { 0x3906, 0x10 },
160 { 0x3719, 0x86 },
161 { 0x3810, 0x00 },
162 { 0x3811, 0x10 },
163 { 0x3812, 0x00 },
164 { 0x3821, 0x01 },
165 { 0x3824, 0x01 },
166 { 0x3826, 0x03 },
167 { 0x3828, 0x08 },
168 { 0x3a19, 0xf8 },
169 { 0x3c01, 0x34 },
170 { 0x3c04, 0x28 },
171 { 0x3c05, 0x98 },
172 { 0x3c07, 0x07 },
173 { 0x3c09, 0xc2 },
174 { 0x3c0a, 0x9c },
175 { 0x3c0b, 0x40 },
176 { 0x3c01, 0x34 },
177 { 0x4001, 0x02 },
178 { 0x4514, 0x00 },
179 { 0x4520, 0xb0 },
180 { 0x460b, 0x37 },
181 { 0x460c, 0x20 },
182 { 0x4818, 0x01 },
183 { 0x481d, 0xf0 },
184 { 0x481f, 0x50 },
185 { 0x4823, 0x70 },
186 { 0x4831, 0x14 },
187 { 0x5000, 0xa7 },
188 { 0x5001, 0x83 },
189 { 0x501d, 0x00 },
190 { 0x501f, 0x00 },
191 { 0x503d, 0x00 },
192 { 0x505c, 0x30 },
193 { 0x5181, 0x59 },
194 { 0x5183, 0x00 },
195 { 0x5191, 0xf0 },
196 { 0x5192, 0x03 },
197 { 0x5684, 0x10 },
198 { 0x5685, 0xa0 },
199 { 0x5686, 0x0c },
200 { 0x5687, 0x78 },
201 { 0x5a00, 0x08 },
202 { 0x5a21, 0x00 },
203 { 0x5a24, 0x00 },
204 { 0x3008, 0x02 },
205 { 0x3503, 0x00 },
206 { 0x5180, 0xff },
207 { 0x5181, 0xf2 },
208 { 0x5182, 0x00 },
209 { 0x5183, 0x14 },
210 { 0x5184, 0x25 },
211 { 0x5185, 0x24 },
212 { 0x5186, 0x09 },
213 { 0x5187, 0x09 },
214 { 0x5188, 0x0a },
215 { 0x5189, 0x75 },
216 { 0x518a, 0x52 },
217 { 0x518b, 0xea },
218 { 0x518c, 0xa8 },
219 { 0x518d, 0x42 },
220 { 0x518e, 0x38 },
221 { 0x518f, 0x56 },
222 { 0x5190, 0x42 },
223 { 0x5191, 0xf8 },
224 { 0x5192, 0x04 },
225 { 0x5193, 0x70 },
226 { 0x5194, 0xf0 },
227 { 0x5195, 0xf0 },
228 { 0x5196, 0x03 },
229 { 0x5197, 0x01 },
230 { 0x5198, 0x04 },
231 { 0x5199, 0x12 },
232 { 0x519a, 0x04 },
233 { 0x519b, 0x00 },
234 { 0x519c, 0x06 },
235 { 0x519d, 0x82 },
236 { 0x519e, 0x38 },
237 { 0x5381, 0x1e },
238 { 0x5382, 0x5b },
239 { 0x5383, 0x08 },
240 { 0x5384, 0x0a },
241 { 0x5385, 0x7e },
242 { 0x5386, 0x88 },
243 { 0x5387, 0x7c },
244 { 0x5388, 0x6c },
245 { 0x5389, 0x10 },
246 { 0x538a, 0x01 },
247 { 0x538b, 0x98 },
248 { 0x5300, 0x08 },
249 { 0x5301, 0x30 },
250 { 0x5302, 0x10 },
251 { 0x5303, 0x00 },
252 { 0x5304, 0x08 },
253 { 0x5305, 0x30 },
254 { 0x5306, 0x08 },
255 { 0x5307, 0x16 },
256 { 0x5309, 0x08 },
257 { 0x530a, 0x30 },
258 { 0x530b, 0x04 },
259 { 0x530c, 0x06 },
260 { 0x5480, 0x01 },
261 { 0x5481, 0x08 },
262 { 0x5482, 0x14 },
263 { 0x5483, 0x28 },
264 { 0x5484, 0x51 },
265 { 0x5485, 0x65 },
266 { 0x5486, 0x71 },
267 { 0x5487, 0x7d },
268 { 0x5488, 0x87 },
269 { 0x5489, 0x91 },
270 { 0x548a, 0x9a },
271 { 0x548b, 0xaa },
272 { 0x548c, 0xb8 },
273 { 0x548d, 0xcd },
274 { 0x548e, 0xdd },
275 { 0x548f, 0xea },
276 { 0x5490, 0x1d },
277 { 0x5580, 0x02 },
278 { 0x5583, 0x40 },
279 { 0x5584, 0x10 },
280 { 0x5589, 0x10 },
281 { 0x558a, 0x00 },
282 { 0x558b, 0xf8 },
283 { 0x5800, 0x3f },
284 { 0x5801, 0x16 },
285 { 0x5802, 0x0e },
286 { 0x5803, 0x0d },
287 { 0x5804, 0x17 },
288 { 0x5805, 0x3f },
289 { 0x5806, 0x0b },
290 { 0x5807, 0x06 },
291 { 0x5808, 0x04 },
292 { 0x5809, 0x04 },
293 { 0x580a, 0x06 },
294 { 0x580b, 0x0b },
295 { 0x580c, 0x09 },
296 { 0x580d, 0x03 },
297 { 0x580e, 0x00 },
298 { 0x580f, 0x00 },
299 { 0x5810, 0x03 },
300 { 0x5811, 0x08 },
301 { 0x5812, 0x0a },
302 { 0x5813, 0x03 },
303 { 0x5814, 0x00 },
304 { 0x5815, 0x00 },
305 { 0x5816, 0x04 },
306 { 0x5817, 0x09 },
307 { 0x5818, 0x0f },
308 { 0x5819, 0x08 },
309 { 0x581a, 0x06 },
310 { 0x581b, 0x06 },
311 { 0x581c, 0x08 },
312 { 0x581d, 0x0c },
313 { 0x581e, 0x3f },
314 { 0x581f, 0x1e },
315 { 0x5820, 0x12 },
316 { 0x5821, 0x13 },
317 { 0x5822, 0x21 },
318 { 0x5823, 0x3f },
319 { 0x5824, 0x68 },
320 { 0x5825, 0x28 },
321 { 0x5826, 0x2c },
322 { 0x5827, 0x28 },
323 { 0x5828, 0x08 },
324 { 0x5829, 0x48 },
325 { 0x582a, 0x64 },
326 { 0x582b, 0x62 },
327 { 0x582c, 0x64 },
328 { 0x582d, 0x28 },
329 { 0x582e, 0x46 },
330 { 0x582f, 0x62 },
331 { 0x5830, 0x60 },
332 { 0x5831, 0x62 },
333 { 0x5832, 0x26 },
334 { 0x5833, 0x48 },
335 { 0x5834, 0x66 },
336 { 0x5835, 0x44 },
337 { 0x5836, 0x64 },
338 { 0x5837, 0x28 },
339 { 0x5838, 0x66 },
340 { 0x5839, 0x48 },
341 { 0x583a, 0x2c },
342 { 0x583b, 0x28 },
343 { 0x583c, 0x26 },
344 { 0x583d, 0xae },
345 { 0x5025, 0x00 },
346 { 0x3a0f, 0x30 },
347 { 0x3a10, 0x28 },
348 { 0x3a1b, 0x30 },
349 { 0x3a1e, 0x26 },
350 { 0x3a11, 0x60 },
351 { 0x3a1f, 0x14 },
352 { 0x0601, 0x02 },
353 { 0x3008, 0x42 },
354 { 0x3008, 0x02 },
355 { OV5645_IO_MIPI_CTRL00, 0x40 },
356 { OV5645_MIPI_CTRL00, 0x24 },
357 { OV5645_PAD_OUTPUT00, 0x70 }
361 { 0x3612, 0xa9 },
362 { 0x3614, 0x50 },
363 { 0x3618, 0x00 },
364 { 0x3034, 0x18 },
365 { 0x3035, 0x21 },
366 { 0x3036, 0x70 },
367 { 0x3600, 0x09 },
368 { 0x3601, 0x43 },
369 { 0x3708, 0x66 },
370 { 0x370c, 0xc3 },
371 { 0x3800, 0x00 },
372 { 0x3801, 0x00 },
373 { 0x3802, 0x00 },
374 { 0x3803, 0x06 },
375 { 0x3804, 0x0a },
376 { 0x3805, 0x3f },
377 { 0x3806, 0x07 },
378 { 0x3807, 0x9d },
379 { 0x3808, 0x05 },
380 { 0x3809, 0x00 },
381 { 0x380a, 0x03 },
382 { 0x380b, 0xc0 },
383 { 0x380c, 0x07 },
384 { 0x380d, 0x68 },
385 { 0x380e, 0x03 },
386 { 0x380f, 0xd8 },
387 { 0x3813, 0x06 },
388 { 0x3814, 0x31 },
389 { 0x3815, 0x31 },
390 { 0x3820, 0x47 },
391 { 0x3a02, 0x03 },
392 { 0x3a03, 0xd8 },
393 { 0x3a08, 0x01 },
394 { 0x3a09, 0xf8 },
395 { 0x3a0a, 0x01 },
396 { 0x3a0b, 0xa4 },
397 { 0x3a0e, 0x02 },
398 { 0x3a0d, 0x02 },
399 { 0x3a14, 0x03 },
400 { 0x3a15, 0xd8 },
401 { 0x3a18, 0x00 },
402 { 0x4004, 0x02 },
403 { 0x4005, 0x18 },
404 { 0x4300, 0x32 },
405 { 0x4202, 0x00 }
409 { 0x3612, 0xab },
410 { 0x3614, 0x50 },
411 { 0x3618, 0x04 },
412 { 0x3034, 0x18 },
413 { 0x3035, 0x11 },
414 { 0x3036, 0x54 },
415 { 0x3600, 0x08 },
416 { 0x3601, 0x33 },
417 { 0x3708, 0x63 },
418 { 0x370c, 0xc0 },
419 { 0x3800, 0x01 },
420 { 0x3801, 0x50 },
421 { 0x3802, 0x01 },
422 { 0x3803, 0xb2 },
423 { 0x3804, 0x08 },
424 { 0x3805, 0xef },
425 { 0x3806, 0x05 },
426 { 0x3807, 0xf1 },
427 { 0x3808, 0x07 },
428 { 0x3809, 0x80 },
429 { 0x380a, 0x04 },
430 { 0x380b, 0x38 },
431 { 0x380c, 0x09 },
432 { 0x380d, 0xc4 },
433 { 0x380e, 0x04 },
434 { 0x380f, 0x60 },
435 { 0x3813, 0x04 },
436 { 0x3814, 0x11 },
437 { 0x3815, 0x11 },
438 { 0x3820, 0x47 },
439 { 0x4514, 0x88 },
440 { 0x3a02, 0x04 },
441 { 0x3a03, 0x60 },
442 { 0x3a08, 0x01 },
443 { 0x3a09, 0x50 },
444 { 0x3a0a, 0x01 },
445 { 0x3a0b, 0x18 },
446 { 0x3a0e, 0x03 },
447 { 0x3a0d, 0x04 },
448 { 0x3a14, 0x04 },
449 { 0x3a15, 0x60 },
450 { 0x3a18, 0x00 },
451 { 0x4004, 0x06 },
452 { 0x4005, 0x18 },
453 { 0x4300, 0x32 },
454 { 0x4202, 0x00 },
455 { 0x4837, 0x0b }
459 { 0x3612, 0xab },
460 { 0x3614, 0x50 },
461 { 0x3618, 0x04 },
462 { 0x3034, 0x18 },
463 { 0x3035, 0x11 },
464 { 0x3036, 0x54 },
465 { 0x3600, 0x08 },
466 { 0x3601, 0x33 },
467 { 0x3708, 0x63 },
468 { 0x370c, 0xc0 },
469 { 0x3800, 0x00 },
470 { 0x3801, 0x00 },
471 { 0x3802, 0x00 },
472 { 0x3803, 0x00 },
473 { 0x3804, 0x0a },
474 { 0x3805, 0x3f },
475 { 0x3806, 0x07 },
476 { 0x3807, 0x9f },
477 { 0x3808, 0x0a },
478 { 0x3809, 0x20 },
479 { 0x380a, 0x07 },
480 { 0x380b, 0x98 },
481 { 0x380c, 0x0b },
482 { 0x380d, 0x1c },
483 { 0x380e, 0x07 },
484 { 0x380f, 0xb0 },
485 { 0x3813, 0x06 },
486 { 0x3814, 0x11 },
487 { 0x3815, 0x11 },
488 { 0x3820, 0x47 },
489 { 0x4514, 0x88 },
490 { 0x3a02, 0x07 },
491 { 0x3a03, 0xb0 },
492 { 0x3a08, 0x01 },
493 { 0x3a09, 0x27 },
494 { 0x3a0a, 0x00 },
495 { 0x3a0b, 0xf6 },
496 { 0x3a0e, 0x06 },
497 { 0x3a0d, 0x08 },
498 { 0x3a14, 0x07 },
499 { 0x3a15, 0xb0 },
500 { 0x3a18, 0x01 },
501 { 0x4004, 0x06 },
502 { 0x4005, 0x18 },
503 { 0x4300, 0x32 },
504 { 0x4837, 0x0b },
505 { 0x4202, 0x00 }
520 .link_freq = 0 /* an index in link_freq[] */
545 regbuf[0] = reg >> 8; in ov5645_write_reg()
546 regbuf[1] = reg & 0xff; in ov5645_write_reg()
550 if (ret < 0) { in ov5645_write_reg()
556 return 0; in ov5645_write_reg()
564 regbuf[0] = reg >> 8; in ov5645_read_reg()
565 regbuf[1] = reg & 0xff; in ov5645_read_reg()
568 if (ret < 0) { in ov5645_read_reg()
575 if (ret < 0) { in ov5645_read_reg()
581 return 0; in ov5645_read_reg()
625 for (i = 0; i < num_settings; ++i, ++settings) { in ov5645_set_register_array()
627 if (ret < 0) in ov5645_set_register_array()
635 return 0; in ov5645_set_register_array()
643 ov5645_write_reg(ov5645, OV5645_IO_MIPI_CTRL00, 0x58); in __ov5645_set_power_off()
645 gpiod_set_value_cansleep(ov5645->enable_gpio, 0); in __ov5645_set_power_off()
657 return 0; in ov5645_set_power_off()
667 if (ret < 0) in ov5645_set_power_on()
671 if (ret < 0) { in ov5645_set_power_on()
681 gpiod_set_value_cansleep(ov5645->rst_gpio, 0); in ov5645_set_power_on()
687 if (ret < 0) { in ov5645_set_power_on()
694 return 0; in ov5645_set_power_on()
704 u32 reg_value = (value * 0x10) + 0x40; in ov5645_set_saturation()
708 if (ret < 0) in ov5645_set_saturation()
719 if (value == 0) in ov5645_set_hflip()
736 if (value == 0) in ov5645_set_vflip()
750 u8 val = 0; in ov5645_set_test_pattern()
770 u8 val = 0; in ov5645_set_awb()
787 return 0; in ov5645_s_ctrl()
832 if (code->index > 0) in ov5645_enum_mbus_code()
837 return 0; in ov5645_enum_mbus_code()
855 return 0; in ov5645_enum_frame_size()
883 return 0; in ov5645_get_format()
925 if (ret < 0) in ov5645_set_format()
930 if (ret < 0) in ov5645_set_format()
946 return 0; in ov5645_set_format()
952 struct v4l2_subdev_format fmt = { 0 }; in ov5645_init_state()
960 return 0; in ov5645_init_state()
974 return 0; in ov5645_get_selection()
984 if (ret < 0) in ov5645_s_stream()
990 if (ret < 0) { in ov5645_s_stream()
997 if (ret < 0) { in ov5645_s_stream()
1002 ret = ov5645_write_reg(ov5645, OV5645_IO_MIPI_CTRL00, 0x45); in ov5645_s_stream()
1003 if (ret < 0) in ov5645_s_stream()
1008 if (ret < 0) in ov5645_s_stream()
1011 ret = ov5645_write_reg(ov5645, OV5645_IO_MIPI_CTRL00, 0x40); in ov5645_s_stream()
1012 if (ret < 0) in ov5645_s_stream()
1021 return 0; in ov5645_s_stream()
1071 endpoint = of_graph_get_endpoint_by_regs(dev->of_node, 0, -1); in ov5645_probe()
1082 if (ret < 0) { in ov5645_probe()
1118 for (i = 0; i < OV5645_NUM_SUPPLIES; i++) in ov5645_probe()
1123 if (ret < 0) in ov5645_probe()
1142 V4L2_CID_SATURATION, -4, 4, 1, 0); in ov5645_probe()
1144 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov5645_probe()
1146 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov5645_probe()
1148 V4L2_CID_AUTOGAIN, 0, 1, 1, 1); in ov5645_probe()
1150 V4L2_CID_AUTO_WHITE_BALANCE, 0, 1, 1, 1); in ov5645_probe()
1153 0, V4L2_EXPOSURE_AUTO); in ov5645_probe()
1157 0, 0, ov5645_test_pattern_menu); in ov5645_probe()
1166 0, link_freq); in ov5645_probe()
1187 if (ret < 0) { in ov5645_probe()
1197 if (ret < 0 || chip_id_high != OV5645_CHIP_ID_HIGH_BYTE) { in ov5645_probe()
1203 if (ret < 0 || chip_id_low != OV5645_CHIP_ID_LOW_BYTE) { in ov5645_probe()
1209 dev_info(dev, "OV5645 detected at address 0x%02x\n", client->addr); in ov5645_probe()
1213 if (ret < 0) { in ov5645_probe()
1221 if (ret < 0) { in ov5645_probe()
1229 if (ret < 0) { in ov5645_probe()
1242 if (ret < 0) { in ov5645_probe()
1252 return 0; in ov5645_probe()