S5 supports full-frame 5.9K recording up to 30p, 4K at 60p, and 3.5K anamorphic at 50p when paired with the Ninja V recorder. Both ProRes RAW and ProRes RAW HQ are supported.
With the Ninja V, you can shoot 3.5K Super 35 anamorphic 4:3 RAW (3536 x 2656) without needing to worry about record time limitations.
ProRes RAW on the S5, you'll need to download AtomOS 10.55 and the latest Panasonic firmware from the support page.