In this paper, the authors propose a novel partially connected hybrid beamforming (PC-HBF) architecture, which employs variable phase shifters (VPSs) and constant phase shifters (CPSs) for analog beamforming to harness the potential of these two types of phase shifters. In the proposed architecture, the system sum rate optimization to determine the analog precoders can be formulated as a combinatorial problem. However, its exact solution is intractable, and in massive multiple-input multiple-output systems, exhaustive search to solve the corresponding combinatorial problem is practically infeasible. To resolve this problem, we employ a greedy algorithm that provides a near-optimal solution with reduced complexity. The simulation results obtained herein show that by optimally combining VPSs and CPSs, the proposed architecture achieves performance close to that of the VPS-based PC-HBF architecture. Furthermore, its energy efficiency is up to 27.3 % higher than that of the CPS-based fully connected HBF scheme.