Pixhawk Cube GPS Wiring..?

I’m using Pixhawk Cube and Ublox M8N Clone.

in GPS Port

I connected 4 wire for GPS and 2 wires for compass.

not connected in I2C Port

is it right?

do I have to use 3 wires for compass…?