DALLAS — The Eagles and Packers went on the road Sunday and headed home with playoff berths.

Philadelphia completed a terrific turnaround under new coach Chip Kelly by beating Dallas 24-22 to win the NFC East.

Hours before, Aaron Rodgers played the role of returning hero, along with Randall Cobb, in Green Bay’s 33-28 victory at Chicago to capture the NFC North title.

The Eagles (10-6) will host New Orleans (11-5) on Saturday night. Green Bay (8-7-1) is home against San Francisco (12-4) on Sunday.

The wild-card round begins Saturday with Kansas City (11-5) at Indianapolis (11-5). The early game Sunday is San Diego (9-7) at Cincinnati (11-5).

At Chicago, in his first game back from a broken left collarbone, Rodgers threw a 48-yard touchdown pass to Cobb on fourth-and-8 with 38 seconds left for the go-ahead score.

San Diego also finished off a rally to get into the postseason, beating short-handed Kansas City 27-24 in overtime for its fourth consecutive victory. After Miami and Baltimore lost earlier in the day, the Chargers rode Nick Novak’s 36-yard field goal with 5:30 left in OT to the sixth seed.

Kansas City kicker Ryan Succop was wide right on a 41-yard field goal to win it with four seconds left in regulation. Pittsburgh would have gotten the playoff spot over San Diego had Succop connected.

The defending NFL champion Ravens will stay home. The Bengals beat Baltimore 34-17, ensuring the Ravens (8-8) were eliminated once Pittsburgh ( 8- 8) defeated Cleveland 20-7.

Miami (8-8) lost to the New York Jets 20-7.