Commit 88b49449 authored by Jean-Baptiste Maneyrol's avatar Jean-Baptiste Maneyrol Committed by Jonathan Cameron

iio: imu: inv_icm42600: add support of ICM-42688-P

Add ICM-42688-P support inside driver.
Signed-off-by: default avatarJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Link: https://lore.kernel.org/r/20240408090720.847107-3-inv.git-commit@tdk.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 6a9e5518
...@@ -22,6 +22,7 @@ enum inv_icm42600_chip { ...@@ -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_ICM42688,
INV_CHIP_ICM42631, INV_CHIP_ICM42631,
INV_CHIP_NB, INV_CHIP_NB,
}; };
...@@ -304,6 +305,7 @@ struct inv_icm42600_state { ...@@ -304,6 +305,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_ICM42688 0x47
#define INV_ICM42600_WHOAMI_ICM42631 0x5C #define INV_ICM42600_WHOAMI_ICM42631 0x5C
/* User bank 1 (MSB 0x10) */ /* User bank 1 (MSB 0x10) */
......
...@@ -87,6 +87,11 @@ static const struct inv_icm42600_hw inv_icm42600_hw[INV_CHIP_NB] = { ...@@ -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_ICM42688] = {
.whoami = INV_ICM42600_WHOAMI_ICM42688,
.name = "icm42688",
.conf = &inv_icm42600_default_conf,
},
[INV_CHIP_ICM42631] = { [INV_CHIP_ICM42631] = {
.whoami = INV_ICM42600_WHOAMI_ICM42631, .whoami = INV_ICM42600_WHOAMI_ICM42631,
.name = "icm42631", .name = "icm42631",
......
...@@ -84,6 +84,9 @@ static const struct of_device_id inv_icm42600_of_matches[] = { ...@@ -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,icm42688",
.data = (void *)INV_CHIP_ICM42688,
}, { }, {
.compatible = "invensense,icm42631", .compatible = "invensense,icm42631",
.data = (void *)INV_CHIP_ICM42631, .data = (void *)INV_CHIP_ICM42631,
......
...@@ -80,6 +80,9 @@ static const struct of_device_id inv_icm42600_of_matches[] = { ...@@ -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,icm42688",
.data = (void *)INV_CHIP_ICM42688,
}, { }, {
.compatible = "invensense,icm42631", .compatible = "invensense,icm42631",
.data = (void *)INV_CHIP_ICM42631, .data = (void *)INV_CHIP_ICM42631,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment