diff --git a/drivers/sensor/hts221/Kconfig b/drivers/sensor/hts221/Kconfig index 8291bf294a5..b9f955fcb3d 100644 --- a/drivers/sensor/hts221/Kconfig +++ b/drivers/sensor/hts221/Kconfig @@ -16,14 +16,14 @@ config HTS221_NAME string prompt "Driver name" default "HTS221" - depends on HTS221 + depends on HTS221 && !HAS_DTS_I2C_DEVICE help Device name with which the HTS221 sensor is identified. config HTS221_I2C_MASTER_DEV_NAME string prompt "I2C master where HTS221 is connected" - depends on HTS221 + depends on HTS221 && !HAS_DTS_I2C_DEVICE default "I2C_0" help Specify the device name of the I2C master device to which HTS221 is diff --git a/drivers/sensor/lis3mdl/Kconfig b/drivers/sensor/lis3mdl/Kconfig index 70c63580820..aab4f608690 100644 --- a/drivers/sensor/lis3mdl/Kconfig +++ b/drivers/sensor/lis3mdl/Kconfig @@ -16,14 +16,14 @@ config LIS3MDL_NAME string prompt "Driver name" default "LIS3MDL" - depends on LIS3MDL + depends on LIS3MDL && !HAS_DTS_I2C_DEVICE help Device name with which the LIS3MDL sensor is identified. config LIS3MDL_I2C_ADDR hex prompt "I2C address" - depends on LIS3MDL + depends on LIS3MDL && !HAS_DTS_I2C_DEVICE default 0x1C help I2C address of the LIS3MDL sensor. @@ -33,7 +33,7 @@ config LIS3MDL_I2C_ADDR config LIS3MDL_I2C_MASTER_DEV_NAME string prompt "I2C master where LIS3MDL is connected" - depends on LIS3MDL + depends on LIS3MDL && !HAS_DTS_I2C_DEVICE default "I2C_0" help Specify the device name of the I2C master device to which LIS3MDL is diff --git a/drivers/sensor/lps22hb/Kconfig b/drivers/sensor/lps22hb/Kconfig index 904f06fae3a..fb9be401873 100644 --- a/drivers/sensor/lps22hb/Kconfig +++ b/drivers/sensor/lps22hb/Kconfig @@ -17,14 +17,14 @@ config LPS22HB_DEV_NAME string prompt "Device name" default "LPS22HB" - depends on LPS22HB + depends on LPS22HB && !HAS_DTS_I2C_DEVICE help Device name used for LPS22HB sensor identification. config LPS22HB_I2C_ADDR hex prompt "I2C address" - depends on LPS22HB + depends on LPS22HB && !HAS_DTS_I2C_DEVICE default 0x5D range 0x5C 0x5D help @@ -35,7 +35,7 @@ config LPS22HB_I2C_ADDR config LPS22HB_I2C_MASTER_DEV_NAME string prompt "I2C master where LPS22HB is connected" - depends on LPS22HB + depends on LPS22HB && !HAS_DTS_I2C_DEVICE default I2C_0_NAME help Specify the device name of the I2C master device to which diff --git a/drivers/sensor/lsm6dsl/Kconfig b/drivers/sensor/lsm6dsl/Kconfig index 2823db37cf4..5fd5ddc1f9d 100644 --- a/drivers/sensor/lsm6dsl/Kconfig +++ b/drivers/sensor/lsm6dsl/Kconfig @@ -17,13 +17,13 @@ menuconfig LSM6DSL config LSM6DSL_DEV_NAME string "LSM6DSL device name" - depends on LSM6DSL + depends on LSM6DSL && !HAS_DTS_I2C_DEVICE default "LSM6DSL" config LSM6DSL_I2C_ADDR hex prompt "LSM6DSL I2C address" - depends on LSM6DSL + depends on LSM6DSL && !HAS_DTS_I2C_DEVICE default 0x6A range 0x6A 0x6B help @@ -33,7 +33,7 @@ config LSM6DSL_I2C_ADDR config LSM6DSL_I2C_MASTER_DEV_NAME string "I2C master where LSM6DSL chip is connected" - depends on LSM6DSL + depends on LSM6DSL && !HAS_DTS_I2C_DEVICE default I2C_0_NAME help Specify the device name of the I2C master device to which LSM6DSL is diff --git a/dts/Kconfig b/dts/Kconfig index c16518b2b44..4843167ff94 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -19,3 +19,10 @@ config HAS_DTS_I2C This option specifies that the target platform supports device tree configuration for I2c. +config HAS_DTS_I2C_DEVICE + bool + default n + depends on HAS_DTS_I2C + help + This option specifies that the target platform supports device tree + configuration for sensors.