You can set PinOut with the help of Infinity Box Shell Manager. Download and install the application then select the model of your phone. On GPGDragon, use the information from the Infinity Box (info displayed on the left) and customize the Pinout modes.
However, the process is actually a bit more complication. For this purpose, use Google and check the first YouTube video. It's an in-depth guide to assign pins and perform detection, unlocking, etc.