regulator: s2mps11: Move DTS parsing code to separate function