This could be a few things - Fordyce spots, genital warts, pearly penile papules, molluscum, or any mix of those. The only way to know is to get it checked out.
Let us know what the doctor says. Don't try to self-diagnose or self-treat. If you're wrong, you could cause a lot of harm to yourself.