It doesn't sound like any STD. Most dermatitis and other skin conditions can involve any part of the body, and genital location doesn't necessarily mean an STD. Your discription is compatible with psoriasis, which commonly involves the penis; that would be even more likely if you also have similar patches elsewhere, or if you have lots of scalp flaking that might seem like bad dandruff. But this is only a guess and there are many possibilities.
See health care provider, perhaps a dermatologist. Most such conditions can be effectively treated, but a professional diagnosis is necessary. But don't worry about STD.
Good luck-- HHH, MD