We propose and demonstrate a widely tunable passively Q-switched Ho3+/Pr3+-codoped ZrF4-BaF2-LaF3-AlF3-NaF fiber laser operating in the 2.8 μm mid-infrared (MIR) waveband based on a single-walled carbon nanotube (SWCNT) saturable absorber (SA). The S