Skip to content

Commit 8a2118d

Browse files
committed
media: i2c: imx708: Add a 960MHz link frequency
Add timings for a 960MHz link frequency, which gives the full resolution mode enough bandwidth to reach 30fps and roughly doubles the rate of the binned modes. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 8e13238 commit 8a2118d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎drivers/media/i2c/imx708.c‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,14 @@ enum {
228228
IMX708_LINK_FREQ_450MHZ,
229229
IMX708_LINK_FREQ_447MHZ,
230230
IMX708_LINK_FREQ_453MHZ,
231+
IMX708_LINK_FREQ_960MHZ,
231232
};
232233

233234
static const s64 link_freqs[] = {
234235
[IMX708_LINK_FREQ_450MHZ] = 450000000,
235236
[IMX708_LINK_FREQ_447MHZ] = 447000000,
236237
[IMX708_LINK_FREQ_453MHZ] = 453000000,
238+
[IMX708_LINK_FREQ_960MHZ] = 960000000,
237239
};
238240

239241
static const struct cci_reg_sequence mode_common_regs[] = {
@@ -649,6 +651,12 @@ static const struct imx708_mode supported_modes_10bit_no_hdr[] = {
649651
.vblank_default = 58,
650652
.pixel_rate = 595200000,
651653
},
654+
{
655+
.link_frequency = 960000000,
656+
.line_length_pix = 0x28c0,
657+
.vblank_default = 58,
658+
.pixel_rate = 830400000,
659+
},
652660
},
653661
.exposure_lines_min = 8,
654662
.exposure_lines_step = 1,
@@ -676,6 +684,12 @@ static const struct imx708_mode supported_modes_10bit_no_hdr[] = {
676684
.vblank_default = 1198,
677685
.pixel_rate = 585600000,
678686
},
687+
{
688+
.link_frequency = 960000000,
689+
.line_length_pix = 0x1460,
690+
.vblank_default = 3888,
691+
.pixel_rate = 811200000,
692+
},
679693
},
680694
.exposure_lines_min = 4,
681695
.exposure_lines_step = 2,
@@ -703,6 +717,12 @@ static const struct imx708_mode supported_modes_10bit_no_hdr[] = {
703717
.vblank_default = 2755,
704718
.pixel_rate = 566400000,
705719
},
720+
{
721+
.link_frequency = 960000000,
722+
.line_length_pix = 0x1460,
723+
.vblank_default = 4627,
724+
.pixel_rate = 859200000,
725+
},
706726
},
707727
.exposure_lines_min = 4,
708728
.exposure_lines_step = 2,

0 commit comments

Comments
 (0)