Valves for planetary motors