If parents agree then the school can have access, however the default should not be that they can demand access or punish parents for not providing it.
IMO, if you are bringing a phone to school, and there is a substantiated allegation of a violation of a reasonable school policy involving the phone-- examining the phone should be fair game. And, this is what appellate courts have held.