Will he eat grown-up food off a fork or spoon if you feed it to him? Or does he only eat mushed up baby food?
If it's the second, I would have him checked out by a certified nutritionist, occupational therapist, or speech therapist. It's possible that he could have a texture aversion, or even have a muscle weakness that doesn't allow him to chew properly. A 2yr old should definitely be able to eat solid foods. If it's a matter of him not wanting to do it, that's one thing, but if it seems like he can't, then I would get him assessed. I hate to sound like a nervous nelly, but if there's something wrong, the earlier you get help for him the better.
If it's the second, I would have him checked out by a certified nutritionist, occupational therapist, or speech therapist. It's possible that he could have a texture aversion, or even have a muscle weakness that doesn't allow him to chew properly. A 2yr old should definitely be able to eat solid foods. If it's a matter of him not wanting to do it, that's one thing, but if it seems like he can't, then I would get him assessed. I hate to sound like a nervous nelly, but if there's something wrong, the earlier you get help for him the better.