linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] iio: imu: adis16480: Add support for ADIS16490
@ 2020-01-16 13:11 Alexandru Ardelean
  2020-01-16 13:11 ` [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry " Alexandru Ardelean
  2020-01-18 13:36 ` [PATCH 1/2] iio: imu: adis16480: Add support " Jonathan Cameron
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandru Ardelean @ 2020-01-16 13:11 UTC (permalink / raw)
  To: linux-iio, devicetree, linux-kernel
  Cc: jic23, Stefan Popa, Alexandru Ardelean

From: Stefan Popa <stefan.popa@analog.com>

The ADIS16490 is part of the same family with ADIS16495 and ADIS16497,
the main difference is the temperature, accelerometer and gyroscope
scales.

Datasheet:
Link: https://www.analog.com/media/en/technical-documentation/data-sheets/adis16490.pdf

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---
 drivers/iio/imu/adis16480.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
index f0ad7ce64861..dac87f1001fd 100644
--- a/drivers/iio/imu/adis16480.c
+++ b/drivers/iio/imu/adis16480.c
@@ -787,6 +787,7 @@ enum adis16480_variant {
 	ADIS16480,
 	ADIS16485,
 	ADIS16488,
+	ADIS16490,
 	ADIS16495_1,
 	ADIS16495_2,
 	ADIS16495_3,
@@ -878,6 +879,20 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
 		.filter_freqs = adis16480_def_filter_freqs,
 		.timeouts = &adis16485_timeouts,
 	},
+	[ADIS16490] = {
+		.channels = adis16485_channels,
+		.num_channels = ARRAY_SIZE(adis16485_channels),
+		.gyro_max_val = 20000 << 16,
+		.gyro_max_scale = IIO_DEGREE_TO_RAD(100),
+		.accel_max_val = IIO_M_S_2_TO_G(16000 << 16),
+		.accel_max_scale = 8,
+		.temp_scale = 14285, /* 14.285 milli degree Celsius */
+		.int_clk = 4250000,
+		.max_dec_rate = 4250,
+		.filter_freqs = adis16495_def_filter_freqs,
+		.has_pps_clk_mode = true,
+		.timeouts = &adis16495_timeouts,
+	},
 	[ADIS16495_1] = {
 		.channels = adis16485_channels,
 		.num_channels = ARRAY_SIZE(adis16485_channels),
@@ -1341,6 +1356,7 @@ static const struct spi_device_id adis16480_ids[] = {
 	{ "adis16480", ADIS16480 },
 	{ "adis16485", ADIS16485 },
 	{ "adis16488", ADIS16488 },
+	{ "adis16490", ADIS16490 },
 	{ "adis16495-1", ADIS16495_1 },
 	{ "adis16495-2", ADIS16495_2 },
 	{ "adis16495-3", ADIS16495_3 },
@@ -1356,6 +1372,7 @@ static const struct of_device_id adis16480_of_match[] = {
 	{ .compatible = "adi,adis16480" },
 	{ .compatible = "adi,adis16485" },
 	{ .compatible = "adi,adis16488" },
+	{ .compatible = "adi,adis16490" },
 	{ .compatible = "adi,adis16495-1" },
 	{ .compatible = "adi,adis16495-2" },
 	{ .compatible = "adi,adis16495-3" },
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry for ADIS16490
  2020-01-16 13:11 [PATCH 1/2] iio: imu: adis16480: Add support for ADIS16490 Alexandru Ardelean
@ 2020-01-16 13:11 ` Alexandru Ardelean
  2020-01-18 13:36   ` Jonathan Cameron
  2020-01-18 13:36 ` [PATCH 1/2] iio: imu: adis16480: Add support " Jonathan Cameron
  1 sibling, 1 reply; 4+ messages in thread
From: Alexandru Ardelean @ 2020-01-16 13:11 UTC (permalink / raw)
  To: linux-iio, devicetree, linux-kernel; +Cc: jic23, Alexandru Ardelean

This change adds an entry for ADIS16490 in the list of compatible devices
defined in the dt-bindings of the adis16480 driver.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
---
 Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
index ed7783f45233..cd903a1d880d 100644
--- a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
+++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
@@ -8,6 +8,7 @@ Required properties for the ADIS16480:
 	* "adi,adis16480"
 	* "adi,adis16485"
 	* "adi,adis16488"
+	* "adi,adis16490"
 	* "adi,adis16495-1"
 	* "adi,adis16495-2"
 	* "adi,adis16495-3"
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] iio: imu: adis16480: Add support for ADIS16490
  2020-01-16 13:11 [PATCH 1/2] iio: imu: adis16480: Add support for ADIS16490 Alexandru Ardelean
  2020-01-16 13:11 ` [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry " Alexandru Ardelean
@ 2020-01-18 13:36 ` Jonathan Cameron
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2020-01-18 13:36 UTC (permalink / raw)
  To: Alexandru Ardelean; +Cc: linux-iio, devicetree, linux-kernel, Stefan Popa

On Thu, 16 Jan 2020 15:11:47 +0200
Alexandru Ardelean <alexandru.ardelean@analog.com> wrote:

> From: Stefan Popa <stefan.popa@analog.com>
> 
> The ADIS16490 is part of the same family with ADIS16495 and ADIS16497,
> the main difference is the temperature, accelerometer and gyroscope
> scales.
> 
> Datasheet:
> Link: https://www.analog.com/media/en/technical-documentation/data-sheets/adis16490.pdf
> 
> Signed-off-by: Stefan Popa <stefan.popa@analog.com>
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>

Applied to the togreg branch of iio.git. Initially pushed out as testing
to let the autobuilders have a quick poke at it.

Thanks,

Jonathan

> ---
>  drivers/iio/imu/adis16480.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/drivers/iio/imu/adis16480.c b/drivers/iio/imu/adis16480.c
> index f0ad7ce64861..dac87f1001fd 100644
> --- a/drivers/iio/imu/adis16480.c
> +++ b/drivers/iio/imu/adis16480.c
> @@ -787,6 +787,7 @@ enum adis16480_variant {
>  	ADIS16480,
>  	ADIS16485,
>  	ADIS16488,
> +	ADIS16490,
>  	ADIS16495_1,
>  	ADIS16495_2,
>  	ADIS16495_3,
> @@ -878,6 +879,20 @@ static const struct adis16480_chip_info adis16480_chip_info[] = {
>  		.filter_freqs = adis16480_def_filter_freqs,
>  		.timeouts = &adis16485_timeouts,
>  	},
> +	[ADIS16490] = {
> +		.channels = adis16485_channels,
> +		.num_channels = ARRAY_SIZE(adis16485_channels),
> +		.gyro_max_val = 20000 << 16,
> +		.gyro_max_scale = IIO_DEGREE_TO_RAD(100),
> +		.accel_max_val = IIO_M_S_2_TO_G(16000 << 16),
> +		.accel_max_scale = 8,
> +		.temp_scale = 14285, /* 14.285 milli degree Celsius */
> +		.int_clk = 4250000,
> +		.max_dec_rate = 4250,
> +		.filter_freqs = adis16495_def_filter_freqs,
> +		.has_pps_clk_mode = true,
> +		.timeouts = &adis16495_timeouts,
> +	},
>  	[ADIS16495_1] = {
>  		.channels = adis16485_channels,
>  		.num_channels = ARRAY_SIZE(adis16485_channels),
> @@ -1341,6 +1356,7 @@ static const struct spi_device_id adis16480_ids[] = {
>  	{ "adis16480", ADIS16480 },
>  	{ "adis16485", ADIS16485 },
>  	{ "adis16488", ADIS16488 },
> +	{ "adis16490", ADIS16490 },
>  	{ "adis16495-1", ADIS16495_1 },
>  	{ "adis16495-2", ADIS16495_2 },
>  	{ "adis16495-3", ADIS16495_3 },
> @@ -1356,6 +1372,7 @@ static const struct of_device_id adis16480_of_match[] = {
>  	{ .compatible = "adi,adis16480" },
>  	{ .compatible = "adi,adis16485" },
>  	{ .compatible = "adi,adis16488" },
> +	{ .compatible = "adi,adis16490" },
>  	{ .compatible = "adi,adis16495-1" },
>  	{ .compatible = "adi,adis16495-2" },
>  	{ .compatible = "adi,adis16495-3" },


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry for ADIS16490
  2020-01-16 13:11 ` [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry " Alexandru Ardelean
@ 2020-01-18 13:36   ` Jonathan Cameron
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2020-01-18 13:36 UTC (permalink / raw)
  To: Alexandru Ardelean; +Cc: linux-iio, devicetree, linux-kernel

On Thu, 16 Jan 2020 15:11:48 +0200
Alexandru Ardelean <alexandru.ardelean@analog.com> wrote:

> This change adds an entry for ADIS16490 in the list of compatible devices
> defined in the dt-bindings of the adis16480 driver.
> 
> Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Applied.

Thanks,

Jonathan

> ---
>  Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
> index ed7783f45233..cd903a1d880d 100644
> --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
> +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.txt
> @@ -8,6 +8,7 @@ Required properties for the ADIS16480:
>  	* "adi,adis16480"
>  	* "adi,adis16485"
>  	* "adi,adis16488"
> +	* "adi,adis16490"
>  	* "adi,adis16495-1"
>  	* "adi,adis16495-2"
>  	* "adi,adis16495-3"


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-18 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-16 13:11 [PATCH 1/2] iio: imu: adis16480: Add support for ADIS16490 Alexandru Ardelean
2020-01-16 13:11 ` [PATCH 2/2] dt-bindings: iio: adis16480: add compatible entry " Alexandru Ardelean
2020-01-18 13:36   ` Jonathan Cameron
2020-01-18 13:36 ` [PATCH 1/2] iio: imu: adis16480: Add support " Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).