dts: add sensors dts support for some sensors
Provide HAS_DTS_I2C_DEVICE flag to enable dts based generation for these sensors. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
568fc9d91f
commit
65747e8702
5 changed files with 18 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue