I'm trying to design a microcontroller board. There will be a main power connector and also an ISP programming port on my board. The microcontroller is running on 3.3V using a linear voltage regulator. I want to use the following circuit. Is it OK? The voltage from the ISP port would be 5V. The Diode D2 will decrease the input voltage of regulator would it be ok to have less than 5 volts on input?
simulate this circuit – Schematic created using CircuitLab