Equivalent stiffness of masonry wall is dependent on boundary conditions, young’s modulus of masonry and dimensions. For masonry wall with openings, wall panels are divided into piers with respect to the openings. You can calculate equivalent stiffness by spring analogy method for individual piers.
Your question is too vague. It depends on the model you want to use. For a model taking into account the whole wall, you have this article by Xu et al. ( https://www-sciencedirect-com.insis.bib.cnrs.fr/science/article/pii/S0950061818316155?via%3Dihub ).
Taking into account the opening is a dificult task as you will see. For the Equivalent Strut Model, you have Tripathy and Singhal .