Measuring if a transistor can work for SPI/UART when doing logic level conversion
At 1Mhz your timings should be more than adequate.
however, make sure you drive the transistor pretty hard to achieve your rise/fall timings.