Cardinals sign WR Ted Ginn

The Arizona Cardinals have signed former Carolina Panthers wide receiver Ted Ginn to a three-year contract, the team announced Thursday.

Ginn was signed primarily to give Carolina's return game a boost last season, but he wound up being a much-needed deep threat at wide receiver.

He had five touchdown catches, four for 25 yards or more. One was a 25-yard game-winner in a Monday night game against the New England Patriots.

He had 36 catches for 556 yards, his best year as a receiver since he caught 56 passes for 790 yards in 2008.

His 47-yard touchdown catch in Week 3 against the New York Giants was the second longest of his career, besting the 53-yarder he had in 2009 against the Jets.

Ginn left the San Francisco 49ers after the 2012 season in which he had only two receptions to sign a one-year deal with Carolina. He led the team in kickoff returns with an average of 23.8 yards and in punt returns at 12.2 yards.

The Cardinals also announced they have agreed to terms on a two-year deal with linebacker Matt Shaughnessy.

Shaughnessy played in all 16 games with Arizona last year, recording 62 tackles.

ESPN.com Panthers reporter David Newton contributed to this report.