1. copy iam20680.c, iam20680.h, invn_selftest.c and invn_selftest.h into kernel/drivers/misc
2. modify Kconfig, example is shown below
config SENSORS_IAM20680
tristate "INV_MPU Accelerometer and Gyroscope support"
default n
depends on I2C
help
If you say yes here you get support for InvenSense's
Accelerometer and Gyroscope sensor.
3. modify Makefile, example is shown below
obj-$(CONFIG_SENSORS_IAM20680) += iam20680.o invn_selftest.o
4. if dts is using, please enable #define INVN_DTS
5. In iam20680.h, choose the correct macro definition between BUS_TYPE_I2C and BUS_TYPE_SPI according to what interface is in use
6. In iam20680.h, choose the correct macro definition for Invensense chip part number(IAM20680 or ICM20600)
7. If using INT signal, please assign proper interrupt pin in dts or board config file, for example, using g