From: "Nuno Sá" <noname.nuno@gmail.com>
To: Ramona Gradinariu <ramona.bolboaca13@gmail.com>,
linux-kernel@vger.kernel.org, jic23@kernel.org,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
robh@kernel.org, nuno.sa@analog.com
Subject: Re: [PATCH v4 02/10] drivers: iio: imu: Add support for ADIS16501
Date: Fri, 24 May 2024 12:58:30 +0200 [thread overview]
Message-ID: <31a428855b7094030ba506d8638d8d830f6e01d5.camel@gmail.com> (raw)
In-Reply-To: <20240524090030.336427-3-ramona.bolboaca13@gmail.com>
On Fri, 2024-05-24 at 12:00 +0300, Ramona Gradinariu wrote:
> Add support for ADIS16501 device in already existing ADIS16475
> driver.
>
> Signed-off-by: Ramona Gradinariu <ramona.bolboaca13@gmail.com>
> ---
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
> no changes in v4
> drivers/iio/imu/Kconfig | 4 ++--
> drivers/iio/imu/adis16475.c | 23 +++++++++++++++++++++++
> 2 files changed, 25 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/Kconfig b/drivers/iio/imu/Kconfig
> index 52a155ff3250..782fb80e44c2 100644
> --- a/drivers/iio/imu/Kconfig
> +++ b/drivers/iio/imu/Kconfig
> @@ -36,8 +36,8 @@ config ADIS16475
> select IIO_ADIS_LIB_BUFFER if IIO_BUFFER
> help
> Say yes here to build support for Analog Devices ADIS16470, ADIS16475,
> - ADIS16477, ADIS16465, ADIS16467, ADIS16500, ADIS16505, ADIS16507
> inertial
> - sensors.
> + ADIS16477, ADIS16465, ADIS16467, ADIS16500, ADIS16501, ADIS16505,
> + ADIS16507 inertial sensors.
>
> To compile this driver as a module, choose M here: the module will be
> called adis16475.
> diff --git a/drivers/iio/imu/adis16475.c b/drivers/iio/imu/adis16475.c
> index 01f55cc902fa..53872b716f4a 100644
> --- a/drivers/iio/imu/adis16475.c
> +++ b/drivers/iio/imu/adis16475.c
> @@ -661,6 +661,7 @@ enum adis16475_variant {
> ADIS16467_2,
> ADIS16467_3,
> ADIS16500,
> + ADIS16501,
> ADIS16505_1,
> ADIS16505_2,
> ADIS16505_3,
> @@ -980,6 +981,25 @@ static const struct adis16475_chip_info adis16475_chip_info[]
> = {
> .flags = ADIS16475_HAS_BURST32 | ADIS16475_HAS_BURST_DELTA_DATA,
> .adis_data = ADIS16475_DATA(16500, &adis1650x_timeouts),
> },
> + [ADIS16501] = {
> + .name = "adis16501",
> + .num_channels = ARRAY_SIZE(adis16477_channels),
> + .channels = adis16477_channels,
> + .gyro_max_val = 1,
> + .gyro_max_scale = IIO_RAD_TO_DEGREE(40 << 16),
> + .accel_max_val = 1,
> + .accel_max_scale = IIO_M_S_2_TO_G(800 << 16),
> + .temp_scale = 100,
> + .deltang_max_val = IIO_DEGREE_TO_RAD(720),
> + .deltvel_max_val = 125,
> + .int_clk = 2000,
> + .max_dec = 1999,
> + .sync = adis16475_sync_mode,
> + /* pulse sync not supported */
> + .num_sync = ARRAY_SIZE(adis16475_sync_mode) - 1,
> + .flags = ADIS16475_HAS_BURST32 | ADIS16475_HAS_BURST_DELTA_DATA,
> + .adis_data = ADIS16475_DATA(16501, &adis1650x_timeouts),
> + },
> [ADIS16505_1] = {
> .name = "adis16505-1",
> .num_channels = ARRAY_SIZE(adis16477_channels),
> @@ -1482,6 +1502,8 @@ static const struct of_device_id adis16475_of_match[] = {
> .data = &adis16475_chip_info[ADIS16467_3] },
> { .compatible = "adi,adis16500",
> .data = &adis16475_chip_info[ADIS16500] },
> + { .compatible = "adi,adis16501",
> + .data = &adis16475_chip_info[ADIS16501] },
> { .compatible = "adi,adis16505-1",
> .data = &adis16475_chip_info[ADIS16505_1] },
> { .compatible = "adi,adis16505-2",
> @@ -1513,6 +1535,7 @@ static const struct spi_device_id adis16475_ids[] = {
> { "adis16467-2", (kernel_ulong_t)&adis16475_chip_info[ADIS16467_2] },
> { "adis16467-3", (kernel_ulong_t)&adis16475_chip_info[ADIS16467_3] },
> { "adis16500", (kernel_ulong_t)&adis16475_chip_info[ADIS16500] },
> + { "adis16501", (kernel_ulong_t)&adis16475_chip_info[ADIS16501] },
> { "adis16505-1", (kernel_ulong_t)&adis16475_chip_info[ADIS16505_1] },
> { "adis16505-2", (kernel_ulong_t)&adis16475_chip_info[ADIS16505_2] },
> { "adis16505-3", (kernel_ulong_t)&adis16475_chip_info[ADIS16505_3] },
> --
> 2.34.1
>
next prev parent reply other threads:[~2024-05-24 10:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-24 9:00 [PATCH v4 00/10] adis16501 and adis1657x support Ramona Gradinariu
2024-05-24 9:00 ` [PATCH v4 01/10] dt-bindings: iio: imu: Add ADIS16501 compatibles Ramona Gradinariu
2024-05-24 9:00 ` [PATCH v4 02/10] drivers: iio: imu: Add support for ADIS16501 Ramona Gradinariu
2024-05-24 10:58 ` Nuno Sá [this message]
2024-05-24 9:00 ` [PATCH v4 03/10] iio: imu: adis16475: Re-define ADIS16475_DATA Ramona Gradinariu
2024-05-24 9:00 ` [PATCH v4 04/10] iio: imu: adis_buffer: Add buffer setup API with buffer attributes Ramona Gradinariu
2024-05-24 10:58 ` Nuno Sá
2024-05-26 12:38 ` Jonathan Cameron
2024-05-24 9:00 ` [PATCH v4 05/10] iio: imu: adis16475: Create push single sample API Ramona Gradinariu
2024-05-24 10:58 ` Nuno Sá
2024-05-24 9:00 ` [PATCH v4 06/10] drivers: iio: imu: adis16475: generic computation for sample rate Ramona Gradinariu
2024-05-24 10:59 ` Nuno Sá
2024-05-24 9:00 ` [PATCH v4 07/10] iio: imu: adis_trigger: Allow level interrupts for FIFO readings Ramona Gradinariu
2024-05-24 10:59 ` Nuno Sá
2024-05-24 9:00 ` [PATCH v4 08/10] iio: imu: adis16475: Re-define ADIS16475_DATA Ramona Gradinariu
2024-05-24 10:47 ` Nuno Sá
2024-05-26 12:43 ` Jonathan Cameron
2024-05-24 9:00 ` [PATCH v4 09/10] dt-bindings: iio: imu: Add ADIS1657X family devices compatibles Ramona Gradinariu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=31a428855b7094030ba506d8638d8d830f6e01d5.camel@gmail.com \
--to=noname.nuno@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=ramona.bolboaca13@gmail.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox