ESP32 has 3 SPI ports, one it uses for it's on flash chip, the VSPI can be used, but only the HSPI supports Quad SPI. Hookup the 8 wires to the SPI chip. In the SPI setup the message will negotiate the use 4 data lines.