Bam Margera's son Phoenix is inspiring him to detox and sober up following a psych hold ... and his estranged wife is allowing him to talk to their kid again.
Nikki Margera's attorney, David Glass, tells TMZ ... she's given the green light for Bam and Phoenix to start communicating, and they're talking over FaceTime while Bam's in rehab.
We're told Bam's FaceTime sessions with Phoenix are being modulated by one of Bam's therapists .