It's a fact of life: boys of all ages play with their penises.
It's completely normal. However, if the tip of the penis is red or swollen, then he needs to be seen by a doctor. But if the penis looks normal and the child seems to be pain-free, don't worry. As i say in my office, "it's just a phase: he'll only do it for the rest of his life.".