This commit addresses an issue where the sensor was not being driven correctly due to an error in the initialization of the SPI mode. As per the sensor datasheet (ICM-42670-P), on Page 45, under the DEVICE_CONFIG register, bit 0 is defined crucial for SPI mode selection. After reset, this register is initialized to 0x40, with the default value of bit 0 set to 0, indicating "SPI mode selection 0: Mode 0 and Mode 3".
The correction made in this commit involves setting the host's SPI mode to either Mode 0 or Mode 3, as per the default configuration of the sensor. This change ensures that the sensor is driven correctly, aligning the driver configuration with the sensor's default state post-reset. This fix is essential for the proper operation of the sensor using SPI communication.
This commit addresses an issue where the sensor was not being driven correctly due to an error in the initialization of the SPI mode. As per the sensor datasheet (ICM-42670-P), on Page 45, under the DEVICE_CONFIG register, bit 0 is defined crucial for SPI mode selection. After reset, this register is initialized to 0x40, with the default value of bit 0 set to 0, indicating "SPI mode selection 0: Mode 0 and Mode 3".
The correction made in this commit involves setting the host's SPI mode to either Mode 0 or Mode 3, as per the default configuration of the sensor. This change ensures that the sensor is driven correctly, aligning the driver configuration with the sensor's default state post-reset. This fix is essential for the proper operation of the sensor using SPI communication.