Skip to content

Commit 7b3d012

Browse files
Lee Jacksonpelwell
authored andcommitted
media: i2c: arducam_64mp: Add 8000x6000 resolution
Added 8000x6000 10-bit (cropped) @ 3fps mode for Arducam 64MP Signed-off-by: Lee Jackson <[email protected]>
1 parent 9c5a7f0 commit 7b3d012

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

drivers/media/i2c/arducam_64mp.c

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,65 @@ static const struct arducam_64mp_reg mode_9152x6944_regs[] = {
849849
{0x020f, 0x00},
850850
};
851851

852+
/* 48 mpix 3.0fps */
853+
static const struct arducam_64mp_reg mode_8000x6000_regs[] = {
854+
{0x0342, 0xb6},
855+
{0x0343, 0xb2},
856+
{0x0340, 0x19},
857+
{0x0341, 0x0e},
858+
{0x0344, 0x02},
859+
{0x0345, 0x70},
860+
{0x0346, 0x01},
861+
{0x0347, 0xd8},
862+
{0x0348, 0x21},
863+
{0x0349, 0xaf},
864+
{0x034a, 0x19},
865+
{0x034b, 0x47},
866+
{0x0900, 0x00},
867+
{0x0901, 0x11},
868+
{0x0902, 0x0a},
869+
{0x30d8, 0x00},
870+
{0x3200, 0x01},
871+
{0x3201, 0x01},
872+
{0x0408, 0x00},
873+
{0x0409, 0x00},
874+
{0x040a, 0x00},
875+
{0x040b, 0x00},
876+
{0x040c, 0x1f},
877+
{0x040d, 0x40},
878+
{0x040e, 0x17},
879+
{0x040f, 0x70},
880+
{0x034c, 0x1f},
881+
{0x034d, 0x40},
882+
{0x034e, 0x17},
883+
{0x034f, 0x70},
884+
{0x30d9, 0x01},
885+
{0x32d5, 0x01},
886+
{0x32d6, 0x00},
887+
{0x401e, 0x00},
888+
{0x40b8, 0x04},
889+
{0x40b9, 0x20},
890+
{0x40bc, 0x02},
891+
{0x40bd, 0x58},
892+
{0x40be, 0x02},
893+
{0x40bf, 0x58},
894+
{0x41a4, 0x00},
895+
{0x5a09, 0x01},
896+
{0x5a17, 0x01},
897+
{0x5a25, 0x01},
898+
{0x5a33, 0x01},
899+
{0x98d7, 0x14},
900+
{0x98d8, 0x14},
901+
{0x98d9, 0x00},
902+
{0x99c4, 0x00},
903+
{0x0202, 0x03},
904+
{0x0203, 0xe8},
905+
{0x0204, 0x00},
906+
{0x0205, 0x00},
907+
{0x020e, 0x01},
908+
{0x020f, 0x00},
909+
};
910+
852911
/* 16 mpix 10fps */
853912
static const struct arducam_64mp_reg mode_4624x3472_regs[] = {
854913
{0x0342, 0x63},
@@ -1134,6 +1193,24 @@ static const struct arducam_64mp_mode supported_modes[] = {
11341193
.num_of_regs = ARRAY_SIZE(mode_9152x6944_regs),
11351194
.regs = mode_9152x6944_regs,
11361195
}
1196+
}, {
1197+
.width = 8000,
1198+
.height = 6000,
1199+
.line_length_pix = 0xb6b2,
1200+
.crop = {
1201+
.left = ARDUCAM_64MP_PIXEL_ARRAY_LEFT + 624,
1202+
.top = ARDUCAM_64MP_PIXEL_ARRAY_TOP + 472,
1203+
.width = 9248,
1204+
.height = 6944,
1205+
},
1206+
.timeperframe_default = {
1207+
.numerator = 100,
1208+
.denominator = 300
1209+
},
1210+
.reg_list = {
1211+
.num_of_regs = ARRAY_SIZE(mode_8000x6000_regs),
1212+
.regs = mode_8000x6000_regs,
1213+
}
11371214
}, {
11381215
.width = 4624,
11391216
.height = 3472,

0 commit comments

Comments
 (0)