sensor: Eliminate repetitive Kconfig "depends on" in sensor drivers

For each sensor driver, wrap all Kconfig symbols in a big if/endif
conditional rather than repeating "depends on" for each symbol.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2018-09-12 17:23:26 -05:00 committed by Anas Nashif
commit ab9017ec83
36 changed files with 234 additions and 316 deletions

View file

@ -11,14 +11,14 @@ menuconfig ADXL362
help help
Enable driver for ADXL362 Three-Axis Digital Accelerometers. Enable driver for ADXL362 Three-Axis Digital Accelerometers.
if ADXL362
config ADXL362_DEV_NAME config ADXL362_DEV_NAME
string "ADXL362 device name" string "ADXL362 device name"
depends on ADXL362
default "ADXL362" default "ADXL362"
config ADXL362_SPI_DEV_NAME config ADXL362_SPI_DEV_NAME
string "SPI device where ADXL362 is connected" string "SPI device where ADXL362 is connected"
depends on ADXL362
default "SPI_0" default "SPI_0"
help help
Specify the device name of the SPI device to which ADXL362 is Specify the device name of the SPI device to which ADXL362 is
@ -26,7 +26,6 @@ config ADXL362_SPI_DEV_NAME
config ADXL362_SPI_DEV_SLAVE config ADXL362_SPI_DEV_SLAVE
int "SPI Slave Select where ADXL362 is connected" int "SPI Slave Select where ADXL362 is connected"
depends on ADXL362
default 2 default 2
help help
Specify the slave select pin of the SPI to which ADXL362 is Specify the slave select pin of the SPI to which ADXL362 is
@ -34,7 +33,6 @@ config ADXL362_SPI_DEV_SLAVE
choice choice
prompt "Accelerometer range setting" prompt "Accelerometer range setting"
depends on ADXL362
default ADXL362_ACCEL_RANGE_RUNTIME default ADXL362_ACCEL_RANGE_RUNTIME
config ADXL362_ACCEL_RANGE_RUNTIME config ADXL362_ACCEL_RANGE_RUNTIME
@ -53,7 +51,6 @@ endchoice
choice choice
prompt "Accelerometer sampling frequency." prompt "Accelerometer sampling frequency."
depends on ADXL362
default ADXL362_ACCEL_ODR_RUNTIME default ADXL362_ACCEL_ODR_RUNTIME
config ADXL362_ACCEL_ODR_RUNTIME config ADXL362_ACCEL_ODR_RUNTIME
@ -78,3 +75,5 @@ config ADXL362_ACCEL_ODR_400
bool "400 Hz" bool "400 Hz"
endchoice endchoice
endif # ADXL362

View file

@ -12,16 +12,16 @@ menuconfig AK8975
help help
Enable driver for AK8975 magnetometer. Enable driver for AK8975 magnetometer.
if AK8975
config AK8975_NAME config AK8975_NAME
string "Driver name" string "Driver name"
default "AK8975" default "AK8975"
depends on AK8975
help help
Device name with which the AK8975 sensor is identified. Device name with which the AK8975 sensor is identified.
config AK8975_I2C_ADDR config AK8975_I2C_ADDR
hex "I2C address" hex "I2C address"
depends on AK8975
default 0x0C default 0x0C
range 0x0C 0x0F range 0x0C 0x0F
help help
@ -37,7 +37,6 @@ config AK8975_I2C_ADDR
config AK8975_I2C_MASTER_DEV_NAME config AK8975_I2C_MASTER_DEV_NAME
string "I2C master where AK8975 is connected" string "I2C master where AK8975 is connected"
depends on AK8975
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
@ -45,16 +44,17 @@ config AK8975_I2C_MASTER_DEV_NAME
config MPU9150 config MPU9150
bool "Enable MPU9180 support" bool "Enable MPU9180 support"
depends on AK8975
help help
Enable this config option if the AK8975 sensor is part of a Enable this config option if the AK8975 sensor is part of a
MPU9150 chip. MPU9150 chip.
config MPU9150_I2C_ADDR config MPU9150_I2C_ADDR
hex "MPU9180 I2C address" hex "MPU9180 I2C address"
depends on AK8975 && MPU9150 && !MPU6050 depends on MPU9150 && !MPU6050
range 0x68 0x69 range 0x68 0x69
default 0x68 default 0x68
help help
I2C address of the MPU9150. If the driver for MPU6050 is enabled, I2C address of the MPU9150. If the driver for MPU6050 is enabled,
its address will be used and this option made unavailable. its address will be used and this option made unavailable.
endif # AK8975

View file

@ -10,11 +10,12 @@ menuconfig APDS9960
help help
Enable driver for APDS9960 sensors. Enable driver for APDS9960 sensors.
if APDS9960
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config APDS9960_I2C_DEV_NAME config APDS9960_I2C_DEV_NAME
string "I2C Master" string "I2C Master"
depends on APDS9960
default "I2C_0" default "I2C_0"
help help
The device name of the I2C master device to which the APDS9960 The device name of the I2C master device to which the APDS9960
@ -23,8 +24,9 @@ config APDS9960_I2C_DEV_NAME
config APDS9960_DRV_NAME config APDS9960_DRV_NAME
string "Driver name" string "Driver name"
default "APDS9960" default "APDS9960"
depends on APDS9960
help help
Device name with which the APDS9960 is identified. Device name with which the APDS9960 is identified.
endif # !HAS_DTS_I2C_DEVICE endif # !HAS_DTS_I2C_DEVICE
endif # APDS9960

View file

@ -13,9 +13,10 @@ menuconfig BMA280
Enable driver for BMA280 I2C-based triaxial accelerometer sensor Enable driver for BMA280 I2C-based triaxial accelerometer sensor
family. family.
if BMA280
choice choice
prompt "Chip type" prompt "Chip type"
depends on BMA280
default BMA280_CHIP_BMA280 default BMA280_CHIP_BMA280
help help
Choose desired chip type from the BMA280 family. Choose desired chip type from the BMA280 family.
@ -36,13 +37,11 @@ config BMA280_NAME
string "Driver name" string "Driver name"
default "BMA280" if BMA280_CHIP_BMA280 default "BMA280" if BMA280_CHIP_BMA280
default "BMC150_ACCEL" if BMA280_CHIP_BMC150_ACCEL default "BMC150_ACCEL" if BMA280_CHIP_BMC150_ACCEL
depends on BMA280
help help
Device name with which the sensor is identified. Device name with which the sensor is identified.
config BMA280_I2C_ADDR config BMA280_I2C_ADDR
hex "BMA280 I2C address" hex "BMA280 I2C address"
depends on BMA280
default 0x18 if BMA280_CHIP_BMA280 default 0x18 if BMA280_CHIP_BMA280
default 0x10 if BMA280_CHIP_BMC150_ACCEL default 0x10 if BMA280_CHIP_BMC150_ACCEL
help help
@ -55,7 +54,6 @@ config BMA280_I2C_ADDR
config BMA280_I2C_MASTER_DEV_NAME config BMA280_I2C_MASTER_DEV_NAME
string "I2C master device name" string "I2C master device name"
depends on BMA280
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which chip is Specify the device name of the I2C master device to which chip is
@ -63,7 +61,6 @@ config BMA280_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on BMA280
default BMA280_TRIGGER_GLOBAL_THREAD default BMA280_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -85,12 +82,11 @@ endchoice
config BMA280_TRIGGER config BMA280_TRIGGER
bool bool
depends on BMA280
config BMA280_GPIO_DEV_NAME config BMA280_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on BMA280 && BMA280_TRIGGER depends on BMA280_TRIGGER
help help
The device name of the GPIO device to which the chip's interrupt pins The device name of the GPIO device to which the chip's interrupt pins
are connected. are connected.
@ -98,28 +94,27 @@ config BMA280_GPIO_DEV_NAME
config BMA280_GPIO_PIN_NUM config BMA280_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on BMA280 && BMA280_TRIGGER depends on BMA280_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the chip The number of the GPIO on which the interrupt signal from the chip
will be received. will be received.
config BMA280_THREAD_PRIORITY config BMA280_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on BMA280 && BMA280_TRIGGER_OWN_THREAD depends on BMA280_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config BMA280_THREAD_STACK_SIZE config BMA280_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on BMA280 && BMA280_TRIGGER_OWN_THREAD depends on BMA280_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
choice choice
prompt "Acceleration measurement range" prompt "Acceleration measurement range"
depends on BMA280
default BMA280_PMU_RANGE_2G default BMA280_PMU_RANGE_2G
help help
Measurement range for acceleration values. Measurement range for acceleration values.
@ -140,7 +135,6 @@ endchoice
choice choice
prompt "Acceleration data filter bandwidth" prompt "Acceleration data filter bandwidth"
depends on BMA280
default BMA280_PMU_BW_7 default BMA280_PMU_BW_7
help help
Bandwidth of filtered acceleration data. Bandwidth of filtered acceleration data.
@ -170,3 +164,5 @@ config BMA280_PMU_BW_8
bool "unfiltered" bool "unfiltered"
endchoice endchoice
endif # BMA280

View file

@ -12,15 +12,15 @@ menuconfig BMC150_MAGN
help help
Enable driver for BMC150 I2C-based magnetometer sensor. Enable driver for BMC150 I2C-based magnetometer sensor.
if BMC150_MAGN
config BMC150_MAGN_DEV_NAME config BMC150_MAGN_DEV_NAME
string "BMC150_MAGN device name" string "BMC150_MAGN device name"
depends on BMC150_MAGN
default "bmc150_magn" default "bmc150_magn"
config BMC150_MAGN_I2C_ADDR config BMC150_MAGN_I2C_ADDR
hex "BMC150_MAGN I2C slave address" hex "BMC150_MAGN I2C slave address"
default 0x12 default 0x12
depends on BMC150_MAGN
help help
Specify the I2C slave address for the BMC150_MAGN. Specify the I2C slave address for the BMC150_MAGN.
@ -29,19 +29,16 @@ config BMC150_MAGN_I2C_ADDR
config BMC150_MAGN_I2C_MASTER_DEV_NAME config BMC150_MAGN_I2C_MASTER_DEV_NAME
string "I2C master where BMC150_MAGN is connected" string "I2C master where BMC150_MAGN is connected"
depends on BMC150_MAGN
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which BMC150_MAGN Specify the device name of the I2C master device to which BMC150_MAGN
is connected. is connected.
menu "Attributes" menu "Attributes"
depends on BMC150_MAGN
choice choice
prompt "Default preset" prompt "Default preset"
default BMC150_MAGN_PRESET_REGULAR default BMC150_MAGN_PRESET_REGULAR
depends on BMC150_MAGN
help help
Specify the default preset (x/y oversampling, z oversampling, sampling Specify the default preset (x/y oversampling, z oversampling, sampling
frequency). frequency).
@ -62,19 +59,16 @@ endchoice
config BMC150_MAGN_SAMPLING_RATE_RUNTIME config BMC150_MAGN_SAMPLING_RATE_RUNTIME
bool "Enable dynamic sampling rate" bool "Enable dynamic sampling rate"
depends on BMC150_MAGN
help help
Enable alteration of sampling rate attribute at runtime. Enable alteration of sampling rate attribute at runtime.
config BMC150_MAGN_SAMPLING_REP_XY config BMC150_MAGN_SAMPLING_REP_XY
bool "Enable dynamic XY oversampling" bool "Enable dynamic XY oversampling"
depends on BMC150_MAGN
help help
Enable alteration of XY oversampling at runtime. Enable alteration of XY oversampling at runtime.
config BMC150_MAGN_SAMPLING_REP_Z config BMC150_MAGN_SAMPLING_REP_Z
bool "Enable dynamic Z oversampling" bool "Enable dynamic Z oversampling"
depends on BMC150_MAGN
help help
Enable alteration of Z oversampling at runtime. Enable alteration of Z oversampling at runtime.
@ -82,7 +76,7 @@ endmenu
config BMC150_MAGN_TRIGGER config BMC150_MAGN_TRIGGER
bool "Enable triggers" bool "Enable triggers"
depends on BMC150_MAGN && GPIO depends on GPIO
help help
Enable triggers for BMC150 magnetometer Enable triggers for BMC150 magnetometer
@ -113,3 +107,5 @@ config BMC150_MAGN_GPIO_DRDY_INT_PIN
depends on BMC150_MAGN_TRIGGER_DRDY depends on BMC150_MAGN_TRIGGER_DRDY
help help
GPIO pin number for the data ready interrupt pin. GPIO pin number for the data ready interrupt pin.
endif # BMC150_MAGN

View file

@ -13,14 +13,14 @@ menuconfig BME280
help help
Enable driver for BME280 I2C-based or SPI-based temperature and pressure sensor. Enable driver for BME280 I2C-based or SPI-based temperature and pressure sensor.
if BME280
config BME280_DEV_NAME config BME280_DEV_NAME
string "BME280 device name" string "BME280 device name"
depends on BME280
default "BME280" default "BME280"
choice choice
prompt "BME280 device select" prompt "BME280 device select"
depends on BME280
default BME280_DEV_TYPE_I2C default BME280_DEV_TYPE_I2C
help help
Select interface to communicate with BME280 sensor. This sensor can communicate Select interface to communicate with BME280 sensor. This sensor can communicate
@ -38,7 +38,7 @@ endchoice
config BME280_I2C_ADDR config BME280_I2C_ADDR
hex "BME280 I2C slave address" hex "BME280 I2C slave address"
default 0x76 default 0x76
depends on BME280 && BME280_DEV_TYPE_I2C depends on BME280_DEV_TYPE_I2C
help help
Specify the I2C slave address for the BME280. Specify the I2C slave address for the BME280.
@ -47,7 +47,7 @@ config BME280_I2C_ADDR
config BME280_I2C_MASTER_DEV_NAME config BME280_I2C_MASTER_DEV_NAME
string "I2C master where BME280 is connected" string "I2C master where BME280 is connected"
depends on BME280 && BME280_DEV_TYPE_I2C depends on BME280_DEV_TYPE_I2C
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which BME280 is Specify the device name of the I2C master device to which BME280 is
@ -55,7 +55,7 @@ config BME280_I2C_MASTER_DEV_NAME
config BME280_SPI_DEV_NAME config BME280_SPI_DEV_NAME
string "SPI device where BME280 is connected" string "SPI device where BME280 is connected"
depends on BME280 && BME280_DEV_TYPE_SPI depends on BME280_DEV_TYPE_SPI
default "SPI_0" default "SPI_0"
help help
Specify the device name of the SPI device to which BME280 is Specify the device name of the SPI device to which BME280 is
@ -63,18 +63,16 @@ config BME280_SPI_DEV_NAME
config BME280_SPI_DEV_SLAVE config BME280_SPI_DEV_SLAVE
int "SPI Slave Select where BME280 is connected" int "SPI Slave Select where BME280 is connected"
depends on BME280 && BME280_DEV_TYPE_SPI depends on BME280_DEV_TYPE_SPI
default 3 default 3
help help
Specify the Slave Select pin of the SPI device to which BME280 CS is Specify the Slave Select pin of the SPI device to which BME280 CS is
connected. connected.
menu "Attributes" menu "Attributes"
depends on BME280
choice choice
prompt "BME280 temperature oversampling" prompt "BME280 temperature oversampling"
depends on BME280
default BME280_TEMP_OVER_2X default BME280_TEMP_OVER_2X
help help
Select temperature oversampling for the BME280 sensor. Higher values Select temperature oversampling for the BME280 sensor. Higher values
@ -93,7 +91,6 @@ endchoice
choice choice
prompt "BME280 pressure oversampling" prompt "BME280 pressure oversampling"
depends on BME280
default BME280_PRESS_OVER_16X default BME280_PRESS_OVER_16X
help help
Select pressure oversampling for the BME280 sensor. Higher values Select pressure oversampling for the BME280 sensor. Higher values
@ -112,7 +109,6 @@ endchoice
choice choice
prompt "BME280 humidity oversampling" prompt "BME280 humidity oversampling"
depends on BME280
default BME280_HUMIDITY_OVER_16X default BME280_HUMIDITY_OVER_16X
help help
Select humidity oversampling for the BME280 sensor. Higher values Select humidity oversampling for the BME280 sensor. Higher values
@ -131,7 +127,6 @@ endchoice
choice choice
prompt "BME280 standby time" prompt "BME280 standby time"
depends on BME280
default BME280_STANDBY_1000MS default BME280_STANDBY_1000MS
help help
Select standby time between measurements for the BME280 sensor. Select standby time between measurements for the BME280 sensor.
@ -156,7 +151,6 @@ endchoice
choice choice
prompt "BME280 filter coefficient" prompt "BME280 filter coefficient"
depends on BME280
default BME280_FILTER_4 default BME280_FILTER_4
help help
Select the filter coefficient for the BME280 sensor. Select the filter coefficient for the BME280 sensor.
@ -173,3 +167,5 @@ config BME280_FILTER_16
endchoice endchoice
endmenu endmenu
endif # BME280

View file

@ -12,23 +12,22 @@ menuconfig BMG160
help help
Enable Bosch BMG160 gyroscope support. Enable Bosch BMG160 gyroscope support.
if BMG160
config BMG160_DRV_NAME config BMG160_DRV_NAME
string "Driver's name" string "Driver's name"
depends on BMG160
default "bmg160" default "bmg160"
help help
Name for the BMG160 driver which will be used for binding. Name for the BMG160 driver which will be used for binding.
config BMG160_I2C_PORT_NAME config BMG160_I2C_PORT_NAME
string "I2C master controller port name" string "I2C master controller port name"
depends on BMG160
default "I2C_0" default "I2C_0"
help help
Master I2C port name through which BMG160 chip is accessed. Master I2C port name through which BMG160 chip is accessed.
config BMG160_I2C_ADDR config BMG160_I2C_ADDR
hex "BMG160 I2C address" hex "BMG160 I2C address"
depends on BMG160
default 0x68 default 0x68
help help
BMG160 chip's I2C address. Chip supports two addresses: 0x68 and 0x69 (if BMG160 chip's I2C address. Chip supports two addresses: 0x68 and 0x69 (if
@ -37,7 +36,6 @@ config BMG160_I2C_ADDR
choice choice
prompt "BMG160 I2C bus speed" prompt "BMG160 I2C bus speed"
default BMG160_I2C_SPEED_STANDARD default BMG160_I2C_SPEED_STANDARD
depends on BMG160
config BMG160_I2C_SPEED_STANDARD config BMG160_I2C_SPEED_STANDARD
bool "Standard" bool "Standard"
@ -52,7 +50,6 @@ endchoice
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on BMG160
default BMG160_TRIGGER_GLOBAL_THREAD default BMG160_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -71,39 +68,37 @@ endchoice
config BMG160_TRIGGER config BMG160_TRIGGER
bool bool
depends on BMG160
config BMG160_THREAD_PRIORITY config BMG160_THREAD_PRIORITY
int "Own thread priority" int "Own thread priority"
depends on BMG160 && BMG160_TRIGGER_OWN_THREAD depends on BMG160_TRIGGER_OWN_THREAD
default 10 default 10
help help
The priority of the thread used for handling interrupts. The priority of the thread used for handling interrupts.
config BMG160_THREAD_STACK_SIZE config BMG160_THREAD_STACK_SIZE
int "Own thread stack size" int "Own thread stack size"
depends on BMG160 && BMG160_TRIGGER_OWN_THREAD depends on BMG160_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
The thread stack size. The thread stack size.
config BMG160_GPIO_PORT_NAME config BMG160_GPIO_PORT_NAME
string "GPIO controller port name" string "GPIO controller port name"
depends on BMG160 && BMG160_TRIGGER depends on BMG160_TRIGGER
default "GPIO_0" default "GPIO_0"
help help
The gpio controller the interrupt pin is attached to. The gpio controller the interrupt pin is attached to.
config BMG160_INT_PIN config BMG160_INT_PIN
hex "BMG160 INT PIN" hex "BMG160 INT PIN"
depends on BMG160 && BMG160_TRIGGER depends on BMG160_TRIGGER
default 2 default 2
help help
BMG160 interrupt pin. BMG160 interrupt pin.
choice choice
prompt "Gyroscope range setting." prompt "Gyroscope range setting."
depends on BMG160
default BMG160_RANGE_RUNTIME default BMG160_RANGE_RUNTIME
config BMG160_RANGE_RUNTIME config BMG160_RANGE_RUNTIME
@ -127,7 +122,6 @@ endchoice
choice choice
prompt "Gyroscope sampling frequency." prompt "Gyroscope sampling frequency."
depends on BMG160
default BMG160_ODR_RUNTIME default BMG160_ODR_RUNTIME
config BMG160_ODR_RUNTIME config BMG160_ODR_RUNTIME
@ -148,3 +142,5 @@ config BMG160_ODR_1000
config BMG160_ODR_2000 config BMG160_ODR_2000
bool "2000 Hz" bool "2000 Hz"
endchoice endchoice
endif # BMG160

View file

@ -13,20 +13,19 @@ menuconfig BMI160
Enable Bosch BMI160 inertial measurement unit that provides acceleration Enable Bosch BMI160 inertial measurement unit that provides acceleration
and angular rate measurements. and angular rate measurements.
if BMI160
config BMI160_NAME config BMI160_NAME
string "Driver's name" string "Driver's name"
depends on BMI160
default "BMI160" default "BMI160"
config BMI160_SPI_PORT_NAME config BMI160_SPI_PORT_NAME
string "SPI master controller port name" string "SPI master controller port name"
depends on BMI160
help help
Master SPI port name through which BMI160 chip is accessed. Master SPI port name through which BMI160 chip is accessed.
config BMI160_SLAVE config BMI160_SLAVE
hex "BMI160 SPI slave select pin" hex "BMI160 SPI slave select pin"
depends on BMI160
default 0 default 0
help help
BMI160 chip select pin. BMI160 chip select pin.
@ -34,14 +33,12 @@ config BMI160_SLAVE
config BMI160_SPI_BUS_FREQ config BMI160_SPI_BUS_FREQ
int "BMI160 SPI bus speed in Hz" int "BMI160 SPI bus speed in Hz"
default 640000 default 640000
depends on BMI160
help help
This is the maximum supported SPI bus frequency. The chip supports a This is the maximum supported SPI bus frequency. The chip supports a
frequency up to 10MHz. frequency up to 10MHz.
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on BMI160
default BMI160_TRIGGER_GLOBAL_THREAD default BMI160_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -60,18 +57,17 @@ endchoice
config BMI160_TRIGGER config BMI160_TRIGGER
bool bool
depends on BMI160
config BMI160_THREAD_PRIORITY config BMI160_THREAD_PRIORITY
int "Own thread priority" int "Own thread priority"
depends on BMI160 && BMI160_TRIGGER_OWN_THREAD depends on BMI160_TRIGGER_OWN_THREAD
default 10 default 10
help help
The priority of the thread used for handling interrupts. The priority of the thread used for handling interrupts.
config BMI160_THREAD_STACK_SIZE config BMI160_THREAD_STACK_SIZE
int "Own thread stack size" int "Own thread stack size"
depends on BMI160 && BMI160_TRIGGER_OWN_THREAD depends on BMI160_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
The thread stack size. The thread stack size.
@ -79,7 +75,7 @@ config BMI160_THREAD_STACK_SIZE
config BMI160_GPIO_DEV_NAME config BMI160_GPIO_DEV_NAME
string "Gpio device" string "Gpio device"
default "GPIO_1" default "GPIO_1"
depends on BMI160 && BMI160_TRIGGER depends on BMI160_TRIGGER
help help
The name of the GPIO device to which the BMI160 interrupt pin is The name of the GPIO device to which the BMI160 interrupt pin is
connected. connected.
@ -87,35 +83,30 @@ config BMI160_GPIO_DEV_NAME
config BMI160_GPIO_PIN_NUM config BMI160_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 4 default 4
depends on BMI160 && BMI160_TRIGGER depends on BMI160_TRIGGER
help help
The number of the GPIO pin which is connected to BMI160 interrupt pin. The number of the GPIO pin which is connected to BMI160 interrupt pin.
choice choice
prompt "Accelerometer power mode" prompt "Accelerometer power mode"
depends on BMI160
default BMI160_ACCEL_PMU_RUNTIME default BMI160_ACCEL_PMU_RUNTIME
config BMI160_ACCEL_PMU_RUNTIME config BMI160_ACCEL_PMU_RUNTIME
bool "Set at runtime." bool "Set at runtime."
depends on BMI160
config BMI160_ACCEL_PMU_SUSPEND config BMI160_ACCEL_PMU_SUSPEND
bool "suspended/not used" bool "suspended/not used"
depends on BMI160
config BMI160_ACCEL_PMU_NORMAL config BMI160_ACCEL_PMU_NORMAL
bool "normal" bool "normal"
depends on BMI160
config BMI160_ACCEL_PMU_LOW_POWER config BMI160_ACCEL_PMU_LOW_POWER
bool "low power" bool "low power"
depends on BMI160
endchoice endchoice
choice choice
prompt "Accelerometer range setting" prompt "Accelerometer range setting"
depends on BMI160 && (BMI160_ACCEL_PMU_RUNTIME || BMI160_ACCEL_PMU_NORMAL || BMI160_ACCEL_PMU_LOW_POWER) depends on (BMI160_ACCEL_PMU_RUNTIME || BMI160_ACCEL_PMU_NORMAL || BMI160_ACCEL_PMU_LOW_POWER)
default BMI160_ACCEL_RANGE_RUNTIME default BMI160_ACCEL_RANGE_RUNTIME
config BMI160_ACCEL_RANGE_RUNTIME config BMI160_ACCEL_RANGE_RUNTIME
@ -136,7 +127,7 @@ endchoice
choice choice
prompt "Accelerometer sampling frequency." prompt "Accelerometer sampling frequency."
depends on BMI160 && (BMI160_ACCEL_PMU_RUNTIME || BMI160_ACCEL_PMU_NORMAL || BMI160_ACCEL_PMU_LOW_POWER) depends on (BMI160_ACCEL_PMU_RUNTIME || BMI160_ACCEL_PMU_NORMAL || BMI160_ACCEL_PMU_LOW_POWER)
default BMI160_ACCEL_ODR_RUNTIME default BMI160_ACCEL_ODR_RUNTIME
config BMI160_ACCEL_ODR_RUNTIME config BMI160_ACCEL_ODR_RUNTIME
@ -185,29 +176,24 @@ endchoice
choice choice
prompt "Gyroscope power mode" prompt "Gyroscope power mode"
depends on BMI160
default BMI160_GYRO_PMU_RUNTIME default BMI160_GYRO_PMU_RUNTIME
config BMI160_GYRO_PMU_RUNTIME config BMI160_GYRO_PMU_RUNTIME
bool "Set at runtime." bool "Set at runtime."
depends on BMI160
config BMI160_GYRO_PMU_SUSPEND config BMI160_GYRO_PMU_SUSPEND
bool "suspended/not used" bool "suspended/not used"
depends on BMI160
config BMI160_GYRO_PMU_NORMAL config BMI160_GYRO_PMU_NORMAL
bool "normal" bool "normal"
depends on BMI160
config BMI160_GYRO_PMU_FAST_STARTUP config BMI160_GYRO_PMU_FAST_STARTUP
bool "fast start-up" bool "fast start-up"
depends on BMI160
endchoice endchoice
choice choice
prompt "Gyroscope range setting." prompt "Gyroscope range setting."
depends on BMI160 && (BMI160_GYRO_PMU_RUNTIME || BMI160_GYRO_PMU_NORMAL || BMI160_GYRO_PMU_FAST_STARTUP) depends on (BMI160_GYRO_PMU_RUNTIME || BMI160_GYRO_PMU_NORMAL || BMI160_GYRO_PMU_FAST_STARTUP)
default BMI160_GYRO_RANGE_RUNTIME default BMI160_GYRO_RANGE_RUNTIME
config BMI160_GYRO_RANGE_RUNTIME config BMI160_GYRO_RANGE_RUNTIME
@ -231,7 +217,7 @@ endchoice
choice choice
prompt "Gyroscope sampling frequency." prompt "Gyroscope sampling frequency."
depends on BMI160 && (BMI160_GYRO_PMU_RUNTIME || BMI160_GYRO_PMU_NORMAL || BMI160_GYRO_PMU_FAST_STARTUP) depends on (BMI160_GYRO_PMU_RUNTIME || BMI160_GYRO_PMU_NORMAL || BMI160_GYRO_PMU_FAST_STARTUP)
default BMI160_GYRO_ODR_RUNTIME default BMI160_GYRO_ODR_RUNTIME
config BMI160_GYRO_ODR_RUNTIME config BMI160_GYRO_ODR_RUNTIME
@ -261,3 +247,5 @@ config BMI160_GYRO_ODR_1600
config BMI160_GYRO_ODR_3200 config BMI160_GYRO_ODR_3200
bool "3200 Hz" bool "3200 Hz"
endchoice endchoice
endif # BMI160

View file

@ -12,18 +12,18 @@ menuconfig CCS811
help help
Enable driver for CCS811 Gas sensors. Enable driver for CCS811 Gas sensors.
if CCS811
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config CCS811_NAME config CCS811_NAME
string "Driver name" string "Driver name"
default "CCS811" default "CCS811"
depends on CCS811
help help
Device name with which the CCS811 sensor is identified. Device name with which the CCS811 sensor is identified.
config CCS811_I2C_ADDR config CCS811_I2C_ADDR
hex "I2C address for CCS811 Sensor" hex "I2C address for CCS811 Sensor"
depends on CCS811
range 0x5a 0x5b range 0x5a 0x5b
default "0x5b" default "0x5b"
help help
@ -33,7 +33,6 @@ config CCS811_I2C_ADDR
config CCS811_I2C_MASTER_DEV_NAME config CCS811_I2C_MASTER_DEV_NAME
string "I2C master where CCS811 is connected" string "I2C master where CCS811 is connected"
depends on CCS811
default "I2C_1" default "I2C_1"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
@ -44,35 +43,34 @@ endif
config CCS811_GPIO_DEV_NAME config CCS811_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIOC" default "GPIOC"
depends on CCS811
help help
The device name of the GPIO device to which the CCS811 WAKE The device name of the GPIO device to which the CCS811 WAKE
pin is connected. pin is connected.
config CCS811_GPIO_WAKEUP config CCS811_GPIO_WAKEUP
bool "Enable GPIO Wakeup for CCS811" bool "Enable GPIO Wakeup for CCS811"
depends on CCS811
help help
Enable GPIO Wakeup support for CCS811 Enable GPIO Wakeup support for CCS811
config CCS811_GPIO_WAKEUP_PIN_NUM config CCS811_GPIO_WAKEUP_PIN_NUM
int "GPIO Wakeup pin number" int "GPIO Wakeup pin number"
default 0 default 0
depends on CCS811 && CCS811_GPIO_WAKEUP depends on CCS811_GPIO_WAKEUP
help help
The number of the GPIO pin on which the WAKE pin of CCS811 The number of the GPIO pin on which the WAKE pin of CCS811
is connected is connected
config CCS811_GPIO_RESET config CCS811_GPIO_RESET
bool "Enable GPIO Reset for CCS811" bool "Enable GPIO Reset for CCS811"
depends on CCS811
help help
Enable GPIO Reset support for CCS811 Enable GPIO Reset support for CCS811
config CCS811_GPIO_RESET_PIN_NUM config CCS811_GPIO_RESET_PIN_NUM
int "GPIO Reset pin number" int "GPIO Reset pin number"
default 0 default 0
depends on CCS811 && CCS811_GPIO_RESET depends on CCS811_GPIO_RESET
help help
The number of the GPIO pin on which the RESET pin of CCS811 The number of the GPIO pin on which the RESET pin of CCS811
is connected is connected
endif # CCS811

View file

@ -12,9 +12,10 @@ menuconfig DHT
help help
Enable driver for the DHT temperature and humidity sensor family. Enable driver for the DHT temperature and humidity sensor family.
if DHT
choice choice
prompt "Chip type" prompt "Chip type"
depends on DHT
default DHT_CHIP_DHT11 default DHT_CHIP_DHT11
help help
Choose desired chip type from the DHT family. Choose desired chip type from the DHT family.
@ -35,14 +36,12 @@ config DHT_NAME
string "Driver name" string "Driver name"
default "DHT11" if DHT_CHIP_DHT11 default "DHT11" if DHT_CHIP_DHT11
default "DHT22" if DHT_CHIP_DHT22 default "DHT22" if DHT_CHIP_DHT22
depends on DHT
help help
Device name with which the sensor is identified. Device name with which the sensor is identified.
config DHT_GPIO_DEV_NAME config DHT_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on DHT
help help
The device name of the GPIO device to which the chip's data pin The device name of the GPIO device to which the chip's data pin
is connected. is connected.
@ -50,6 +49,7 @@ config DHT_GPIO_DEV_NAME
config DHT_GPIO_PIN_NUM config DHT_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on DHT
help help
The number of the GPIO on which the chip's data pin is connected. The number of the GPIO on which the chip's data pin is connected.
endif # DHT

View file

@ -11,21 +11,20 @@ menuconfig FXOS8700
help help
Enable driver for the FXOS8700 accelerometer/magnetometer Enable driver for the FXOS8700 accelerometer/magnetometer
if FXOS8700
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config FXOS8700_NAME config FXOS8700_NAME
string "Device name" string "Device name"
depends on FXOS8700
default "FXOS8700" default "FXOS8700"
config FXOS8700_I2C_NAME config FXOS8700_I2C_NAME
string "I2C device name" string "I2C device name"
depends on FXOS8700
default I2C_0_NAME default I2C_0_NAME
config FXOS8700_I2C_ADDRESS config FXOS8700_I2C_ADDRESS
hex "I2C address" hex "I2C address"
depends on FXOS8700
range 0x1c 0x1f range 0x1c 0x1f
default 0x1d default 0x1d
help help
@ -36,7 +35,6 @@ endif # !HAS_DTS_I2C_DEVICE
config FXOS8700_WHOAMI config FXOS8700_WHOAMI
hex "WHOAMI value" hex "WHOAMI value"
depends on FXOS8700
range 0x00 0xff range 0x00 0xff
default 0xc7 default 0xc7
help help
@ -46,7 +44,6 @@ config FXOS8700_WHOAMI
choice choice
prompt "Mode" prompt "Mode"
depends on FXOS8700
default FXOS8700_MODE_ACCEL default FXOS8700_MODE_ACCEL
config FXOS8700_MODE_ACCEL config FXOS8700_MODE_ACCEL
@ -62,7 +59,7 @@ endchoice
config FXOS8700_TEMP config FXOS8700_TEMP
bool "Enable temperature" bool "Enable temperature"
depends on FXOS8700 && (FXOS8700_MODE_MAGN || FXOS8700_MODE_HYBRID) depends on (FXOS8700_MODE_MAGN || FXOS8700_MODE_HYBRID)
help help
Enable the temperature sensor. Note that the temperature sensor is Enable the temperature sensor. Note that the temperature sensor is
uncalibrated and its output for a given temperature may vary from one uncalibrated and its output for a given temperature may vary from one
@ -70,7 +67,6 @@ config FXOS8700_TEMP
choice choice
prompt "Range" prompt "Range"
depends on FXOS8700
default FXOS8700_RANGE_8G default FXOS8700_RANGE_8G
config FXOS8700_RANGE_8G config FXOS8700_RANGE_8G
@ -86,7 +82,6 @@ endchoice
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on FXOS8700
default FXOS8700_TRIGGER_NONE default FXOS8700_TRIGGER_NONE
config FXOS8700_TRIGGER_NONE config FXOS8700_TRIGGER_NONE
@ -104,7 +99,6 @@ endchoice
config FXOS8700_TRIGGER config FXOS8700_TRIGGER
bool bool
depends on FXOS8700
if !HAS_DTS_GPIO_DEVICE if !HAS_DTS_GPIO_DEVICE
@ -227,3 +221,5 @@ config FXOS8700_PULSE_WIND
endif # FXOS8700_PULSE endif # FXOS8700_PULSE
endif # FXOS8700_TRIGGER endif # FXOS8700_TRIGGER
endif # FXOS8700

View file

@ -12,18 +12,18 @@ menuconfig HDC1008
help help
Enable driver for HDC1008 temperature and humidity sensors. Enable driver for HDC1008 temperature and humidity sensors.
if HDC1008
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config HDC1008_NAME config HDC1008_NAME
string "Driver name" string "Driver name"
default "HDC1008" default "HDC1008"
depends on HDC1008
help help
Device name with which the HDC1008 sensor is identified. Device name with which the HDC1008 sensor is identified.
config HDC1008_I2C_ADDR config HDC1008_I2C_ADDR
hex "I2C Address for HDC1008" hex "I2C Address for HDC1008"
depends on HDC1008
default "0x40" default "0x40"
help help
0x40: A0 connected GND and A1 connected to GND. 0x40: A0 connected GND and A1 connected to GND.
@ -33,7 +33,6 @@ config HDC1008_I2C_ADDR
config HDC1008_I2C_MASTER_DEV_NAME config HDC1008_I2C_MASTER_DEV_NAME
string "I2C master where HDC1008 is connected" string "I2C master where HDC1008 is connected"
depends on HDC1008
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
@ -46,7 +45,6 @@ if !HAS_DTS_GPIO_DEVICE
config HDC1008_GPIO_DEV_NAME config HDC1008_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on HDC1008
help help
The device name of the GPIO device to which the HDC1008 data-ready The device name of the GPIO device to which the HDC1008 data-ready
pin is connected. pin is connected.
@ -54,9 +52,10 @@ config HDC1008_GPIO_DEV_NAME
config HDC1008_GPIO_PIN_NUM config HDC1008_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on HDC1008
help help
The number of the GPIO on which the data-ready signal from the HDC1008 The number of the GPIO on which the data-ready signal from the HDC1008
chip will be received. chip will be received.
endif # !HAS_DTS_GPIO_DEVICE endif # !HAS_DTS_GPIO_DEVICE
endif # HDC1008

View file

@ -10,16 +10,16 @@ menuconfig HMC5883L
help help
Enable driver for HMC5883L I2C-based magnetometer. Enable driver for HMC5883L I2C-based magnetometer.
if HMC5883L
config HMC5883L_NAME config HMC5883L_NAME
string "Driver name" string "Driver name"
default "HMC5883L" default "HMC5883L"
depends on HMC5883L
help help
Device name with which the HMC5883L sensor is identified. Device name with which the HMC5883L sensor is identified.
config HMC5883L_I2C_MASTER_DEV_NAME config HMC5883L_I2C_MASTER_DEV_NAME
string "I2C master where HMC5883L is connected" string "I2C master where HMC5883L is connected"
depends on HMC5883L
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which HMC5883L Specify the device name of the I2C master device to which HMC5883L
@ -27,7 +27,6 @@ config HMC5883L_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on HMC5883L
default HMC5883L_TRIGGER_GLOBAL_THREAD default HMC5883L_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -49,12 +48,11 @@ endchoice
config HMC5883L_TRIGGER config HMC5883L_TRIGGER
bool bool
depends on HMC5883L
config HMC5883L_GPIO_DEV_NAME config HMC5883L_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on HMC5883L && HMC5883L_TRIGGER depends on HMC5883L_TRIGGER
help help
The device name of the GPIO device to which the HMC5883L interrupt The device name of the GPIO device to which the HMC5883L interrupt
pin is connected. pin is connected.
@ -62,28 +60,27 @@ config HMC5883L_GPIO_DEV_NAME
config HMC5883L_GPIO_PIN_NUM config HMC5883L_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on HMC5883L && HMC5883L_TRIGGER depends on HMC5883L_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the The number of the GPIO on which the interrupt signal from the
HMC5883L chip will be received. HMC5883L chip will be received.
config HMC5883L_THREAD_PRIORITY config HMC5883L_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on HMC5883L && HMC5883L_TRIGGER_OWN_THREAD depends on HMC5883L_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config HMC5883L_THREAD_STACK_SIZE config HMC5883L_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on HMC5883L && HMC5883L_TRIGGER_OWN_THREAD depends on HMC5883L_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
config HMC5883L_ODR config HMC5883L_ODR
string "Output data rate" string "Output data rate"
depends on HMC5883L
default "15" default "15"
help help
Magnetometer output data rate expressed in samples per second. Magnetometer output data rate expressed in samples per second.
@ -92,9 +89,10 @@ config HMC5883L_ODR
config HMC5883L_FS config HMC5883L_FS
string "Full-scale range" string "Full-scale range"
depends on HMC5883L
default "1.3" default "1.3"
help help
Magnetometer full-scale range. Magnetometer full-scale range.
An X value for the config represents a range of +/- X gauss. Valid An X value for the config represents a range of +/- X gauss. Valid
values are 0.88, 1.3, 1.9, 2.5, 4, 4.7, 5.6 and 8.1. values are 0.88, 1.3, 1.9, 2.5, 4, 4.7, 5.6 and 8.1.
endif # HMC5883L

View file

@ -11,42 +11,42 @@ menuconfig HP206C
help help
Enable HopeRF HP206C barometer and altimeter support. Enable HopeRF HP206C barometer and altimeter support.
if HP206C
config HP206C_DRV_NAME config HP206C_DRV_NAME
string "Driver's name" string "Driver's name"
depends on HP206C
default "hp206c" default "hp206c"
help help
Name for the HP206C driver which will be used for binding. Name for the HP206C driver which will be used for binding.
config HP206C_I2C_PORT_NAME config HP206C_I2C_PORT_NAME
string "I2C master controller port name" string "I2C master controller port name"
depends on HP206C
default "I2C_0" default "I2C_0"
help help
Master I2C port name through which HP206C chip is accessed. Master I2C port name through which HP206C chip is accessed.
config HP206C_OSR_RUNTIME config HP206C_OSR_RUNTIME
bool "Oversampling rate set at runtime" bool "Oversampling rate set at runtime"
depends on HP206C
default y default y
config HP206C_OSR config HP206C_OSR
int "Oversampling rate" int "Oversampling rate"
depends on HP206C && !HP206C_OSR_RUNTIME depends on !HP206C_OSR_RUNTIME
default 4096 default 4096
help help
Allowed values: 4096, 2048, 1024, 512, 256, 128 Allowed values: 4096, 2048, 1024, 512, 256, 128
config HP206C_ALT_OFFSET_RUNTIME config HP206C_ALT_OFFSET_RUNTIME
bool "Altitude offset set at runtime" bool "Altitude offset set at runtime"
depends on HP206C
default y default y
config HP206C_ALT_OFFSET config HP206C_ALT_OFFSET
int "Altitude offset (in cm)" int "Altitude offset (in cm)"
depends on HP206C && !HP206C_ALT_OFFSET_RUNTIME depends on !HP206C_ALT_OFFSET_RUNTIME
default 0 default 0
help help
Value, in cm, that will be used to compensate altitude calculation. Value, in cm, that will be used to compensate altitude calculation.
For more info on how to choose this value, consult section 6.1.1 in For more info on how to choose this value, consult section 6.1.1 in
the datasheet. the datasheet.
endif # HP206C

View file

@ -10,18 +10,18 @@ menuconfig HTS221
help help
Enable driver for HTS221 I2C-based temperature and humidity sensor. Enable driver for HTS221 I2C-based temperature and humidity sensor.
if HTS221
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config HTS221_NAME config HTS221_NAME
string "Driver name" string "Driver name"
default "HTS221" default "HTS221"
depends on HTS221
help help
Device name with which the HTS221 sensor is identified. Device name with which the HTS221 sensor is identified.
config HTS221_I2C_MASTER_DEV_NAME config HTS221_I2C_MASTER_DEV_NAME
string "I2C master where HTS221 is connected" string "I2C master where HTS221 is connected"
depends on HTS221
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which HTS221 is Specify the device name of the I2C master device to which HTS221 is
@ -31,7 +31,6 @@ endif
choice HTS221_TRIGGER_MODE choice HTS221_TRIGGER_MODE
prompt "Trigger mode" prompt "Trigger mode"
depends on HTS221
default HTS221_TRIGGER_GLOBAL_THREAD default HTS221_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -53,12 +52,11 @@ endchoice # HTS221_TRIGGER_MODE
config HTS221_TRIGGER config HTS221_TRIGGER
bool bool
depends on HTS221
config HTS221_GPIO_DEV_NAME config HTS221_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on HTS221 && HTS221_TRIGGER depends on HTS221_TRIGGER
help help
The device name of the GPIO device to which the HTS221 interrupt pin The device name of the GPIO device to which the HTS221 interrupt pin
is connected. is connected.
@ -66,29 +64,30 @@ config HTS221_GPIO_DEV_NAME
config HTS221_GPIO_PIN_NUM config HTS221_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on HTS221 && HTS221_TRIGGER depends on HTS221_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the HTS221 The number of the GPIO on which the interrupt signal from the HTS221
chip will be received. chip will be received.
config HTS221_THREAD_PRIORITY config HTS221_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on HTS221 && HTS221_TRIGGER_OWN_THREAD depends on HTS221_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config HTS221_THREAD_STACK_SIZE config HTS221_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on HTS221 && HTS221_TRIGGER_OWN_THREAD depends on HTS221_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
config HTS221_ODR config HTS221_ODR
string "Output data rate" string "Output data rate"
depends on HTS221
default "1" default "1"
help help
Sensor output data rate expressed in samples per second. Sensor output data rate expressed in samples per second.
Data rates supported by the chip are 1, 7 and 12.5. Data rates supported by the chip are 1, 7 and 12.5.
endif # HTS221

View file

@ -12,16 +12,16 @@ menuconfig ISL29035
help help
Enable driver for the ISL29035 light sensor. Enable driver for the ISL29035 light sensor.
if ISL29035
config ISL29035_NAME config ISL29035_NAME
string "Driver name" string "Driver name"
default "ISL29035" default "ISL29035"
depends on ISL29035
help help
Device name with which the ISL29035 sensor is identified. Device name with which the ISL29035 sensor is identified.
config ISL29035_I2C_MASTER_DEV_NAME config ISL29035_I2C_MASTER_DEV_NAME
string "I2C Master" string "I2C Master"
depends on ISL29035
default "I2C_0" default "I2C_0"
help help
The device name of the I2C master device to which the ISL29035 The device name of the I2C master device to which the ISL29035
@ -29,7 +29,6 @@ config ISL29035_I2C_MASTER_DEV_NAME
config ISL29035_THREAD_PRIORITY config ISL29035_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on ISL29035
default 10 default 10
help help
Priority of thread used to handle the timer and threshold triggers. Priority of thread used to handle the timer and threshold triggers.
@ -37,7 +36,6 @@ config ISL29035_THREAD_PRIORITY
choice choice
prompt "Full scale lux range" prompt "Full scale lux range"
default ISL29035_LUX_RANGE_1K default ISL29035_LUX_RANGE_1K
depends on ISL29035
help help
Maximum allowable lux value. Lower range values offer better Maximum allowable lux value. Lower range values offer better
resolution. resolution.
@ -59,7 +57,6 @@ endchoice
choice choice
prompt "Integration time" prompt "Integration time"
default ISL29035_INTEGRATION_TIME_105K default ISL29035_INTEGRATION_TIME_105K
depends on ISL29035
help help
The sampling period of the internal ADC of the light sensor. The sampling period of the internal ADC of the light sensor.
Lower integration time values mean lower ADC resolution. Lower integration time values mean lower ADC resolution.
@ -80,7 +77,6 @@ endchoice
choice choice
prompt "Active sensing mode" prompt "Active sensing mode"
depends on ISL29035
default ISL29035_MODE_ALS default ISL29035_MODE_ALS
help help
Sensing mode in which the ISL29035 will function. The chip can be Sensing mode in which the ISL29035 will function. The chip can be
@ -100,7 +96,7 @@ endchoice
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on ISL29035 && ISL29035_MODE_ALS && GPIO depends on ISL29035_MODE_ALS && GPIO
default ISL29035_TRIGGER_NONE default ISL29035_TRIGGER_NONE
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -123,12 +119,11 @@ endchoice
config ISL29035_TRIGGER config ISL29035_TRIGGER
bool bool
depends on ISL29035
config ISL29035_GPIO_DEV_NAME config ISL29035_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on ISL29035 && ISL29035_TRIGGER depends on ISL29035_TRIGGER
help help
The device name of the GPIO device to which the ISL29035 interrupt The device name of the GPIO device to which the ISL29035 interrupt
pin is connected. pin is connected.
@ -136,28 +131,28 @@ config ISL29035_GPIO_DEV_NAME
config ISL29035_GPIO_PIN_NUM config ISL29035_GPIO_PIN_NUM
int "GPIO pin number" int "GPIO pin number"
default 0 default 0
depends on ISL29035 && ISL29035_TRIGGER depends on ISL29035_TRIGGER
help help
The number of the GPIO pin to which the ISL29035 interrupt pin is The number of the GPIO pin to which the ISL29035 interrupt pin is
connected. connected.
config ISL29035_THREAD_PRIORITY config ISL29035_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on ISL29035 && ISL29035_TRIGGER_OWN_THREAD depends on ISL29035_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config ISL29035_THREAD_STACK_SIZE config ISL29035_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on ISL29035 && ISL29035_TRIGGER_OWN_THREAD depends on ISL29035_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
choice choice
prompt "Interrupt persist cycles" prompt "Interrupt persist cycles"
depends on ISL29035 && ISL29035_TRIGGER depends on ISL29035_TRIGGER
default ISL29035_INT_PERSIST_1 default ISL29035_INT_PERSIST_1
help help
Number of consecutive integration cycles for which the data samples Number of consecutive integration cycles for which the data samples
@ -177,3 +172,5 @@ config ISL29035_INT_PERSIST_16
bool "16" bool "16"
endchoice endchoice
endif # ISL29035

View file

@ -12,16 +12,16 @@ menuconfig LIS2DH
help help
Enable driver for LIS2DH SPI/I2C-based triaxial accelerometer sensor. Enable driver for LIS2DH SPI/I2C-based triaxial accelerometer sensor.
if LIS2DH
config LIS2DH_NAME config LIS2DH_NAME
string "Driver name" string "Driver name"
default "LIS2DH" default "LIS2DH"
depends on LIS2DH
help help
Device name with which the LIS2DH sensor is identified. Device name with which the LIS2DH sensor is identified.
choice choice
prompt "Sensor Bus Type" prompt "Sensor Bus Type"
depends on LIS2DH
default LIS2DH_BUS_SPI default LIS2DH_BUS_SPI
help help
Specify bus type, SPI versus I2C, to which the sensor is attached. Specify bus type, SPI versus I2C, to which the sensor is attached.
@ -42,7 +42,7 @@ endchoice
config LIS2DH_SPI_MASTER_DEV_NAME config LIS2DH_SPI_MASTER_DEV_NAME
string "SPI master device name" string "SPI master device name"
depends on LIS2DH && LIS2DH_BUS_SPI depends on LIS2DH_BUS_SPI
default "SPI_0" default "SPI_0"
help help
Specify the device name of the SPI master device to which LIS2DH is Specify the device name of the SPI master device to which LIS2DH is
@ -50,7 +50,7 @@ config LIS2DH_SPI_MASTER_DEV_NAME
config LIS2DH_SPI_SS_1 config LIS2DH_SPI_SS_1
int "LIS2DH SPI slave 1 select number" int "LIS2DH SPI slave 1 select number"
depends on LIS2DH && LIS2DH_BUS_SPI depends on LIS2DH_BUS_SPI
range 1 4 range 1 4
default 1 default 1
help help
@ -58,7 +58,7 @@ config LIS2DH_SPI_SS_1
config LIS2DH_SPI_FREQUENCY config LIS2DH_SPI_FREQUENCY
int "SPI clock frequency" int "SPI clock frequency"
depends on LIS2DH && LIS2DH_BUS_SPI depends on LIS2DH_BUS_SPI
range 125000 10000000 range 125000 10000000
default 4000000 default 4000000
help help
@ -67,7 +67,7 @@ config LIS2DH_SPI_FREQUENCY
config LIS2DH_I2C_ADDR config LIS2DH_I2C_ADDR
hex "LIS2DH I2C address" hex "LIS2DH I2C address"
depends on LIS2DH && LIS2DH_BUS_I2C depends on LIS2DH_BUS_I2C
default 0x18 default 0x18
help help
I2C address of the LIS2DH sensor. I2C address of the LIS2DH sensor.
@ -77,7 +77,7 @@ config LIS2DH_I2C_ADDR
config LIS2DH_I2C_MASTER_DEV_NAME config LIS2DH_I2C_MASTER_DEV_NAME
string "I2C master where LIS2DH is connected" string "I2C master where LIS2DH is connected"
depends on LIS2DH && LIS2DH_BUS_I2C depends on LIS2DH_BUS_I2C
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LIS2DH is Specify the device name of the I2C master device to which LIS2DH is
@ -85,7 +85,6 @@ config LIS2DH_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on LIS2DH
default LIS2DH_TRIGGER_GLOBAL_THREAD default LIS2DH_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -107,12 +106,11 @@ endchoice
config LIS2DH_TRIGGER config LIS2DH_TRIGGER
bool bool
depends on LIS2DH
config LIS2DH_GPIO_DEV_NAME config LIS2DH_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on LIS2DH && LIS2DH_TRIGGER depends on LIS2DH_TRIGGER
help help
The device name of the GPIO device to which the LIS2DH interrupt pins The device name of the GPIO device to which the LIS2DH interrupt pins
are connected. are connected.
@ -121,7 +119,7 @@ config LIS2DH_INT1_GPIO_PIN
int "Interrupt 1 GPIO pin number" int "Interrupt 1 GPIO pin number"
range 0 254 range 0 254
default 25 default 25
depends on LIS2DH && LIS2DH_TRIGGER depends on LIS2DH_TRIGGER
help help
The number of the GPIO on which the interrupt 1 signal from the LIS2DH The number of the GPIO on which the interrupt 1 signal from the LIS2DH
chip will be received. chip will be received.
@ -130,28 +128,27 @@ config LIS2DH_INT2_GPIO_PIN
int "Interrupt 2 GPIO pin number" int "Interrupt 2 GPIO pin number"
range 0 254 range 0 254
default 26 default 26
depends on LIS2DH && LIS2DH_TRIGGER depends on LIS2DH_TRIGGER
help help
The number of the GPIO on which the interrupt 2 signal from the LIS2DH The number of the GPIO on which the interrupt 2 signal from the LIS2DH
chip will be received. chip will be received.
config LIS2DH_THREAD_PRIORITY config LIS2DH_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on LIS2DH && LIS2DH_TRIGGER_OWN_THREAD depends on LIS2DH_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config LIS2DH_THREAD_STACK_SIZE config LIS2DH_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on LIS2DH && LIS2DH_TRIGGER_OWN_THREAD depends on LIS2DH_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
choice choice
prompt "Acceleration measurement range" prompt "Acceleration measurement range"
depends on LIS2DH
default LIS2DH_ACCEL_RANGE_RUNTIME default LIS2DH_ACCEL_RANGE_RUNTIME
help help
Initial measurement full scale range for acceleration values. Initial measurement full scale range for acceleration values.
@ -175,7 +172,6 @@ endchoice
choice choice
prompt "Power mode" prompt "Power mode"
depends on LIS2DH
default LIS2DH_POWER_MODE_NORMAL default LIS2DH_POWER_MODE_NORMAL
help help
Choose between normal or low power operation mode for chip at init. Choose between normal or low power operation mode for chip at init.
@ -190,7 +186,6 @@ endchoice
choice choice
prompt "Output data rate frequency" prompt "Output data rate frequency"
depends on LIS2DH
default LIS2DH_ODR_RUNTIME default LIS2DH_ODR_RUNTIME
help help
Initial data rate frequency of acceleration data at initialization. Initial data rate frequency of acceleration data at initialization.
@ -236,3 +231,5 @@ config LIS2DH_ODR_9_LOW
depends on LIS2DH_POWER_MODE_LOW depends on LIS2DH_POWER_MODE_LOW
endchoice endchoice
endif # LIS2DH

View file

@ -12,16 +12,16 @@ menuconfig LIS3DH
help help
Enable driver for LIS3DH I2C-based triaxial accelerometer sensor. Enable driver for LIS3DH I2C-based triaxial accelerometer sensor.
if LIS3DH
config LIS3DH_NAME config LIS3DH_NAME
string "Driver name" string "Driver name"
default "LIS3DH" default "LIS3DH"
depends on LIS3DH
help help
Device name with which the LIS3DH sensor is identified. Device name with which the LIS3DH sensor is identified.
config LIS3DH_I2C_ADDR config LIS3DH_I2C_ADDR
hex "LIS3DH I2C address" hex "LIS3DH I2C address"
depends on LIS3DH
default 0x18 default 0x18
help help
I2C address of the LIS3DH sensor. I2C address of the LIS3DH sensor.
@ -31,7 +31,6 @@ config LIS3DH_I2C_ADDR
config LIS3DH_I2C_MASTER_DEV_NAME config LIS3DH_I2C_MASTER_DEV_NAME
string "I2C master where LIS3DH is connected" string "I2C master where LIS3DH is connected"
depends on LIS3DH
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LIS3DH is Specify the device name of the I2C master device to which LIS3DH is
@ -39,7 +38,6 @@ config LIS3DH_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on LIS3DH
default LIS3DH_TRIGGER_GLOBAL_THREAD default LIS3DH_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -61,12 +59,11 @@ endchoice
config LIS3DH_TRIGGER config LIS3DH_TRIGGER
bool bool
depends on LIS3DH
config LIS3DH_GPIO_DEV_NAME config LIS3DH_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on LIS3DH && LIS3DH_TRIGGER depends on LIS3DH_TRIGGER
help help
The device name of the GPIO device to which the LIS3DH interrupt pins The device name of the GPIO device to which the LIS3DH interrupt pins
are connected. are connected.
@ -74,28 +71,27 @@ config LIS3DH_GPIO_DEV_NAME
config LIS3DH_GPIO_PIN_NUM config LIS3DH_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on LIS3DH && LIS3DH_TRIGGER depends on LIS3DH_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the LIS3DH The number of the GPIO on which the interrupt signal from the LIS3DH
chip will be received. chip will be received.
config LIS3DH_THREAD_PRIORITY config LIS3DH_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on LIS3DH && LIS3DH_TRIGGER_OWN_THREAD depends on LIS3DH_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config LIS3DH_THREAD_STACK_SIZE config LIS3DH_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on LIS3DH && LIS3DH_TRIGGER_OWN_THREAD depends on LIS3DH_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
choice choice
prompt "Acceleration measurement range" prompt "Acceleration measurement range"
depends on LIS3DH
default LIS3DH_ACCEL_RANGE_2G default LIS3DH_ACCEL_RANGE_2G
help help
Measurement full scale range for acceleration values. Measurement full scale range for acceleration values.
@ -116,7 +112,6 @@ endchoice
choice choice
prompt "Power mode" prompt "Power mode"
depends on LIS3DH
default LIS3DH_POWER_MODE_NORMAL default LIS3DH_POWER_MODE_NORMAL
help help
Choose between normal or low power operation mode for chip. Choose between normal or low power operation mode for chip.
@ -131,7 +126,6 @@ endchoice
choice choice
prompt "Data rate frequency" prompt "Data rate frequency"
depends on LIS3DH
default LIS3DH_ODR_1 default LIS3DH_ODR_1
help help
Data rate frequency of acceleration data. Data rate frequency of acceleration data.
@ -170,3 +164,5 @@ config LIS3DH_ODR_9_LOW
depends on LIS3DH_POWER_MODE_LOW depends on LIS3DH_POWER_MODE_LOW
endchoice endchoice
endif # LIS3DH

View file

@ -10,18 +10,18 @@ menuconfig LIS3MDL
help help
Enable driver for LIS3MDL I2C-based magnetometer. Enable driver for LIS3MDL I2C-based magnetometer.
if LIS3MDL
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config LIS3MDL_NAME config LIS3MDL_NAME
string "Driver name" string "Driver name"
default "LIS3MDL" default "LIS3MDL"
depends on LIS3MDL
help help
Device name with which the LIS3MDL sensor is identified. Device name with which the LIS3MDL sensor is identified.
config LIS3MDL_I2C_ADDR config LIS3MDL_I2C_ADDR
hex "I2C address" hex "I2C address"
depends on LIS3MDL
default 0x1C default 0x1C
help help
I2C address of the LIS3MDL sensor. I2C address of the LIS3MDL sensor.
@ -30,7 +30,6 @@ config LIS3MDL_I2C_ADDR
config LIS3MDL_I2C_MASTER_DEV_NAME config LIS3MDL_I2C_MASTER_DEV_NAME
string "I2C master where LIS3MDL is connected" string "I2C master where LIS3MDL is connected"
depends on LIS3MDL
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LIS3MDL is Specify the device name of the I2C master device to which LIS3MDL is
@ -40,7 +39,6 @@ endif
choice LIS3MDL_TRIGGER_MODE choice LIS3MDL_TRIGGER_MODE
prompt "Trigger mode" prompt "Trigger mode"
depends on LIS3MDL
default LIS3MDL_TRIGGER_GLOBAL_THREAD default LIS3MDL_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -62,12 +60,11 @@ endchoice # LIS3MDL_TRIGGER_MODE
config LIS3MDL_TRIGGER config LIS3MDL_TRIGGER
bool bool
depends on LIS3MDL
config LIS3MDL_GPIO_DEV_NAME config LIS3MDL_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on LIS3MDL && LIS3MDL_TRIGGER depends on LIS3MDL_TRIGGER
help help
The device name of the GPIO device to which the LIS3MDL interrupt pins The device name of the GPIO device to which the LIS3MDL interrupt pins
are connected. are connected.
@ -75,28 +72,27 @@ config LIS3MDL_GPIO_DEV_NAME
config LIS3MDL_GPIO_PIN_NUM config LIS3MDL_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on LIS3MDL && LIS3MDL_TRIGGER depends on LIS3MDL_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the LIS3MDL The number of the GPIO on which the interrupt signal from the LIS3MDL
chip will be received. chip will be received.
config LIS3MDL_THREAD_PRIORITY config LIS3MDL_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on LIS3MDL && LIS3MDL_TRIGGER_OWN_THREAD depends on LIS3MDL_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config LIS3MDL_THREAD_STACK_SIZE config LIS3MDL_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on LIS3MDL && LIS3MDL_TRIGGER_OWN_THREAD depends on LIS3MDL_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
config LIS3MDL_ODR config LIS3MDL_ODR
string "Output data rate" string "Output data rate"
depends on LIS3MDL
default "0.625" default "0.625"
help help
Magnetometer output data rate expressed in samples per second. Magnetometer output data rate expressed in samples per second.
@ -105,9 +101,10 @@ config LIS3MDL_ODR
config LIS3MDL_FS config LIS3MDL_FS
int "Full-scale range" int "Full-scale range"
depends on LIS3MDL
default 4 default 4
help help
Magnetometer full-scale range. Magnetometer full-scale range.
An X value for the config represents a range of +/- X gauss. Valid An X value for the config represents a range of +/- X gauss. Valid
values are 4, 8, 12 and 16. values are 4, 8, 12 and 16.
endif # LIS3MDL

View file

@ -11,18 +11,18 @@ menuconfig LPS22HB
Enable driver for LPS22HB I2C-based pressure and temperature Enable driver for LPS22HB I2C-based pressure and temperature
sensor. sensor.
if LPS22HB
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config LPS22HB_DEV_NAME config LPS22HB_DEV_NAME
string "Device name" string "Device name"
default "LPS22HB" default "LPS22HB"
depends on LPS22HB
help help
Device name used for LPS22HB sensor identification. Device name used for LPS22HB sensor identification.
config LPS22HB_I2C_ADDR config LPS22HB_I2C_ADDR
hex "I2C address" hex "I2C address"
depends on LPS22HB
default 0x5D default 0x5D
range 0x5C 0x5D range 0x5C 0x5D
help help
@ -32,7 +32,6 @@ config LPS22HB_I2C_ADDR
config LPS22HB_I2C_MASTER_DEV_NAME config LPS22HB_I2C_MASTER_DEV_NAME
string "I2C master where LPS22HB is connected" string "I2C master where LPS22HB is connected"
depends on LPS22HB
default I2C_0_NAME default I2C_0_NAME
help help
Specify the device name of the I2C master device to which Specify the device name of the I2C master device to which
@ -41,14 +40,14 @@ config LPS22HB_I2C_MASTER_DEV_NAME
endif endif
menu "Attributes" menu "Attributes"
depends on LPS22HB
config LPS22HB_SAMPLING_RATE config LPS22HB_SAMPLING_RATE
int "Output data rate" int "Output data rate"
depends on LPS22HB
default 25 default 25
help help
Sensor output data rate expressed in samples per second. Sensor output data rate expressed in samples per second.
Data rates supported by the chip are 1, 10, 25, 50, 75. Data rates supported by the chip are 1, 10, 25, 50, 75.
endmenu endmenu
endif # LPS22HB

View file

@ -11,18 +11,18 @@ menuconfig LPS25HB
Enable driver for LPS25HB I2C-based pressure and temperature Enable driver for LPS25HB I2C-based pressure and temperature
sensor. sensor.
if LPS25HB
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config LPS25HB_DEV_NAME config LPS25HB_DEV_NAME
string "Device name" string "Device name"
default "lps25hb" default "lps25hb"
depends on LPS25HB
help help
Device name with which the LPS25HB sensor is identified. Device name with which the LPS25HB sensor is identified.
config LPS25HB_I2C_ADDR config LPS25HB_I2C_ADDR
hex "I2C address" hex "I2C address"
depends on LPS25HB
default "0x5C" default "0x5C"
help help
I2C address of the LPS25HB sensor. I2C address of the LPS25HB sensor.
@ -31,7 +31,6 @@ config LPS25HB_I2C_ADDR
config LPS25HB_I2C_MASTER_DEV_NAME config LPS25HB_I2C_MASTER_DEV_NAME
string "I2C master where LPS25HB is connected" string "I2C master where LPS25HB is connected"
depends on LPS25HB
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which Specify the device name of the I2C master device to which
@ -40,14 +39,14 @@ config LPS25HB_I2C_MASTER_DEV_NAME
endif endif
menu "Attributes" menu "Attributes"
depends on LPS25HB
config LPS25HB_SAMPLING_RATE config LPS25HB_SAMPLING_RATE
int "Output data rate" int "Output data rate"
depends on LPS25HB
default 25 default 25
help help
Sensor output data rate expressed in samples per second. Sensor output data rate expressed in samples per second.
Data rates supported by the chip are 1, 7, 13, 25. Data rates supported by the chip are 1, 7, 13, 25.
endmenu endmenu
endif # LPS25HB

View file

@ -14,16 +14,16 @@ menuconfig LSM6DS0
Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope Enable driver for LSM6DS0 I2C-based accelerometer and gyroscope
sensor. sensor.
if LSM6DS0
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config LSM6DS0_DEV_NAME config LSM6DS0_DEV_NAME
string "LSM6DS0 device name" string "LSM6DS0 device name"
depends on LSM6DS0
default "lsm6ds0" default "lsm6ds0"
config LSM6DS0_I2C_ADDR config LSM6DS0_I2C_ADDR
hex "LSM6DS0 I2C address" hex "LSM6DS0 I2C address"
depends on LSM6DS0
default 0x6B default 0x6B
help help
I2C address of the LSM6DS0 sensor. I2C address of the LSM6DS0 sensor.
@ -32,7 +32,6 @@ config LSM6DS0_I2C_ADDR
config LSM6DS0_I2C_MASTER_DEV_NAME config LSM6DS0_I2C_MASTER_DEV_NAME
string "I2C master where LSM6DS0 chip is connected" string "I2C master where LSM6DS0 chip is connected"
depends on LSM6DS0
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LSM6DS0 is Specify the device name of the I2C master device to which LSM6DS0 is
@ -42,7 +41,6 @@ endif
config LSM6DS0_ACCEL_ENABLE_X_AXIS config LSM6DS0_ACCEL_ENABLE_X_AXIS
bool "Enable accelerometer X axis" bool "Enable accelerometer X axis"
depends on LSM6DS0
default y default y
help help
Enable/disable accelerometer X axis totally by stripping everything Enable/disable accelerometer X axis totally by stripping everything
@ -50,7 +48,6 @@ config LSM6DS0_ACCEL_ENABLE_X_AXIS
config LSM6DS0_ACCEL_ENABLE_Y_AXIS config LSM6DS0_ACCEL_ENABLE_Y_AXIS
bool "Enable accelerometer Y axis" bool "Enable accelerometer Y axis"
depends on LSM6DS0
default y default y
help help
Enable/disable accelerometer Y axis totally by stripping everything Enable/disable accelerometer Y axis totally by stripping everything
@ -58,7 +55,6 @@ config LSM6DS0_ACCEL_ENABLE_Y_AXIS
config LSM6DS0_ACCEL_ENABLE_Z_AXIS config LSM6DS0_ACCEL_ENABLE_Z_AXIS
bool "Enable accelerometer Z axis" bool "Enable accelerometer Z axis"
depends on LSM6DS0
default y default y
help help
Enable/disable accelerometer Z axis totally by stripping everything Enable/disable accelerometer Z axis totally by stripping everything
@ -66,7 +62,6 @@ config LSM6DS0_ACCEL_ENABLE_Z_AXIS
config LSM6DS0_GYRO_ENABLE_X_AXIS config LSM6DS0_GYRO_ENABLE_X_AXIS
bool "Enable gyroscope X axis" bool "Enable gyroscope X axis"
depends on LSM6DS0
default y default y
help help
Enable/disable gyroscope X axis totally by stripping everything Enable/disable gyroscope X axis totally by stripping everything
@ -74,7 +69,6 @@ config LSM6DS0_GYRO_ENABLE_X_AXIS
config LSM6DS0_GYRO_ENABLE_Y_AXIS config LSM6DS0_GYRO_ENABLE_Y_AXIS
bool "Enable gyroscope Y axis" bool "Enable gyroscope Y axis"
depends on LSM6DS0
default y default y
help help
Enable/disable gyroscope Y axis totally by stripping everything Enable/disable gyroscope Y axis totally by stripping everything
@ -82,7 +76,6 @@ config LSM6DS0_GYRO_ENABLE_Y_AXIS
config LSM6DS0_GYRO_ENABLE_Z_AXIS config LSM6DS0_GYRO_ENABLE_Z_AXIS
bool "Enable gyroscope Z axis" bool "Enable gyroscope Z axis"
depends on LSM6DS0
default y default y
help help
Enable/disable gyroscope Z axis totally by stripping everything Enable/disable gyroscope Z axis totally by stripping everything
@ -90,17 +83,14 @@ config LSM6DS0_GYRO_ENABLE_Z_AXIS
config LSM6DS0_ENABLE_TEMP config LSM6DS0_ENABLE_TEMP
bool "Enable temperature" bool "Enable temperature"
depends on LSM6DS0
help help
Enable/disable temperature totally by stripping everything related in Enable/disable temperature totally by stripping everything related in
driver. driver.
menu "Attributes" menu "Attributes"
depends on LSM6DS0
config LSM6DS0_GYRO_FULLSCALE config LSM6DS0_GYRO_FULLSCALE
int "Gyroscope full-scale range" int "Gyroscope full-scale range"
depends on LSM6DS0
default 245 default 245
help help
Specify the default gyroscope full-scale range. Specify the default gyroscope full-scale range.
@ -109,7 +99,6 @@ config LSM6DS0_GYRO_FULLSCALE
config LSM6DS0_GYRO_SAMPLING_RATE config LSM6DS0_GYRO_SAMPLING_RATE
int "Output data rate" int "Output data rate"
depends on LSM6DS0
default 15 default 15
help help
Specify the default gyroscope output data rate expressed in samples Specify the default gyroscope output data rate expressed in samples
@ -119,7 +108,6 @@ config LSM6DS0_GYRO_SAMPLING_RATE
config LSM6DS0_ACCEL_FULLSCALE config LSM6DS0_ACCEL_FULLSCALE
int "Accelerometer full-scale range" int "Accelerometer full-scale range"
depends on LSM6DS0
default 2 default 2
help help
Specify the default accelerometer full-scale range. Specify the default accelerometer full-scale range.
@ -128,7 +116,6 @@ config LSM6DS0_ACCEL_FULLSCALE
config LSM6DS0_ACCEL_SAMPLING_RATE config LSM6DS0_ACCEL_SAMPLING_RATE
int "Output data rate" int "Output data rate"
depends on LSM6DS0
default 10 default 10
help help
Specify the default accelerometer output data rate expressed in Specify the default accelerometer output data rate expressed in
@ -136,3 +123,5 @@ config LSM6DS0_ACCEL_SAMPLING_RATE
Data rates supported by the chip are 0, 10, 50, 119, 238, 476, 952. Data rates supported by the chip are 0, 10, 50, 119, 238, 476, 952.
endmenu endmenu
endif # LSM6DS0

View file

@ -14,9 +14,10 @@ menuconfig LSM6DSL
Enable driver for LSM6DSL accelerometer and gyroscope Enable driver for LSM6DSL accelerometer and gyroscope
sensor. sensor.
if LSM6DSL
choice LSM6DSL_BUS_TYPE choice LSM6DSL_BUS_TYPE
prompt "Interface to AP" prompt "Interface to AP"
depends on LSM6DSL
help help
Select interface the LSM6DSL driver is connected to AP Select interface the LSM6DSL driver is connected to AP
@ -39,7 +40,7 @@ if !HAS_DTS_I2C_DEVICE
config LSM6DSL_I2C_ADDR config LSM6DSL_I2C_ADDR
hex "LSM6DSL I2C address" hex "LSM6DSL I2C address"
depends on LSM6DSL && LSM6DSL_I2C depends on LSM6DSL_I2C
default 0x6A default 0x6A
range 0x6A 0x6B range 0x6A 0x6B
help help
@ -49,7 +50,7 @@ config LSM6DSL_I2C_ADDR
config LSM6DSL_I2C_MASTER_DEV_NAME config LSM6DSL_I2C_MASTER_DEV_NAME
string "I2C master name where LSM6DSL chip is connected" string "I2C master name where LSM6DSL chip is connected"
depends on LSM6DSL && LSM6DSL_I2C depends on LSM6DSL_I2C
default "I2C_2" default "I2C_2"
help help
Specify the device name of the I2C master device to which LSM6DSL is Specify the device name of the I2C master device to which LSM6DSL is
@ -61,7 +62,7 @@ if !HAS_DTS_SPI_DEVICE
config LSM6DSL_SPI_SELECT_SLAVE config LSM6DSL_SPI_SELECT_SLAVE
hex "LSM6DSL SPI slave select pin" hex "LSM6DSL SPI slave select pin"
depends on LSM6DSL && LSM6DSL_SPI depends on LSM6DSL_SPI
default 1 default 1
help help
LSM6DSL SPI chip select pin (active low). LSM6DSL SPI chip select pin (active low).
@ -69,14 +70,14 @@ config LSM6DSL_SPI_SELECT_SLAVE
config LSM6DSL_SPI_BUS_FREQ config LSM6DSL_SPI_BUS_FREQ
int "LSM6DSL SPI bus speed in Hz" int "LSM6DSL SPI bus speed in Hz"
default 8000000 default 8000000
depends on LSM6DSL && LSM6DSL_SPI depends on LSM6DSL_SPI
help help
This is the maximum supported SPI bus frequency. The chip supports a This is the maximum supported SPI bus frequency. The chip supports a
frequency up to 10MHz. frequency up to 10MHz.
config LSM6DSL_SPI_MASTER_DEV_NAME config LSM6DSL_SPI_MASTER_DEV_NAME
string "SPI master name where LSM6DSL chip is connected" string "SPI master name where LSM6DSL chip is connected"
depends on LSM6DSL && LSM6DSL_SPI depends on LSM6DSL_SPI
default "SPI_2" default "SPI_2"
help help
Specify the device name of the spi master device to which LSM6DSL is Specify the device name of the spi master device to which LSM6DSL is
@ -86,7 +87,7 @@ endif #HAS_DTS_SPI_DEVICE
config LSM6DSL_SPI_GPIO_CS config LSM6DSL_SPI_GPIO_CS
bool "LSM6DSL SPI CS through a GPIO pin" bool "LSM6DSL SPI CS through a GPIO pin"
depends on LSM6DSL && LSM6DSL_SPI depends on LSM6DSL_SPI
help help
This option is useful if one needs to manage SPI CS through a GPIO This option is useful if one needs to manage SPI CS through a GPIO
pin to by-pass the SPI controller's CS logic. pin to by-pass the SPI controller's CS logic.
@ -113,7 +114,6 @@ endif # !HAS_DTS_SPI_PINS
choice LSM6DSL_TRIGGER_MODE choice LSM6DSL_TRIGGER_MODE
prompt "Trigger mode" prompt "Trigger mode"
depends on LSM6DSL
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -134,20 +134,19 @@ endchoice
config LSM6DSL_TRIGGER config LSM6DSL_TRIGGER
bool bool
depends on LSM6DSL
if !HAS_DTS_SPI_PINS if !HAS_DTS_SPI_PINS
config LSM6DSL_GPIO_DEV_NAME config LSM6DSL_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
depends on LSM6DSL && LSM6DSL_TRIGGER depends on LSM6DSL_TRIGGER
help help
The device name of the GPIO device to which the LSM6DSL interrupt pin The device name of the GPIO device to which the LSM6DSL interrupt pin
is connected. is connected.
config LSM6DSL_GPIO_PIN_NUM config LSM6DSL_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
depends on LSM6DSL && LSM6DSL_TRIGGER depends on LSM6DSL_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the LSM6DSL The number of the GPIO on which the interrupt signal from the LSM6DSL
chip will be received. chip will be received.
@ -156,27 +155,25 @@ endif #HAS_DTS_SPI_DEVICE
config LSM6DSL_THREAD_PRIORITY config LSM6DSL_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on LSM6DSL && LSM6DSL_TRIGGER_OWN_THREAD depends on LSM6DSL_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config LSM6DSL_THREAD_STACK_SIZE config LSM6DSL_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on LSM6DSL && LSM6DSL_TRIGGER_OWN_THREAD depends on LSM6DSL_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
config LSM6DSL_ENABLE_TEMP config LSM6DSL_ENABLE_TEMP
bool "Enable temperature" bool "Enable temperature"
depends on LSM6DSL
help help
Enable/disable temperature Enable/disable temperature
config LSM6DSL_SENSORHUB config LSM6DSL_SENSORHUB
bool "Enable I2C sensorhub feature" bool "Enable I2C sensorhub feature"
depends on LSM6DSL
help help
Enable/disable internal sensorhub Enable/disable internal sensorhub
@ -202,11 +199,9 @@ endchoice
endif #LSM6DSL_SENSORHUB endif #LSM6DSL_SENSORHUB
menu "Attributes" menu "Attributes"
depends on LSM6DSL
config LSM6DSL_GYRO_FS config LSM6DSL_GYRO_FS
int "Gyroscope full-scale range" int "Gyroscope full-scale range"
depends on LSM6DSL
default 0 default 0
help help
Specify the default gyroscope full-scale range. Specify the default gyroscope full-scale range.
@ -221,7 +216,6 @@ config LSM6DSL_GYRO_FS
config LSM6DSL_GYRO_ODR config LSM6DSL_GYRO_ODR
int "Gyroscope Output data rate frequency" int "Gyroscope Output data rate frequency"
depends on LSM6DSL
range 0 10 range 0 10
default 0 default 0
help help
@ -241,7 +235,6 @@ config LSM6DSL_GYRO_ODR
config LSM6DSL_ACCEL_FS config LSM6DSL_ACCEL_FS
int "Accelerometer full-scale range" int "Accelerometer full-scale range"
depends on LSM6DSL
default 0 default 0
help help
Specify the default accelerometer full-scale range. Specify the default accelerometer full-scale range.
@ -255,7 +248,6 @@ config LSM6DSL_ACCEL_FS
config LSM6DSL_ACCEL_ODR config LSM6DSL_ACCEL_ODR
int "Accelerometer Output data rate frequency" int "Accelerometer Output data rate frequency"
depends on LSM6DSL
range 0 10 range 0 10
default 0 default 0
help help
@ -273,3 +265,5 @@ config LSM6DSL_ACCEL_ODR
9: 3330Hz 9: 3330Hz
10: 6660Hz 10: 6660Hz
endmenu endmenu
endif # LSM6DSL

View file

@ -12,15 +12,15 @@ menuconfig LSM9DS0_GYRO
help help
Enable driver for LSM9DS0 I2C-based gyroscope sensor. Enable driver for LSM9DS0 I2C-based gyroscope sensor.
if LSM9DS0_GYRO
config LSM9DS0_GYRO_DEV_NAME config LSM9DS0_GYRO_DEV_NAME
string "LSM9DS0_GYRO device name" string "LSM9DS0_GYRO device name"
depends on LSM9DS0_GYRO
default "lsm9ds0_gyro" default "lsm9ds0_gyro"
config LSM9DS0_GYRO_I2C_ADDR config LSM9DS0_GYRO_I2C_ADDR
hex "LSM9DS0_GYRO I2C slave address" hex "LSM9DS0_GYRO I2C slave address"
default 0x6A default 0x6A
depends on LSM9DS0_GYRO
help help
Specify the I2C slave address for the LSM9DS0_GYRO. Specify the I2C slave address for the LSM9DS0_GYRO.
@ -29,19 +29,16 @@ config LSM9DS0_GYRO_I2C_ADDR
config LSM9DS0_GYRO_I2C_MASTER_DEV_NAME config LSM9DS0_GYRO_I2C_MASTER_DEV_NAME
string "I2C master where LSM9DS0 gyroscope is connected" string "I2C master where LSM9DS0 gyroscope is connected"
depends on LSM9DS0_GYRO
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LSM9DS0_GYRO Specify the device name of the I2C master device to which LSM9DS0_GYRO
is connected. is connected.
menu "Attributes" menu "Attributes"
depends on LSM9DS0_GYRO
choice choice
prompt "Default full-scale" prompt "Default full-scale"
default LSM9DS0_GYRO_FULLSCALE_245 default LSM9DS0_GYRO_FULLSCALE_245
depends on LSM9DS0_GYRO
help help
Specify the default full-scale. Specify the default full-scale.
@ -58,14 +55,12 @@ endchoice
config LSM9DS0_GYRO_FULLSCALE_RUNTIME config LSM9DS0_GYRO_FULLSCALE_RUNTIME
bool "Enable dynamic full-scale" bool "Enable dynamic full-scale"
depends on LSM9DS0_GYRO
help help
Enable alteration of full-scale attribute at runtime. Enable alteration of full-scale attribute at runtime.
choice choice
prompt "Default sampling rate frequency" prompt "Default sampling rate frequency"
default LSM9DS0_GYRO_SAMPLING_RATE_95 default LSM9DS0_GYRO_SAMPLING_RATE_95
depends on LSM9DS0_GYRO
help help
Specify the default sampling rate frequency. Specify the default sampling rate frequency.
@ -85,7 +80,6 @@ endchoice
config LSM9DS0_GYRO_SAMPLING_RATE_RUNTIME config LSM9DS0_GYRO_SAMPLING_RATE_RUNTIME
bool "Enable dynamic sampling rate" bool "Enable dynamic sampling rate"
depends on LSM9DS0_GYRO
help help
Enable alteration of sampling rate frequency at runtime. Enable alteration of sampling rate frequency at runtime.
@ -93,7 +87,7 @@ endmenu
config LSM9DS0_GYRO_TRIGGERS config LSM9DS0_GYRO_TRIGGERS
bool "Enable triggers" bool "Enable triggers"
depends on LSM9DS0_GYRO && GPIO depends on GPIO
config LSM9DS0_GYRO_THREAD_STACK_SIZE config LSM9DS0_GYRO_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
@ -118,3 +112,5 @@ config LSM9DS0_GYRO_GPIO_DRDY_INT_PIN
int "GPIO pin number for the data ready interrupt pin" int "GPIO pin number for the data ready interrupt pin"
default 3 default 3
depends on LSM9DS0_GYRO_TRIGGER_DRDY depends on LSM9DS0_GYRO_TRIGGER_DRDY
endif # LSM9DS0_GYRO

View file

@ -13,15 +13,15 @@ menuconfig LSM9DS0_MFD
help help
Enable driver for LSM9DS0 I2C-based MFD sensor. Enable driver for LSM9DS0 I2C-based MFD sensor.
if LSM9DS0_MFD
config LSM9DS0_MFD_DEV_NAME config LSM9DS0_MFD_DEV_NAME
string "LSM9DS0_MFD device name" string "LSM9DS0_MFD device name"
depends on LSM9DS0_MFD
default "lsm9ds0_mfd" default "lsm9ds0_mfd"
config LSM9DS0_MFD_I2C_ADDR config LSM9DS0_MFD_I2C_ADDR
hex "LSM9DS0_MFD I2C slave address" hex "LSM9DS0_MFD I2C slave address"
default 0x1E default 0x1E
depends on LSM9DS0_MFD
help help
Specify the I2C slave address for the LSM9DS0_MFD. Specify the I2C slave address for the LSM9DS0_MFD.
@ -30,7 +30,6 @@ config LSM9DS0_MFD_I2C_ADDR
config LSM9DS0_MFD_I2C_MASTER_DEV_NAME config LSM9DS0_MFD_I2C_MASTER_DEV_NAME
string "I2C master where LSM9DS0 gyroscope is connected" string "I2C master where LSM9DS0 gyroscope is connected"
depends on LSM9DS0_MFD
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which LSM9DS0_MFD Specify the device name of the I2C master device to which LSM9DS0_MFD
@ -38,7 +37,6 @@ config LSM9DS0_MFD_I2C_MASTER_DEV_NAME
config LSM9DS0_MFD_ACCEL_ENABLE config LSM9DS0_MFD_ACCEL_ENABLE
bool "Enable accelerometer" bool "Enable accelerometer"
depends on LSM9DS0_MFD
default y default y
help help
Enable/disable accelerometer totally by stripping everything related Enable/disable accelerometer totally by stripping everything related
@ -46,7 +44,6 @@ config LSM9DS0_MFD_ACCEL_ENABLE
config LSM9DS0_MFD_MAGN_ENABLE config LSM9DS0_MFD_MAGN_ENABLE
bool "Enable magnetometer" bool "Enable magnetometer"
depends on LSM9DS0_MFD
default y default y
help help
Enable/disable magnetometer totally by stripping everything related in Enable/disable magnetometer totally by stripping everything related in
@ -54,13 +51,11 @@ config LSM9DS0_MFD_MAGN_ENABLE
config LSM9DS0_MFD_TEMP_ENABLE config LSM9DS0_MFD_TEMP_ENABLE
bool "Enable temperature sensor" bool "Enable temperature sensor"
depends on LSM9DS0_MFD
help help
Enable/disable temperature sensor totally by stripping everything Enable/disable temperature sensor totally by stripping everything
related in driver. related in driver.
menu "Attributes" menu "Attributes"
depends on LSM9DS0_MFD
choice choice
prompt "Accelerometer sampling rate" prompt "Accelerometer sampling rate"
@ -220,3 +215,5 @@ config LSM9DS0_MFD_MAGN_FULL_SCALE_RUNTIME
runtime. runtime.
endmenu endmenu
endif # LSM9DS0_MFD

View file

@ -12,17 +12,17 @@ menuconfig MAX44009
help help
Enable driver for MAX44009 light sensors. Enable driver for MAX44009 light sensors.
if MAX44009
config MAX44009_DRV_NAME config MAX44009_DRV_NAME
string "Driver name" string "Driver name"
default "MAX44009" default "MAX44009"
depends on MAX44009
help help
Device name with which the MAX44009 light is identified. Device name with which the MAX44009 light is identified.
config MAX44009_I2C_ADDR config MAX44009_I2C_ADDR
hex "MAX44009 I2C address" hex "MAX44009 I2C address"
depends on MAX44009
default "0x4a" default "0x4a"
help help
I2C address of the MAX44009 sensor. Possible configurations: I2C address of the MAX44009 sensor. Possible configurations:
@ -32,8 +32,9 @@ config MAX44009_I2C_ADDR
config MAX44009_I2C_DEV_NAME config MAX44009_I2C_DEV_NAME
string "I2C master where MAX44009 is connected" string "I2C master where MAX44009 is connected"
depends on MAX44009
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
MAX44009 chip is connected. MAX44009 chip is connected.
endif # MAX44009

View file

@ -12,22 +12,21 @@ menuconfig MCP9808
help help
Enable driver for MCP9808 temperature sensor. Enable driver for MCP9808 temperature sensor.
if MCP9808
config MCP9808_DEV_NAME config MCP9808_DEV_NAME
string "MCP9808 device name" string "MCP9808 device name"
depends on MCP9808
default "MCP9808" default "MCP9808"
config MCP9808_I2C_ADDR config MCP9808_I2C_ADDR
hex "MCP9808 I2C slave address" hex "MCP9808 I2C slave address"
depends on MCP9808
default 0x18 default 0x18
help help
Specify the I2C slave address for the MCP9808. Specify the I2C slave address for the MCP9808.
config MCP9808_I2C_DEV_NAME config MCP9808_I2C_DEV_NAME
string "I2C master where MCP9808 is connected" string "I2C master where MCP9808 is connected"
depends on MCP9808
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which MCP9808 is Specify the device name of the I2C master device to which MCP9808 is
@ -35,7 +34,6 @@ config MCP9808_I2C_DEV_NAME
choice choice
prompt "MCP9808 trigger mode" prompt "MCP9808 trigger mode"
depends on MCP9808
default MCP9808_TRIGGER_NONE default MCP9808_TRIGGER_NONE
config MCP9808_TRIGGER_NONE config MCP9808_TRIGGER_NONE
@ -55,28 +53,29 @@ endchoice
config MCP9808_TRIGGER config MCP9808_TRIGGER
bool bool
depends on MCP9808
config MCP9808_GPIO_CONTROLLER config MCP9808_GPIO_CONTROLLER
string "GPIO controller for MCP9808 interrupt" string "GPIO controller for MCP9808 interrupt"
depends on MCP9808 && MCP9808_TRIGGER depends on MCP9808_TRIGGER
default "GPIO_0" default "GPIO_0"
help help
The GPIO controller the MCP9808 interrupt is connected to. The GPIO controller the MCP9808 interrupt is connected to.
config MCP9808_GPIO_PIN config MCP9808_GPIO_PIN
int "GPIO pin for MCP9808 interrupt" int "GPIO pin for MCP9808 interrupt"
depends on MCP9808 && MCP9808_TRIGGER depends on MCP9808_TRIGGER
default 3 default 3
help help
The GPIO pin the MCP9808 interrupt is connected to. The GPIO pin the MCP9808 interrupt is connected to.
config MCP9808_THREAD_STACK_SIZE config MCP9808_THREAD_STACK_SIZE
int "Sensor delayed work thread stack size" int "Sensor delayed work thread stack size"
depends on MCP9808 && MCP9808_TRIGGER_OWN_THREAD depends on MCP9808_TRIGGER_OWN_THREAD
default 1024 default 1024
config MCP9808_THREAD_PRIORITY config MCP9808_THREAD_PRIORITY
int "MCP9808 thread priority" int "MCP9808 thread priority"
depends on MCP9808 && MCP9808_TRIGGER_OWN_THREAD depends on MCP9808_TRIGGER_OWN_THREAD
default 10 default 10
endif # MCP9808

View file

@ -11,21 +11,20 @@ menuconfig MMA8451Q
help help
Enable driver for MMA8451Q Accelerometer. Enable driver for MMA8451Q Accelerometer.
if MMA8451Q
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config MMA8451Q_NAME config MMA8451Q_NAME
string "Device name" string "Device name"
depends on MMA8451Q
default "MMA8451Q" default "MMA8451Q"
config MMA8451Q_I2C_NAME config MMA8451Q_I2C_NAME
string "I2C device name" string "I2C device name"
depends on MMA8451Q
default I2C_0_NAME default I2C_0_NAME
config MMA8451Q_I2C_ADDRESS config MMA8451Q_I2C_ADDRESS
hex "I2C address for MMA8451Q Sensor" hex "I2C address for MMA8451Q Sensor"
depends on MMA8451Q
default 0x1D default 0x1D
help help
I2C address of the MMA8451Q sensor. I2C address of the MMA8451Q sensor.
@ -35,14 +34,12 @@ endif # !HAS_DTS_I2C_DEVICE
config MMA8451Q_WHOAMI config MMA8451Q_WHOAMI
hex "WHOAMI value" hex "WHOAMI value"
depends on MMA8451Q
default 0x1A default 0x1A
help help
The whoami value for MMA8451Q (0x1A). The whoami value for MMA8451Q (0x1A).
choice choice
prompt "Range" prompt "Range"
depends on MMA8451Q
default MMA8451Q_RANGE_2G default MMA8451Q_RANGE_2G
config MMA8451Q_RANGE_8G config MMA8451Q_RANGE_8G
@ -55,3 +52,5 @@ config MMA8451Q_RANGE_2G
bool "2g (0.244 mg/LSB)" bool "2g (0.244 mg/LSB)"
endchoice endchoice
endif # MMA8451Q

View file

@ -12,16 +12,16 @@ menuconfig MPU6050
help help
Enable driver for MPU6050 I2C-based six-axis motion tracking device. Enable driver for MPU6050 I2C-based six-axis motion tracking device.
if MPU6050
config MPU6050_NAME config MPU6050_NAME
string "Driver name" string "Driver name"
default "MPU6050" default "MPU6050"
depends on MPU6050
help help
Device name with which the MPU6050 sensor is identified. Device name with which the MPU6050 sensor is identified.
config MPU6050_I2C_ADDR config MPU6050_I2C_ADDR
hex "I2C address" hex "I2C address"
depends on MPU6050
default 0x68 default 0x68
range 0x68 0x69 range 0x68 0x69
help help
@ -31,7 +31,6 @@ config MPU6050_I2C_ADDR
config MPU6050_I2C_MASTER_DEV_NAME config MPU6050_I2C_MASTER_DEV_NAME
string "I2C master where MPU6050 is connected" string "I2C master where MPU6050 is connected"
depends on MPU6050
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which MPU6050 is Specify the device name of the I2C master device to which MPU6050 is
@ -39,7 +38,6 @@ config MPU6050_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on MPU6050
default MPU6050_TRIGGER_GLOBAL_THREAD default MPU6050_TRIGGER_GLOBAL_THREAD
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -61,12 +59,11 @@ endchoice
config MPU6050_TRIGGER config MPU6050_TRIGGER
bool bool
depends on MPU6050
config MPU6050_GPIO_DEV_NAME config MPU6050_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on MPU6050 && MPU6050_TRIGGER depends on MPU6050_TRIGGER
help help
The device name of the GPIO device to which the MPU6050 interrupt pin The device name of the GPIO device to which the MPU6050 interrupt pin
is connected. is connected.
@ -74,28 +71,27 @@ config MPU6050_GPIO_DEV_NAME
config MPU6050_GPIO_PIN_NUM config MPU6050_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on MPU6050 && MPU6050_TRIGGER depends on MPU6050_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the MPU6050 The number of the GPIO on which the interrupt signal from the MPU6050
chip will be received. chip will be received.
config MPU6050_THREAD_PRIORITY config MPU6050_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on MPU6050 && MPU6050_TRIGGER_OWN_THREAD depends on MPU6050_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config MPU6050_THREAD_STACK_SIZE config MPU6050_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on MPU6050 && MPU6050_TRIGGER_OWN_THREAD depends on MPU6050_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
config MPU6050_ACCEL_FS config MPU6050_ACCEL_FS
int "Accelerometer full-scale range" int "Accelerometer full-scale range"
depends on MPU6050
default 2 default 2
help help
Magnetometer full-scale range. Magnetometer full-scale range.
@ -104,9 +100,10 @@ config MPU6050_ACCEL_FS
config MPU6050_GYRO_FS config MPU6050_GYRO_FS
int "Gyroscope full-scale range" int "Gyroscope full-scale range"
depends on MPU6050
default 250 default 250
help help
Gyroscope full-scale range. Gyroscope full-scale range.
An X value for the config represents a range of +/- X degrees/second. An X value for the config represents a range of +/- X degrees/second.
Valid values are 250, 500, 1000, 2000. Valid values are 250, 500, 1000, 2000.
endif # MPU6050

View file

@ -12,18 +12,20 @@ menuconfig TEMP_NRF5
help help
Enable driver for nRF5 temperature sensor. Enable driver for nRF5 temperature sensor.
if TEMP_NRF5
config TEMP_NRF5_NAME config TEMP_NRF5_NAME
string "Driver name" string "Driver name"
default "TEMP_0" default "TEMP_0"
depends on TEMP_NRF5
help help
Device name with which the nRF5 temperature sensor is identified. Device name with which the nRF5 temperature sensor is identified.
config TEMP_NRF5_PRI config TEMP_NRF5_PRI
int "TEMP interrupt priority" int "TEMP interrupt priority"
depends on TEMP_NRF5
range 0 1 if SOC_SERIES_NRF51X range 0 1 if SOC_SERIES_NRF51X
range 0 5 if SOC_SERIES_NRF52X range 0 5 if SOC_SERIES_NRF52X
default 1 default 1
help help
nRF5X TEMP IRQ priority. nRF5X TEMP IRQ priority.
endif # TEMP_NRF5

View file

@ -12,12 +12,14 @@ menuconfig PMS7003
help help
Enable driver for pms7003 particulate matter sensor. Enable driver for pms7003 particulate matter sensor.
if PMS7003
config PMS7003_UART_DEVICE config PMS7003_UART_DEVICE
string "UART device" string "UART device"
depends on PMS7003
default "UART_3" default "UART_3"
config PMS7003_DRIVER_NAME config PMS7003_DRIVER_NAME
string "Driver name" string "Driver name"
depends on PMS7003
default "PMS7003" default "PMS7003"
endif # PMS7003

View file

@ -12,16 +12,16 @@ menuconfig SHT3XD
help help
Enable driver for SHT3xD temperature and humidity sensors. Enable driver for SHT3xD temperature and humidity sensors.
if SHT3XD
config SHT3XD_NAME config SHT3XD_NAME
string "Driver name" string "Driver name"
default "SHT3XD" default "SHT3XD"
depends on SHT3XD
help help
Device name with which the SHT3xD sensor is identified. Device name with which the SHT3xD sensor is identified.
config SHT3XD_I2C_ADDR config SHT3XD_I2C_ADDR
hex "SHT3XD I2C address" hex "SHT3XD I2C address"
depends on SHT3XD
default "0x44" default "0x44"
help help
I2C address of the SHT3xD sensor. I2C address of the SHT3xD sensor.
@ -31,7 +31,6 @@ config SHT3XD_I2C_ADDR
config SHT3XD_I2C_MASTER_DEV_NAME config SHT3XD_I2C_MASTER_DEV_NAME
string "I2C master where SHT3xD is connected" string "I2C master where SHT3xD is connected"
depends on SHT3XD
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
@ -39,7 +38,6 @@ config SHT3XD_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on SHT3XD
default SHT3XD_TRIGGER_NONE default SHT3XD_TRIGGER_NONE
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -61,12 +59,11 @@ endchoice
config SHT3XD_TRIGGER config SHT3XD_TRIGGER
bool bool
depends on SHT3XD
config SHT3XD_GPIO_DEV_NAME config SHT3XD_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on SHT3XD && SHT3XD_TRIGGER depends on SHT3XD_TRIGGER
help help
The device name of the GPIO device to which the SHT3xD interrupt The device name of the GPIO device to which the SHT3xD interrupt
pins are connected. pins are connected.
@ -74,28 +71,27 @@ config SHT3XD_GPIO_DEV_NAME
config SHT3XD_GPIO_PIN_NUM config SHT3XD_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on SHT3XD && SHT3XD_TRIGGER depends on SHT3XD_TRIGGER
help help
The number of the GPIO on which the interrupt signal from the The number of the GPIO on which the interrupt signal from the
SHT3xD chip will be received. SHT3xD chip will be received.
config SHT3XD_THREAD_PRIORITY config SHT3XD_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on SHT3XD && SHT3XD_TRIGGER_OWN_THREAD depends on SHT3XD_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config SHT3XD_THREAD_STACK_SIZE config SHT3XD_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on SHT3XD && SHT3XD_TRIGGER_OWN_THREAD depends on SHT3XD_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
choice choice
prompt "Measurement repeatability" prompt "Measurement repeatability"
depends on SHT3XD
default SHT3XD_REPEATABILITY_HIGH default SHT3XD_REPEATABILITY_HIGH
help help
Repeatability modes differ with respect to measurement duration, Repeatability modes differ with respect to measurement duration,
@ -114,7 +110,6 @@ endchoice
choice choice
prompt "Measurements per second" prompt "Measurements per second"
depends on SHT3XD
default SHT3XD_MPS_1 default SHT3XD_MPS_1
help help
Number of measurements per second. Number of measurements per second.
@ -135,3 +130,5 @@ config SHT3XD_MPS_10
bool "10" bool "10"
endchoice endchoice
endif # SHT3XD

View file

@ -12,21 +12,20 @@ menuconfig SX9500
help help
Enable driver for SX9500 I2C-based SAR proximity sensor. Enable driver for SX9500 I2C-based SAR proximity sensor.
if SX9500
config SX9500_DEV_NAME config SX9500_DEV_NAME
string "SX9500 device name" string "SX9500 device name"
depends on SX9500
default "SX9500" default "SX9500"
config SX9500_I2C_ADDR config SX9500_I2C_ADDR
hex "SX9500 I2C slave address" hex "SX9500 I2C slave address"
depends on SX9500
default 0x2B default 0x2B
help help
Specify the I2C slave address for the SX9500. Specify the I2C slave address for the SX9500.
config SX9500_I2C_DEV_NAME config SX9500_I2C_DEV_NAME
string "I2C master where SX9500 is connected" string "I2C master where SX9500 is connected"
depends on SX9500
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which SX9500 is Specify the device name of the I2C master device to which SX9500 is
@ -35,14 +34,12 @@ config SX9500_I2C_DEV_NAME
config SX9500_PROX_CHANNEL config SX9500_PROX_CHANNEL
int "Proximity channel to use" int "Proximity channel to use"
default 3 default 3
depends on SX9500
help help
The SX9500 offers 4 separate proximity channels. Choose which one The SX9500 offers 4 separate proximity channels. Choose which one
you are using. Valid numbers are 0 to 3. you are using. Valid numbers are 0 to 3.
choice choice
prompt "SX9500 trigger mode" prompt "SX9500 trigger mode"
depends on SX9500
default SX9500_TRIGGER_GLOBAL_THREAD default SX9500_TRIGGER_GLOBAL_THREAD
config SX9500_TRIGGER_NONE config SX9500_TRIGGER_NONE
@ -62,11 +59,10 @@ endchoice
config SX9500_TRIGGER config SX9500_TRIGGER
bool bool
depends on SX9500
config SX9500_GPIO_CONTROLLER config SX9500_GPIO_CONTROLLER
string "GPIO controller for SX9500 interrupt" string "GPIO controller for SX9500 interrupt"
depends on SX9500 && SX9500_TRIGGER depends on SX9500_TRIGGER
default "GPIO_0" default "GPIO_0"
help help
Specify the device name of the GPIO controller the SX9500 interrupt Specify the device name of the GPIO controller the SX9500 interrupt
@ -74,15 +70,17 @@ config SX9500_GPIO_CONTROLLER
config SX9500_GPIO_PIN config SX9500_GPIO_PIN
int "GPIO pin for SX9500 interrupt" int "GPIO pin for SX9500 interrupt"
depends on SX9500 && SX9500_TRIGGER depends on SX9500_TRIGGER
default 3 default 3
config SX9500_THREAD_STACK_SIZE config SX9500_THREAD_STACK_SIZE
int "Sensor delayed work thread stack size" int "Sensor delayed work thread stack size"
depends on SX9500 && SX9500_TRIGGER_OWN_THREAD depends on SX9500_TRIGGER_OWN_THREAD
default 1024 default 1024
config SX9500_THREAD_PRIORITY config SX9500_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on SX9500 && SX9500_TRIGGER_OWN_THREAD depends on SX9500_TRIGGER_OWN_THREAD
default 10 default 10
endif # SX9500

View file

@ -12,16 +12,16 @@ menuconfig TMP007
help help
Enable driver for TMP007 infrared thermopile sensors. Enable driver for TMP007 infrared thermopile sensors.
if TMP007
config TMP007_NAME config TMP007_NAME
string "Driver name" string "Driver name"
default "TMP007" default "TMP007"
depends on TMP007
help help
Device name with which the TMP007 sensor is identified. Device name with which the TMP007 sensor is identified.
config TMP007_I2C_ADDR config TMP007_I2C_ADDR
hex "I2C address for TMP006 Sensor" hex "I2C address for TMP006 Sensor"
depends on TMP007
default "0x40" default "0x40"
help help
I2C address of the TMP007 sensor. I2C address of the TMP007 sensor.
@ -37,7 +37,6 @@ config TMP007_I2C_ADDR
config TMP007_I2C_MASTER_DEV_NAME config TMP007_I2C_MASTER_DEV_NAME
string "I2C master where TMP007 is connected" string "I2C master where TMP007 is connected"
depends on TMP007
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
@ -45,7 +44,6 @@ config TMP007_I2C_MASTER_DEV_NAME
choice choice
prompt "Trigger mode" prompt "Trigger mode"
depends on TMP007
default TMP007_TRIGGER_NONE default TMP007_TRIGGER_NONE
help help
Specify the type of triggering to be used by the driver. Specify the type of triggering to be used by the driver.
@ -67,12 +65,11 @@ endchoice
config TMP007_TRIGGER config TMP007_TRIGGER
bool bool
depends on TMP007
config TMP007_GPIO_DEV_NAME config TMP007_GPIO_DEV_NAME
string "GPIO device" string "GPIO device"
default "GPIO_0" default "GPIO_0"
depends on TMP007 && TMP007_TRIGGER depends on TMP007_TRIGGER
help help
The device name of the GPIO device to which the TMP007 interrupt The device name of the GPIO device to which the TMP007 interrupt
(alert) pin is connected. (alert) pin is connected.
@ -80,21 +77,23 @@ config TMP007_GPIO_DEV_NAME
config TMP007_GPIO_PIN_NUM config TMP007_GPIO_PIN_NUM
int "Interrupt GPIO pin number" int "Interrupt GPIO pin number"
default 0 default 0
depends on TMP007 && TMP007_TRIGGER depends on TMP007_TRIGGER
help help
The number of the GPIO pin on which the interrupt signal from the The number of the GPIO pin on which the interrupt signal from the
TMP007 chip will be received. TMP007 chip will be received.
config TMP007_THREAD_PRIORITY config TMP007_THREAD_PRIORITY
int "Thread priority" int "Thread priority"
depends on TMP007 && TMP007_TRIGGER_OWN_THREAD depends on TMP007_TRIGGER_OWN_THREAD
default 10 default 10
help help
Priority of thread used by the driver to handle interrupts. Priority of thread used by the driver to handle interrupts.
config TMP007_THREAD_STACK_SIZE config TMP007_THREAD_STACK_SIZE
int "Thread stack size" int "Thread stack size"
depends on TMP007 && TMP007_TRIGGER_OWN_THREAD depends on TMP007_TRIGGER_OWN_THREAD
default 1024 default 1024
help help
Stack size of thread used by the driver to handle interrupts. Stack size of thread used by the driver to handle interrupts.
endif # TMP007

View file

@ -16,16 +16,16 @@ menuconfig TMP112
The TMP102 is compatible with the TMP112 but is less accurate and has The TMP102 is compatible with the TMP112 but is less accurate and has
been successfully tested with this driver. been successfully tested with this driver.
if TMP112
config TMP112_NAME config TMP112_NAME
string "Driver name" string "Driver name"
default "TMP112" default "TMP112"
depends on TMP112
help help
Device name with which the TMP112 sensor is identified. Device name with which the TMP112 sensor is identified.
config TMP112_I2C_ADDR config TMP112_I2C_ADDR
hex "I2C address for TMP112" hex "I2C address for TMP112"
depends on TMP112
default 0x48 default 0x48
help help
I2C address of the TMP112 sensor. I2C address of the TMP112 sensor.
@ -38,8 +38,9 @@ config TMP112_I2C_ADDR
config TMP112_I2C_MASTER_DEV_NAME config TMP112_I2C_MASTER_DEV_NAME
string "I2C master where TMP112 is connected" string "I2C master where TMP112 is connected"
depends on TMP112
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which the Specify the device name of the I2C master device to which the
TMP112 chip is connected. TMP112 chip is connected.
endif # TMP112

View file

@ -13,25 +13,24 @@ menuconfig VL53L0X
help help
Enable driver for VL53L0X I2C-based time of flight sensor. Enable driver for VL53L0X I2C-based time of flight sensor.
if VL53L0X
if !HAS_DTS_I2C_DEVICE if !HAS_DTS_I2C_DEVICE
config VL53L0X_NAME config VL53L0X_NAME
string "Driver name" string "Driver name"
default "VL53L0X" default "VL53L0X"
depends on VL53L0X
help help
Device name with which the VL53L0X sensor is identified. Device name with which the VL53L0X sensor is identified.
config VL53L0X_I2C_ADDR config VL53L0X_I2C_ADDR
hex "Vl53l0x I2C address" hex "Vl53l0x I2C address"
default 0x29 default 0x29
depends on VL53L0X
help help
address of the i2c used for the vl53l0x sensor address of the i2c used for the vl53l0x sensor
config VL53L0X_I2C_MASTER_DEV_NAME config VL53L0X_I2C_MASTER_DEV_NAME
string "I2C master where VL53L0X is connected" string "I2C master where VL53L0X is connected"
depends on VL53L0X
default "I2C_0" default "I2C_0"
help help
Specify the device name of the I2C master device to which VL53L0X is Specify the device name of the I2C master device to which VL53L0X is
@ -41,7 +40,6 @@ endif
config VL53L0X_XSHUT_CONTROL_ENABLE config VL53L0X_XSHUT_CONTROL_ENABLE
bool "Enable XSHUT pin control" bool "Enable XSHUT pin control"
depends on VL53L0X
help help
Enable it if XSHUT pin is controlled by host. Enable it if XSHUT pin is controlled by host.
@ -64,6 +62,7 @@ config VL53L0X_XSHUT_GPIO_PIN_NUM
config VL53L0X_PROXIMITY_THRESHOLD config VL53L0X_PROXIMITY_THRESHOLD
int "Proximity threshold in millimeters" int "Proximity threshold in millimeters"
default 100 default 100
depends on VL53L0X
help help
Threshold used for proximity detection when sensor is used with SENSOR_CHAN_PROX. Threshold used for proximity detection when sensor is used with SENSOR_CHAN_PROX.
endif # VL53L0X