PHOENIX -- Third baseman Eric Chavez hit one of two Arizona home runs, and the Diamondbacks won their first home series of the season by beating the Los Angeles Dodgers 5-3 Sunday at Chase Field.

Chavez hit a two-out, two-run homer in the fifth inning off right-hander Dan Haren (5-2) to break a 3-3 tie. Chavez entered in the top of the inning when starter Martin Prado left because of blurred vision.

Left fielder Cody Ross hit his first homer of the season for Arizona, which won two of three games against Los Angeles after losing its first six home series. The Diamondbacks (18-28) are 6-18 at home.

Arizona shortstop Chris Owings had three hits and drove in a run, and center fielder A.J. Pollock added three hits. Pollock went 8-for-11 with three runs and two RBIs in the series.

Diamondbacks right-hander Josh Collmenter (2-2) gave up three runs in 5 1/3 innings. Closer Addison Reed pitched the ninth inning for his 12th save.

First baseman Adrian Gonzalez had three hits including a two-run home run for the Dodgers (23-22).

Shortstop Hanley Ramirez hit his sixth homer in the first inning to give Los Angeles a 1-0 lead.

Arizona tied the game in the second. Ross doubled with one out and scored on Ramirez's throwing error as the Dodgers attempted to turn a double play.

Gonzalez homered, his 10th of the season, for a 3-1 Los Angeles lead after Ramirez walked with two outs in the third. Gonzalez leads all active major leaguers with 28 homers and 90 RBIs against the Diamondbacks. He has 20 homers at Chase Field, four in six games there this season.

Owings singled home right fielder Gerardo Parra in the third to make it 3-2. Ross's first homer of the season tied it at 3 in the fourth.

In the fifth, Chavez homered after Owings singled and stole second base. Chavez also homered in his previous at-bat, a pinch-hit shot in the eighth inning Saturday.

NOTES: Dodgers LHP Hyun-Jin Ryu will be activated from the disabled list for a Wednesday road start against the New York Mets if he continues to progress with issue, manager Don Mattingly said. Ryu, 3-2 with a 3.00 ERA, has been out since April 28 with left shoulder inflammation. He threw a 60-pitch simulated game Friday. LHP Paul Maholm, who has made seven starts, will return to the bullpen, Mattingly said. ... Arizona 2B Aaron Hill was held out of the lineup for the second consecutive game. With a travel day coming Monday, he will have three days to recover from right shoulder soreness. ... The Diamondbacks commemorated the 10th anniversary of LHP Randy Johnson's perfect game with a pregame video montage. Johnson threw out the first pitch. ... Dodgers C Drew Butera, who pitched twice in the past five days, hit 92 mph on the Chase Field radar run in his ninth inning mop-up role in an 18-7 loss Saturday.