struct v4l2_ctrl_handler *handler = &ctrls->handler;
        const struct v4l2_ctrl_ops *ops = &ov8865_ctrl_ops;
        const struct ov8865_mode *mode = &ov8865_modes[0];
+       struct v4l2_fwnode_device_properties props;
        unsigned int vblank_max, vblank_def;
        unsigned int hblank;
        int ret;
                v4l2_ctrl_new_std(handler, NULL, V4L2_CID_PIXEL_RATE, 1,
                                  INT_MAX, 1, 1);
 
+       /* set properties from fwnode (e.g. rotation, orientation) */
+       ret = v4l2_fwnode_device_parse(sensor->dev, &props);
+       if (ret)
+               goto error_ctrls;
+
+       ret = v4l2_ctrl_new_fwnode_properties(handler, ops, &props);
+       if (ret)
+               goto error_ctrls;
+
        if (handler->error) {
                ret = handler->error;
                goto error_ctrls;