File tree Expand file tree Collapse file tree 4 files changed +28
-12
lines changed Expand file tree Collapse file tree 4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ menuconfig LIS3MDL
12
12
help
13
13
Enable driver for LIS3MDL I2C-based magnetometer.
14
14
15
+ if !HAS_DTS_I2C_DEVICE
16
+
15
17
config LIS3MDL_NAME
16
18
string
17
19
prompt "Driver name"
18
20
default "LIS3MDL"
19
- depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
21
+ depends on LIS3MDL
20
22
help
21
23
Device name with which the LIS3MDL sensor is identified.
22
24
23
25
config LIS3MDL_I2C_ADDR
24
26
hex
25
27
prompt "I2C address"
26
- depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
28
+ depends on LIS3MDL
27
29
default 0x1C
28
30
help
29
31
I2C address of the LIS3MDL sensor.
@@ -33,12 +35,14 @@ config LIS3MDL_I2C_ADDR
33
35
config LIS3MDL_I2C_MASTER_DEV_NAME
34
36
string
35
37
prompt "I2C master where LIS3MDL is connected"
36
- depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
38
+ depends on LIS3MDL
37
39
default "I2C_0"
38
40
help
39
41
Specify the device name of the I2C master device to which LIS3MDL is
40
42
connected.
41
43
44
+ endif
45
+
42
46
choice
43
47
prompt "Trigger mode"
44
48
depends on LIS3MDL
Original file line number Diff line number Diff line change @@ -13,18 +13,20 @@ menuconfig LPS22HB
13
13
Enable driver for LPS22HB I2C-based pressure and temperature
14
14
sensor.
15
15
16
+ if !HAS_DTS_I2C_DEVICE
17
+
16
18
config LPS22HB_DEV_NAME
17
19
string
18
20
prompt "Device name"
19
21
default "LPS22HB"
20
- depends on LPS22HB && !HAS_DTS_I2C_DEVICE
22
+ depends on LPS22HB
21
23
help
22
24
Device name used for LPS22HB sensor identification.
23
25
24
26
config LPS22HB_I2C_ADDR
25
27
hex
26
28
prompt "I2C address"
27
- depends on LPS22HB && !HAS_DTS_I2C_DEVICE
29
+ depends on LPS22HB
28
30
default 0x5D
29
31
range 0x5C 0x5D
30
32
help
@@ -35,12 +37,14 @@ config LPS22HB_I2C_ADDR
35
37
config LPS22HB_I2C_MASTER_DEV_NAME
36
38
string
37
39
prompt "I2C master where LPS22HB is connected"
38
- depends on LPS22HB && !HAS_DTS_I2C_DEVICE
40
+ depends on LPS22HB
39
41
default I2C_0_NAME
40
42
help
41
43
Specify the device name of the I2C master device to which
42
44
LPS22HB is connected.
43
45
46
+ endif
47
+
44
48
menu "Attributes"
45
49
depends on LPS22HB
46
50
Original file line number Diff line number Diff line change @@ -15,15 +15,17 @@ menuconfig LSM6DSL
15
15
Enable driver for LSM6DSL I2C-based accelerometer and gyroscope
16
16
sensor.
17
17
18
+ if !HAS_DTS_I2C_DEVICE
19
+
18
20
config LSM6DSL_DEV_NAME
19
21
string "LSM6DSL device name"
20
- depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
22
+ depends on LSM6DSL
21
23
default "LSM6DSL"
22
24
23
25
config LSM6DSL_I2C_ADDR
24
26
hex
25
27
prompt "LSM6DSL I2C address"
26
- depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
28
+ depends on LSM6DSL
27
29
default 0x6A
28
30
range 0x6A 0x6B
29
31
help
@@ -33,12 +35,14 @@ config LSM6DSL_I2C_ADDR
33
35
34
36
config LSM6DSL_I2C_MASTER_DEV_NAME
35
37
string "I2C master where LSM6DSL chip is connected"
36
- depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
38
+ depends on LSM6DSL
37
39
default I2C_0_NAME
38
40
help
39
41
Specify the device name of the I2C master device to which LSM6DSL is
40
42
connected.
41
43
44
+ endif
45
+
42
46
config LSM6DSL_ENABLE_TEMP
43
47
bool "Enable temperature"
44
48
depends on LSM6DSL
Original file line number Diff line number Diff line change @@ -15,31 +15,35 @@ menuconfig VL53L0X
15
15
help
16
16
Enable driver for VL53L0X I2C-based time of flight sensor.
17
17
18
+ if !HAS_DTS_I2C_DEVICE
19
+
18
20
config VL53L0X_NAME
19
21
string
20
22
prompt "Driver name"
21
23
default "VL53L0X"
22
- depends on VL53L0X && !HAS_DTS_I2C_DEVICE
24
+ depends on VL53L0X
23
25
help
24
26
Device name with which the VL53L0X sensor is identified.
25
27
26
28
config VL53L0X_I2C_ADDR
27
29
int
28
30
prompt "Vl53l0x I2C address"
29
31
default 0x29
30
- depends on VL53L0X && !HAS_DTS_I2C_DEVICE
32
+ depends on VL53L0X
31
33
help
32
34
address of the i2c used for the vl53l0x sensor
33
35
34
36
config VL53L0X_I2C_MASTER_DEV_NAME
35
37
string
36
38
prompt "I2C master where VL53L0X is connected"
37
- depends on VL53L0X && !HAS_DTS_I2C_DEVICE
39
+ depends on VL53L0X
38
40
default "I2C_0"
39
41
help
40
42
Specify the device name of the I2C master device to which VL53L0X is
41
43
connected.
42
44
45
+ endif
46
+
43
47
config VL53L0X_XSHUT_GPIO_DEV_NAME
44
48
string
45
49
prompt "GPIO device"
You can’t perform that action at this time.
0 commit comments