This paper aims to create a unified model that effectively combines continuous 2-dimensional elements and discrete components to capture the nonlinear characteristics and failure mechanisms of solid and perforated masonry infill panels. Given that masonry infill behavior is primarily influenced by shear deformations, an equivalent model is developed by using multiple small square panels arranged diagonally and interconnected by two-component springs, encompassing axial and shear behavior at their intersections. For the sake of simplicity, the divided panels are assumed to behave elastically, with plasticity concentrated only in the axial component of the connector springs. Plastic behavior in the boundary elements was considered to involve both flexural and shear plastic hinges to provide an accurate estimation of the entire infill panel's behavior. To validate this approach, the simplified model is benchmarked against eight experimental masonry infill panels surrounded by steel or reinforced concrete frames and with or without openings. The results including global behavior and crack pattern were compared with available numerical predictions based on finite element method from the literature in addition to experimental outcomes. Ultimately, this comparison demonstrated that the homogeneous model could effectively predict the non-linear lateral behavior of the panels and accurately forecast crack patterns. Additionally, the use of unidirectional non-linear springs and the appropriate arrangement of elastic panels significantly reduced both pre-processing and analysis time.