Lines Matching +full:0 +full:x3700
32 #define OV5693_SW_RESET_REG CCI_REG8(0x0103)
33 #define OV5693_SW_STREAM_REG CCI_REG8(0x0100)
34 #define OV5693_START_STREAMING 0x01
35 #define OV5693_STOP_STREAMING 0x00
36 #define OV5693_SW_RESET 0x01
38 #define OV5693_REG_CHIP_ID CCI_REG16(0x300a)
39 /* Yes, this is right. The datasheet for the OV5693 gives its ID as 0x5690 */
40 #define OV5693_CHIP_ID 0x5690
43 #define OV5693_EXPOSURE_CTRL_REG CCI_REG24(0x3500)
50 #define OV5693_GAIN_CTRL_REG CCI_REG16(0x350a)
58 #define OV5693_MWB_RED_GAIN_REG CCI_REG16(0x3400)
59 #define OV5693_MWB_GREEN_GAIN_REG CCI_REG16(0x3402)
60 #define OV5693_MWB_BLUE_GAIN_REG CCI_REG16(0x3404)
61 #define OV5693_MWB_GAIN_MASK GENMASK(11, 0)
62 #define OV5693_MWB_GAIN_MAX 0x0fff
69 #define OV5693_CROP_START_X_REG CCI_REG16(0x3800)
70 #define OV5693_CROP_START_Y_REG CCI_REG16(0x3802)
71 #define OV5693_CROP_END_X_REG CCI_REG16(0x3804)
72 #define OV5693_CROP_END_Y_REG CCI_REG16(0x3806)
73 #define OV5693_OUTPUT_SIZE_X_REG CCI_REG16(0x3808)
74 #define OV5693_OUTPUT_SIZE_Y_REG CCI_REG16(0x380a)
76 #define OV5693_TIMING_HTS_REG CCI_REG16(0x380c)
78 #define OV5693_TIMING_VTS_REG CCI_REG16(0x380e)
79 #define OV5693_TIMING_MAX_VTS 0xffff
80 #define OV5693_TIMING_MIN_VTS 0x04
82 #define OV5693_OFFSET_START_X_REG CCI_REG16(0x3810)
83 #define OV5693_OFFSET_START_Y_REG CCI_REG16(0x3812)
85 #define OV5693_SUB_INC_X_REG CCI_REG8(0x3814)
86 #define OV5693_SUB_INC_Y_REG CCI_REG8(0x3815)
88 #define OV5693_FORMAT1_REG CCI_REG8(0x3820)
91 #define OV5693_FORMAT1_VBIN_EN BIT(0)
92 #define OV5693_FORMAT2_REG CCI_REG8(0x3821)
96 #define OV5693_FORMAT2_HBIN_EN BIT(0)
98 #define OV5693_ISP_CTRL2_REG CCI_REG8(0x5002)
104 #define OV5693_NATIVE_START_LEFT 0
105 #define OV5693_NATIVE_START_TOP 0
114 #define OV5693_TEST_PATTERN_REG CCI_REG8(0x5e00)
117 #define OV5693_TEST_PATTERN_RANDOM 0x01
118 #define OV5693_TEST_PATTERN_BARS 0x00
176 {CCI_REG8(0x3016), 0xf0},
177 {CCI_REG8(0x3017), 0xf0},
178 {CCI_REG8(0x3018), 0xf0},
179 {CCI_REG8(0x3022), 0x01},
180 {CCI_REG8(0x3028), 0x44},
181 {CCI_REG8(0x3098), 0x02},
182 {CCI_REG8(0x3099), 0x19},
183 {CCI_REG8(0x309a), 0x02},
184 {CCI_REG8(0x309b), 0x01},
185 {CCI_REG8(0x309c), 0x00},
186 {CCI_REG8(0x30a0), 0xd2},
187 {CCI_REG8(0x30a2), 0x01},
188 {CCI_REG8(0x30b2), 0x00},
189 {CCI_REG8(0x30b3), 0x83},
190 {CCI_REG8(0x30b4), 0x03},
191 {CCI_REG8(0x30b5), 0x04},
192 {CCI_REG8(0x30b6), 0x01},
193 {CCI_REG8(0x3080), 0x01},
194 {CCI_REG8(0x3104), 0x21},
195 {CCI_REG8(0x3106), 0x00},
196 {CCI_REG8(0x3406), 0x01},
197 {CCI_REG8(0x3503), 0x07},
198 {CCI_REG8(0x350b), 0x40},
199 {CCI_REG8(0x3601), 0x0a},
200 {CCI_REG8(0x3602), 0x38},
201 {CCI_REG8(0x3612), 0x80},
202 {CCI_REG8(0x3620), 0x54},
203 {CCI_REG8(0x3621), 0xc7},
204 {CCI_REG8(0x3622), 0x0f},
205 {CCI_REG8(0x3625), 0x10},
206 {CCI_REG8(0x3630), 0x55},
207 {CCI_REG8(0x3631), 0xf4},
208 {CCI_REG8(0x3632), 0x00},
209 {CCI_REG8(0x3633), 0x34},
210 {CCI_REG8(0x3634), 0x02},
211 {CCI_REG8(0x364d), 0x0d},
212 {CCI_REG8(0x364f), 0xdd},
213 {CCI_REG8(0x3660), 0x04},
214 {CCI_REG8(0x3662), 0x10},
215 {CCI_REG8(0x3663), 0xf1},
216 {CCI_REG8(0x3665), 0x00},
217 {CCI_REG8(0x3666), 0x20},
218 {CCI_REG8(0x3667), 0x00},
219 {CCI_REG8(0x366a), 0x80},
220 {CCI_REG8(0x3680), 0xe0},
221 {CCI_REG8(0x3681), 0x00},
222 {CCI_REG8(0x3700), 0x42},
223 {CCI_REG8(0x3701), 0x14},
224 {CCI_REG8(0x3702), 0xa0},
225 {CCI_REG8(0x3703), 0xd8},
226 {CCI_REG8(0x3704), 0x78},
227 {CCI_REG8(0x3705), 0x02},
228 {CCI_REG8(0x370a), 0x00},
229 {CCI_REG8(0x370b), 0x20},
230 {CCI_REG8(0x370c), 0x0c},
231 {CCI_REG8(0x370d), 0x11},
232 {CCI_REG8(0x370e), 0x00},
233 {CCI_REG8(0x370f), 0x40},
234 {CCI_REG8(0x3710), 0x00},
235 {CCI_REG8(0x371a), 0x1c},
236 {CCI_REG8(0x371b), 0x05},
237 {CCI_REG8(0x371c), 0x01},
238 {CCI_REG8(0x371e), 0xa1},
239 {CCI_REG8(0x371f), 0x0c},
240 {CCI_REG8(0x3721), 0x00},
241 {CCI_REG8(0x3724), 0x10},
242 {CCI_REG8(0x3726), 0x00},
243 {CCI_REG8(0x372a), 0x01},
244 {CCI_REG8(0x3730), 0x10},
245 {CCI_REG8(0x3738), 0x22},
246 {CCI_REG8(0x3739), 0xe5},
247 {CCI_REG8(0x373a), 0x50},
248 {CCI_REG8(0x373b), 0x02},
249 {CCI_REG8(0x373c), 0x41},
250 {CCI_REG8(0x373f), 0x02},
251 {CCI_REG8(0x3740), 0x42},
252 {CCI_REG8(0x3741), 0x02},
253 {CCI_REG8(0x3742), 0x18},
254 {CCI_REG8(0x3743), 0x01},
255 {CCI_REG8(0x3744), 0x02},
256 {CCI_REG8(0x3747), 0x10},
257 {CCI_REG8(0x374c), 0x04},
258 {CCI_REG8(0x3751), 0xf0},
259 {CCI_REG8(0x3752), 0x00},
260 {CCI_REG8(0x3753), 0x00},
261 {CCI_REG8(0x3754), 0xc0},
262 {CCI_REG8(0x3755), 0x00},
263 {CCI_REG8(0x3756), 0x1a},
264 {CCI_REG8(0x3758), 0x00},
265 {CCI_REG8(0x3759), 0x0f},
266 {CCI_REG8(0x376b), 0x44},
267 {CCI_REG8(0x375c), 0x04},
268 {CCI_REG8(0x3774), 0x10},
269 {CCI_REG8(0x3776), 0x00},
270 {CCI_REG8(0x377f), 0x08},
271 {CCI_REG8(0x3780), 0x22},
272 {CCI_REG8(0x3781), 0x0c},
273 {CCI_REG8(0x3784), 0x2c},
274 {CCI_REG8(0x3785), 0x1e},
275 {CCI_REG8(0x378f), 0xf5},
276 {CCI_REG8(0x3791), 0xb0},
277 {CCI_REG8(0x3795), 0x00},
278 {CCI_REG8(0x3796), 0x64},
279 {CCI_REG8(0x3797), 0x11},
280 {CCI_REG8(0x3798), 0x30},
281 {CCI_REG8(0x3799), 0x41},
282 {CCI_REG8(0x379a), 0x07},
283 {CCI_REG8(0x379b), 0xb0},
284 {CCI_REG8(0x379c), 0x0c},
285 {CCI_REG8(0x3a04), 0x06},
286 {CCI_REG8(0x3a05), 0x14},
287 {CCI_REG8(0x3e07), 0x20},
288 {CCI_REG8(0x4000), 0x08},
289 {CCI_REG8(0x4001), 0x04},
290 {CCI_REG8(0x4004), 0x08},
291 {CCI_REG8(0x4006), 0x20},
292 {CCI_REG8(0x4008), 0x24},
293 {CCI_REG8(0x4009), 0x10},
294 {CCI_REG8(0x4058), 0x00},
295 {CCI_REG8(0x4101), 0xb2},
296 {CCI_REG8(0x4307), 0x31},
297 {CCI_REG8(0x4511), 0x05},
298 {CCI_REG8(0x4512), 0x01},
299 {CCI_REG8(0x481f), 0x30},
300 {CCI_REG8(0x4826), 0x2c},
301 {CCI_REG8(0x4d02), 0xfd},
302 {CCI_REG8(0x4d03), 0xf5},
303 {CCI_REG8(0x4d04), 0x0c},
304 {CCI_REG8(0x4d05), 0xcc},
305 {CCI_REG8(0x4837), 0x0a},
306 {CCI_REG8(0x5003), 0x20},
307 {CCI_REG8(0x5013), 0x00},
308 {CCI_REG8(0x5842), 0x01},
309 {CCI_REG8(0x5843), 0x2b},
310 {CCI_REG8(0x5844), 0x01},
311 {CCI_REG8(0x5845), 0x92},
312 {CCI_REG8(0x5846), 0x01},
313 {CCI_REG8(0x5847), 0x8f},
314 {CCI_REG8(0x5848), 0x01},
315 {CCI_REG8(0x5849), 0x0c},
316 {CCI_REG8(0x5e10), 0x0c},
317 {CCI_REG8(0x3820), 0x00},
318 {CCI_REG8(0x3821), 0x1e},
319 {CCI_REG8(0x5041), 0x14}
347 0,
364 enable ? bits : 0, NULL); in ov5693_flip_vert_configure()
368 return 0; in ov5693_flip_vert_configure()
379 enable ? bits : 0, NULL); in ov5693_flip_horz_configure()
383 return 0; in ov5693_flip_horz_configure()
399 return 0; in ov5693_get_exposure()
405 int ret = 0; in ov5693_exposure_configure()
432 int ret = 0; in ov5693_digital_gain_configure()
445 int ret = 0; in ov5693_analog_gain_configure()
457 int ret = 0; in ov5693_vts_configure()
466 int ret = 0; in ov5693_test_pattern_configure()
478 int ret = 0; in ov5693_s_ctrl()
496 return 0; in ov5693_s_ctrl()
555 int ret = 0; in ov5693_mode_configure()
562 cci_write(ov5693->regmap, OV5693_OFFSET_START_X_REG, 0, &ret); in ov5693_mode_configure()
581 cci_write(ov5693->regmap, OV5693_OFFSET_START_Y_REG, 0, &ret); in ov5693_mode_configure()
593 ((mode->inc_x_odd << 4) & 0xf0) | 0x01, &ret); in ov5693_mode_configure()
596 ((mode->inc_y_odd << 4) & 0xf0) | 0x01, &ret); in ov5693_mode_configure()
601 mode->binning_y ? OV5693_FORMAT1_VBIN_EN : 0, &ret); in ov5693_mode_configure()
605 mode->binning_x ? OV5693_FORMAT2_HBIN_EN : 0, &ret); in ov5693_mode_configure()
612 int ret = 0; in ov5693_enable_streaming()
623 int ret = 0; in ov5693_sw_reset()
686 gpiod_set_value_cansleep(ov5693->powerdown, 0); in ov5693_sensor_powerup()
687 gpiod_set_value_cansleep(ov5693->reset, 0); in ov5693_sensor_powerup()
691 return 0; in ov5693_sensor_powerup()
705 return 0; in ov5693_sensor_suspend()
746 "sensor ID mismatch. Got 0x%04llx\n", id); in ov5693_detect()
748 return 0; in ov5693_detect()
806 return 0; in ov5693_get_fmt()
851 return 0; in ov5693_set_fmt()
881 return 0; in ov5693_set_fmt()
898 sel->r.top = 0; in ov5693_get_selection()
899 sel->r.left = 0; in ov5693_get_selection()
914 return 0; in ov5693_get_selection()
965 return 0; in ov5693_set_selection()
998 return 0; in ov5693_s_stream()
1023 return 0; in ov5693_get_frame_interval()
1031 if (code->index > 0) in ov5693_enum_mbus_code()
1035 return 0; in ov5693_enum_mbus_code()
1057 return 0; in ov5693_enum_frame_size()
1098 0, 0, link_freq_menu_items); in ov5693_init_controls()
1104 V4L2_CID_PIXEL_RATE, 0, in ov5693_init_controls()
1132 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov5693_init_controls()
1135 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov5693_init_controls()
1156 0, 0, ov5693_test_pattern_menu); in ov5693_init_controls()
1178 return 0; in ov5693_init_controls()
1201 return 0; in ov5693_configure_gpios()
1208 for (i = 0; i < OV5693_NUM_SUPPLIES; i++) in ov5693_get_regulators()
1246 for (i = 0; i < bus_cfg.nr_of_link_frequencies; i++) in ov5693_check_hwcfg()
1267 int ret = 0; in ov5693_probe()