Commit 65747e87 authored by Erwan Gouriou's avatar Erwan Gouriou Committed by Kumar Gala
Browse files

dts: add sensors dts support for some sensors



Provide HAS_DTS_I2C_DEVICE flag to enable dts based generation for
these sensors.

Signed-off-by: default avatarErwan Gouriou <erwan.gouriou@linaro.org>
parent 568fc9d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -16,14 +16,14 @@ config HTS221_NAME
	string
	prompt "Driver name"
	default "HTS221"
	depends on HTS221
	depends on HTS221 && !HAS_DTS_I2C_DEVICE
	help
	  Device name with which the HTS221 sensor is identified.

config HTS221_I2C_MASTER_DEV_NAME
	string
	prompt "I2C master where HTS221 is connected"
	depends on HTS221
	depends on HTS221 && !HAS_DTS_I2C_DEVICE
	default "I2C_0"
	help
	  Specify the device name of the I2C master device to which HTS221 is
+3 −3
Original line number Diff line number Diff line
@@ -16,14 +16,14 @@ config LIS3MDL_NAME
	string
	prompt "Driver name"
	default "LIS3MDL"
	depends on LIS3MDL
	depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
	help
	  Device name with which the LIS3MDL sensor is identified.

config LIS3MDL_I2C_ADDR
	hex
	prompt "I2C address"
	depends on LIS3MDL
	depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
	default 0x1C
	help
	  I2C address of the LIS3MDL sensor.
@@ -33,7 +33,7 @@ config LIS3MDL_I2C_ADDR
config LIS3MDL_I2C_MASTER_DEV_NAME
	string
	prompt "I2C master where LIS3MDL is connected"
	depends on LIS3MDL
	depends on LIS3MDL && !HAS_DTS_I2C_DEVICE
	default "I2C_0"
	help
	  Specify the device name of the I2C master device to which LIS3MDL is
+3 −3
Original line number Diff line number Diff line
@@ -17,14 +17,14 @@ config LPS22HB_DEV_NAME
	string
	prompt "Device name"
	default "LPS22HB"
	depends on LPS22HB
	depends on LPS22HB && !HAS_DTS_I2C_DEVICE
	help
	  Device name used for LPS22HB sensor identification.

config LPS22HB_I2C_ADDR
	hex
	prompt "I2C address"
	depends on LPS22HB
	depends on LPS22HB && !HAS_DTS_I2C_DEVICE
	default 0x5D
	range 0x5C 0x5D
	help
@@ -35,7 +35,7 @@ config LPS22HB_I2C_ADDR
config LPS22HB_I2C_MASTER_DEV_NAME
	string
	prompt "I2C master where LPS22HB is connected"
	depends on LPS22HB
	depends on LPS22HB && !HAS_DTS_I2C_DEVICE
	default I2C_0_NAME
	help
	  Specify the device name of the I2C master device to which
+3 −3
Original line number Diff line number Diff line
@@ -17,13 +17,13 @@ menuconfig LSM6DSL

config LSM6DSL_DEV_NAME
	string "LSM6DSL device name"
	depends on LSM6DSL
	depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
	default "LSM6DSL"

config LSM6DSL_I2C_ADDR
	hex
	prompt "LSM6DSL I2C address"
	depends on LSM6DSL
	depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
	default 0x6A
	range 0x6A 0x6B
	help
@@ -33,7 +33,7 @@ config LSM6DSL_I2C_ADDR

config LSM6DSL_I2C_MASTER_DEV_NAME
	string "I2C master where LSM6DSL chip is connected"
	depends on LSM6DSL
	depends on LSM6DSL && !HAS_DTS_I2C_DEVICE
	default I2C_0_NAME
	help
	  Specify the device name of the I2C master device to which LSM6DSL is
+7 −0
Original line number Diff line number Diff line
@@ -19,3 +19,10 @@ config HAS_DTS_I2C
	  This option specifies that the target platform supports device tree
	  configuration for I2c.

config HAS_DTS_I2C_DEVICE
	bool
	default n
	depends on HAS_DTS_I2C
	help
	This option specifies that the target platform supports device tree
	configuration for sensors.