possibly bang (village/place) + kok, referring to a type of tree
Fun Fact
The city's official Thai name is dramatically longer and different from 'Bangkok', which is actually a Western-derived exonym referring to an older, smaller settlement on the site.