I would do a loop from either LA or LV, depending on airfare and car rental costs. I would do it in this order:

From LA: LA - Grand Canyon - LV - Death Valley - Yosemite - SF - LA

From LV: LV - Death Valley - Yosemite - SF - LA - Grand Canyon - LV