Want to camp at Yosemite this summer

Hello, I am looking into camping at Yosemite this july. I am not sure if I will drive my rv up there or just pitch a tent. Anyone know an easy way to go about reserving a place and with good prices?