Homological mirror symmetry for singularities of type D