If it needs washing, you can just spray water from the shower head into the opening.
But it’s also kinda like the vagina for girls. It doesn’t really need washing or special treatment unless it’s infected.
In any case, messing with the penis of your son and making them feel unhygienic or like their foreskin is a problem is likely much more damaging than a little bit of smegma.