Zephyr provides a way to enable the legacy cros-ec sensor drivers. This is done through both enabling Kconfig options and adding nodes to the devicetree.
| Kconfig Option | Default | Documentation |
|---|---|---|
CONFIG_PLATFORM_EC_ACCELGYRO_BMI160 | n | BMI160 |
CONFIG_PLATFORM_EC_ACCELGYRO_BMI260 | n | BMI260 |
CONFIG_PLATFORM_EC_ACCELGYRO_BMI3XX | n | BMI3XX |
CONFIG_PLATFORM_EC_ACCELGYRO_ICM426XX | n | ICM426XX |
CONFIG_PLATFORM_EC_ACCELGYRO_ICM42607 | n | ICM42607 |
CONFIG_PLATFORM_EC_ACCELGYRO_LSM6DSO | n | LSM6DSO |
CONFIG_PLATFORM_EC_ACCEL_BMA255 | n | BMA255 |
CONFIG_PLATFORM_EC_ACCEL_BMA4XX | n | BMA4XX |
CONFIG_PLATFORM_EC_ACCEL_KX022 | n | KX022 |
CONFIG_PLATFORM_EC_ACCEL_LIS2DW12 | n | LIS2DW12 |
CONFIG_PLATFORM_EC_ALS_TCS3400 | n | TCS3400 |
CONFIG_PLATFORM_EC_ALS_VEML3328 | n | [VEML3328] |
The following choice is available only when one of the CONFIG_PLATFORM_EC_ACCELGYRO_BMI* configs are selected.
| Kconfig choice | Documentation |
|---|---|
CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_SPI | BMI COMM SPI |
CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C | BMI COMM I2C |
The following choice is available only when one of the CONFIG_PLATFORM_EC_ACCELGYRO_ICM* configs are selected.
| Kconfig choice | Documentation |
|---|---|
CONFIG_PLATFORM_EC_ACCELGYRO_ICM_COMM_SPI | ICM COMM SPI |
CONFIG_PLATFORM_EC_ACCELGYRO_ICM_COMM_I2C | ICM COMM I2C |
Detail the devicetree nodes that configure the feature.
Note - avoid documenting node properties here. Point to the relevant .yaml file instead, which contains the authoritative definition.
Document any board specific routines that a user must create to successfully compile and run. For many features, this can section can be empty.
Document any threads enabled by this feature.
Provide any tips for testing and debugging the EC feature.
Provide code snippets from a working board to walk the user through all code that must be created to enable this feature.