pinctrl: Add the ability to convert EnhancedPin to BasePin