Not all there

Origin of: Not all there

Not all there

Mentally deficient, dates from the mid-18th century.