DSGE model with banking sector

Good afternoon dear community!

Can you suggest any good article that describes the model with the banking sector and there is a code for this (Dynare/Matlab)? I would be also grateful if there were any imperfections on the financial markets. Thanks in advance.

Have a look at the Macro Model Database of Volker Wieland and coauthors.