Navio2 has 14 PWM outputs which can also be used as GPIOs. You need to configure the BRD_PWM_COUNT parameter in the MissionPlanner. This parameter defines PWM outputs reserved by ArduoPilot. Others can be used as GPIO outputs. To operate servo rail pins as GPIOs, please, follow this guide.