1736, Kentish dialect, "dirty," of uncertain origin, but perhaps related to dung. The noun dinge (1816) is a back-formation.
Goofy; loony: a dingy move