The process in which relatively unspecialized cells acquire the specialized features of R2 and R5 photoreceptors. An example of this process is found in Drosophila melanogaster.
R2/R5 cell differentiation