unsigned int blc_anchor_right_start;
        unsigned int blc_anchor_right_end;
 
-       struct v4l2_fract frame_interval;
-
        bool pll2_binning;
 
        const struct ov8865_register_value *register_values;
        {
                /* Horizontal */
                .output_size_x                  = 3264,
-               .hts                            = 1944,
+               .hts                            = 3888,
 
                /* Vertical */
                .output_size_y                  = 2448,
                .blc_anchor_right_start         = 1984,
                .blc_anchor_right_end           = 2239,
 
-               /* Frame Interval */
-               .frame_interval                 = { 1, 30 },
-
                /* PLL */
                .pll2_binning                   = false,
 
        {
                /* Horizontal */
                .output_size_x                  = 3264,
-               .hts                            = 2582,
+               .hts                            = 3888,
 
                /* Vertical */
                .output_size_y                  = 1836,
-               .vts                            = 2002,
+               .vts                            = 2470,
 
                .size_auto                      = true,
                .size_auto_boundary_x           = 8,
                .blc_anchor_right_start         = 1984,
                .blc_anchor_right_end           = 2239,
 
-               /* Frame Interval */
-               .frame_interval                 = { 1, 30 },
-
                /* PLL */
                .pll2_binning                   = false,
 
                .blc_anchor_right_start         = 992,
                .blc_anchor_right_end           = 1119,
 
-               /* Frame Interval */
-               .frame_interval                 = { 1, 30 },
-
                /* PLL */
                .pll2_binning                   = true,
 
                .blc_anchor_right_start         = 992,
                .blc_anchor_right_end           = 1119,
 
-               /* Frame Interval */
-               .frame_interval                 = { 1, 90 },
-
                /* PLL */
                .pll2_binning                   = true,
 
 {
        struct ov8865_sensor *sensor = ov8865_subdev_sensor(subdev);
        const struct ov8865_mode *mode;
+       unsigned int framesize;
+       unsigned int fps;
 
        mutex_lock(&sensor->mutex);
 
        mode = sensor->state.mode;
-       interval->interval = mode->frame_interval;
+       framesize = mode->hts * (mode->output_size_y +
+                                sensor->ctrls.vblank->val);
+       fps = DIV_ROUND_CLOSEST(sensor->ctrls.pixel_rate->val, framesize);
+
+       interval->interval.numerator = 1;
+       interval->interval.denominator = fps;
 
        mutex_unlock(&sensor->mutex);
 
        return 0;
 }
 
-static int ov8865_enum_frame_interval(struct v4l2_subdev *subdev,
-                                     struct v4l2_subdev_state *sd_state,
-                                     struct v4l2_subdev_frame_interval_enum *interval_enum)
-{
-       const struct ov8865_mode *mode = NULL;
-       unsigned int mode_index;
-       unsigned int interval_index;
-
-       if (interval_enum->index > 0)
-               return -EINVAL;
-       /*
-        * Multiple modes with the same dimensions may have different frame
-        * intervals, so look up each relevant mode.
-        */
-       for (mode_index = 0, interval_index = 0;
-            mode_index < ARRAY_SIZE(ov8865_modes); mode_index++) {
-               mode = &ov8865_modes[mode_index];
-
-               if (mode->output_size_x == interval_enum->width &&
-                   mode->output_size_y == interval_enum->height) {
-                       if (interval_index == interval_enum->index)
-                               break;
-
-                       interval_index++;
-               }
-       }
-
-       if (mode_index == ARRAY_SIZE(ov8865_modes))
-               return -EINVAL;
-
-       interval_enum->interval = mode->frame_interval;
-
-       return 0;
-}
-
 static void
 __ov8865_get_pad_crop(struct ov8865_sensor *sensor,
                      struct v4l2_subdev_state *state, unsigned int pad,
        .get_fmt                = ov8865_get_fmt,
        .set_fmt                = ov8865_set_fmt,
        .enum_frame_size        = ov8865_enum_frame_size,
-       .enum_frame_interval    = ov8865_enum_frame_interval,
        .get_selection          = ov8865_get_selection,
        .set_selection          = ov8865_get_selection,
 };