The compass is a STMicroelectronics chip with marking MSA3D. It is not yet known what it is or whether it is a custom chip. The magnetic sensors are external to it.
It is connected to the UIC over SPI.