mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 22:34:21 +08:00
iio: imu: inv_icm42600: Add support for icm42631
Add the required WHOAMI and device_id definitions to support the icm42631. Signed-off-by: Jay Greco <grecojay@amazon.com> Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> Link: https://lore.kernel.org/r/20221110192933.13616-2-grecojay@amazon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
6809ec9768
commit
c896b9f092
@ -22,6 +22,7 @@ enum inv_icm42600_chip {
|
|||||||
INV_CHIP_ICM42602,
|
INV_CHIP_ICM42602,
|
||||||
INV_CHIP_ICM42605,
|
INV_CHIP_ICM42605,
|
||||||
INV_CHIP_ICM42622,
|
INV_CHIP_ICM42622,
|
||||||
|
INV_CHIP_ICM42631,
|
||||||
INV_CHIP_NB,
|
INV_CHIP_NB,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -303,6 +304,7 @@ struct inv_icm42600_state {
|
|||||||
#define INV_ICM42600_WHOAMI_ICM42602 0x41
|
#define INV_ICM42600_WHOAMI_ICM42602 0x41
|
||||||
#define INV_ICM42600_WHOAMI_ICM42605 0x42
|
#define INV_ICM42600_WHOAMI_ICM42605 0x42
|
||||||
#define INV_ICM42600_WHOAMI_ICM42622 0x46
|
#define INV_ICM42600_WHOAMI_ICM42622 0x46
|
||||||
|
#define INV_ICM42600_WHOAMI_ICM42631 0x5C
|
||||||
|
|
||||||
/* User bank 1 (MSB 0x10) */
|
/* User bank 1 (MSB 0x10) */
|
||||||
#define INV_ICM42600_REG_SENSOR_CONFIG0 0x1003
|
#define INV_ICM42600_REG_SENSOR_CONFIG0 0x1003
|
||||||
|
@ -87,6 +87,11 @@ static const struct inv_icm42600_hw inv_icm42600_hw[INV_CHIP_NB] = {
|
|||||||
.name = "icm42622",
|
.name = "icm42622",
|
||||||
.conf = &inv_icm42600_default_conf,
|
.conf = &inv_icm42600_default_conf,
|
||||||
},
|
},
|
||||||
|
[INV_CHIP_ICM42631] = {
|
||||||
|
.whoami = INV_ICM42600_WHOAMI_ICM42631,
|
||||||
|
.name = "icm42631",
|
||||||
|
.conf = &inv_icm42600_default_conf,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct iio_mount_matrix *
|
const struct iio_mount_matrix *
|
||||||
|
@ -84,6 +84,9 @@ static const struct of_device_id inv_icm42600_of_matches[] = {
|
|||||||
}, {
|
}, {
|
||||||
.compatible = "invensense,icm42622",
|
.compatible = "invensense,icm42622",
|
||||||
.data = (void *)INV_CHIP_ICM42622,
|
.data = (void *)INV_CHIP_ICM42622,
|
||||||
|
}, {
|
||||||
|
.compatible = "invensense,icm42631",
|
||||||
|
.data = (void *)INV_CHIP_ICM42631,
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
@ -80,6 +80,9 @@ static const struct of_device_id inv_icm42600_of_matches[] = {
|
|||||||
}, {
|
}, {
|
||||||
.compatible = "invensense,icm42622",
|
.compatible = "invensense,icm42622",
|
||||||
.data = (void *)INV_CHIP_ICM42622,
|
.data = (void *)INV_CHIP_ICM42622,
|
||||||
|
}, {
|
||||||
|
.compatible = "invensense,icm42631",
|
||||||
|
.data = (void *)INV_CHIP_ICM42631,
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user