spi_freq = clk_peri / (2 * clk_div)
where clk_div is an integer >= 1 and spi_freq <= requested spi speed. Therefore your 240MHz should’ve theoretically resulted in 40MHz with clk_div=3. Setting 200MHz for your overclock should’ve given you your target spi clock value of 50MHz