Freeman, who is a big fan of Depp, stars as Joseph Tagger in "Transcendence", which has helped him achieve his lifelong ambition, reports contactmusic.com.
The 76-year-old told Today's newspaper: "There were three or four attractions to the role, one being Johnny himself. Always wanted to have a shot at working with him."
The actor has had a successful career in the Hollywood industry with films like "The Magic of Belle Isle" (1991), "High Crimes"(2002), and "The Bucket List" (2007).
In the film, Tagger is a scientist and mentors doctor Will Caster, essayed by Depp. They will be joined by British actress Rebecca Hall as Caster's wife Evelyn.