From nobody Fri Apr 3 01:25:05 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47B0939B95F; Wed, 25 Mar 2026 11:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774437145; cv=none; b=oPzSEWLMshg8KT+fCBT6kllK6ccbhr0ZmSEHwgp9FK3i2BR/1frCEGt0xNlQn0j47MpGl8X9/xZt2TUw821XpiK9JzdJcb8+AKgVdCdyJOoh1hwk/G2FSGoYgf7HAVrcEyGCW7Cl07r+b17AU/Gn1mA9EmlMRJf0joaZkp9wtrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774437145; c=relaxed/simple; bh=bSDHsaGHbv8xbyoSQI54Vr+iBqKfp/cPWIMW4Qej6Sw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r0BmpCqCmX+/DCT5GTH7noZVkpNQvdZeMqzkQQVLXvYl8F5j5NPwx1H6uyKcHYVT3YP32mqj2X7v4vS8MgqOYbWvcZXZ8aMv/jsO9YOSGY+JobboGc6gJSx6QEjApCOEYZN4I+L+35SUauDaVX5gwj+eb1goNEKHBhhGwmrIZ4s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V3SLZzc/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V3SLZzc/" Received: by smtp.kernel.org (Postfix) with ESMTPS id EAAEDC2BC9E; Wed, 25 Mar 2026 11:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774437145; bh=bSDHsaGHbv8xbyoSQI54Vr+iBqKfp/cPWIMW4Qej6Sw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=V3SLZzc/b47Wui2OhVkjumis0K+QLdgFzYPfeSBQhpq1fOfCXKY517SfOXe4n1KYk oOLkAQ/CaGyzAQ7Rh511n6gCOBQfG9vwi+lrvK7WyKFdTwoqJxpk7yKiTHq3h3VTvK XCvaaq2LGtU/LzxvC66xmWYqiAqwtaVoMhbvhSMX2RwhbLI+urHcFDNYrrC8/NrYuQ 5mtWBgcLUuIbtS/92k0JaBpKQLBOSGmjNMpovpkS0lyGE7zFS+iqrf89siJhfJXscz ANXzyLuOLMZoYjHHnO8Gwi9o9aoqqDg2XzYxQiDqgQiJhLn4sCK70dplP0PMwsxqZG XgmCStF9X9zeA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D14D0103A9AA; Wed, 25 Mar 2026 11:12:24 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Wed, 25 Mar 2026 11:12:02 +0000 Subject: [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260325-adrf570x-iio-support-v1-1-9a2685eb2e55@analog.com> References: <20260325-adrf570x-iio-support-v1-0-9a2685eb2e55@analog.com> In-Reply-To: <20260325-adrf570x-iio-support-v1-0-9a2685eb2e55@analog.com> To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774437143; l=1134; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=yeOzs3WYQQtQrqWYQpKl8DQScANIz91jhYI5r9rZsLc=; b=A6KDXoVGnlGQLC6ZMFVDPsyPzUOrUgWkiFt6we4vL3Q9CI4frXqcEjluTP8LySqFCv85IBv8u oCJcBr4+BImB9lwkZ9TqabmMPp/v/SbZzJ5uomHpbT4BJelQKCyRbOe X-Developer-Key: i=rodrigo.alencar@analog.com; a=ed25519; pk=ULeHbgU/OYh/PG/4anHDfLgldFItQHAhOktYRVLMFRo= X-Endpoint-Received: by B4 Relay for rodrigo.alencar@analog.com/default with auth_id=561 X-Original-From: Rodrigo Alencar Reply-To: rodrigo.alencar@analog.com From: Rodrigo Alencar Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. Signed-off-by: Rodrigo Alencar Reviewed-by: Nuno S=C3=A1 --- Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.ya= ml b/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml index 2719de1166a1..065637ce33a5 100644 --- a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml @@ -20,6 +20,8 @@ properties: - adi,ad8366 - adi,ada4961 - adi,adl5240 + - adi,adrf5702 + - adi,adrf5703 - adi,adrf5720 - adi,adrf5730 - adi,adrf5731 @@ -66,6 +68,8 @@ allOf: anyOf: - const: adi,ad8366 - const: adi,ada4961 + - const: adi,adrf5702 + - const: adi,adrf5703 - const: adi,adrf5720 - const: adi,adrf5730 - const: adi,adrf5731 --=20 2.43.0 From nobody Fri Apr 3 01:25:05 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47A5016A956; Wed, 25 Mar 2026 11:12:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774437145; cv=none; b=PVOqAndpC7yISTObDt5ddIAGcMzWybNx5ULUj7r6PaqG08rsNuoNXaMMkODB3dHHoxlL5hrnRbzf9ipHCD4Ic9srpisr0a5pTOBwilHn+1WR64xkmJQoj9M85m4baJnzSzENmCDMK01M94cTm3M8vjh7y66etmI1TRkAC+FJKjY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774437145; c=relaxed/simple; bh=v1y5m4SGLtIgpA6R72CXUvsNNMHPFRUQdZtH3CuzF60=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pL9bYhyY/0Y3mcukyArgvS5E6L56LGElhsNffTXL251CM+YdyCRD6zKGm5cvdshrpzg6eSM8f4KXt1hPhloT9Y5MbD9sYMKO4Atv4TptXh3jdPd+cuC+/9zZ2r2KkIbP0qalgm3A+aV2bGg63PvYanlKrw+zT5nIK417eF264nI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p0ob1MNs; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p0ob1MNs" Received: by smtp.kernel.org (Postfix) with ESMTPS id F288CC2BCB0; Wed, 25 Mar 2026 11:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774437145; bh=v1y5m4SGLtIgpA6R72CXUvsNNMHPFRUQdZtH3CuzF60=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=p0ob1MNshvCefh2W0rwRDSn4lcR26R7SXo1G+mgHHMBCMDqWjbtQt1AIWh6S3Hyfp o0++lLG3s4u7PMUilLnVp2zplbqQZH+tppgf1Ocp9nwK8DZLofGQXfyyYZ3V0oa0yr qiTZqVMdqO4jzNVG+QP/OQ7XMdiCpga9L+lSduKS14Gd4T2bBUwQ+eH8i4Xo8J5gae q4gLVGsYgmyJbV6mllxo4RZ+eBzSFnAKiZ8OWIkw0qAeawiGzwxuV+qYpaw8HGlZlc n0/XhQ8T5tRaUOaYeJUs76uYlnje1d1gG8U8eEyu7fXT+X4pXihEMe2MtnFOkzJJKs GNWqvL1gbBZ+Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2EC7103A9AB; Wed, 25 Mar 2026 11:12:24 +0000 (UTC) From: Rodrigo Alencar via B4 Relay Date: Wed, 25 Mar 2026 11:12:03 +0000 Subject: [PATCH 2/2] iio: amplifiers: ad8366: add support for adrf5702/3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260325-adrf570x-iio-support-v1-2-9a2685eb2e55@analog.com> References: <20260325-adrf570x-iio-support-v1-0-9a2685eb2e55@analog.com> In-Reply-To: <20260325-adrf570x-iio-support-v1-0-9a2685eb2e55@analog.com> To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , David Lechner , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rodrigo Alencar X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774437143; l=3508; i=rodrigo.alencar@analog.com; s=default; h=from:subject:message-id; bh=AsNs5tyHtb0PShFN/SAT4QMGDo6HOT+KvogC5g2UCX8=; b=2+oY5DPNo4WEC+olLvftCchq99Nj6592+xVQpUbXn3yDSbD5KE4kh7b45GuQaUI6OWfOrcHzl yY9QCHxPnZ4BNXXGS9xpE4YBGEynpu22KBe9wVgDCN1gs0cKd3Wohum X-Developer-Key: i=rodrigo.alencar@analog.com; a=ed25519; pk=ULeHbgU/OYh/PG/4anHDfLgldFItQHAhOktYRVLMFRo= X-Endpoint-Received: by B4 Relay for rodrigo.alencar@analog.com/default with auth_id=561 X-Original-From: Rodrigo Alencar Reply-To: rodrigo.alencar@analog.com From: Rodrigo Alencar Add chip info structs and device table entries for ADRF5702 and ADRF5703 Digital Step Attenuators. Signed-off-by: Rodrigo Alencar Reviewed-by: Nuno S=C3=A1 --- drivers/iio/amplifiers/Kconfig | 2 ++ drivers/iio/amplifiers/ad8366.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/drivers/iio/amplifiers/Kconfig b/drivers/iio/amplifiers/Kconfig index 39d280d4d437..9e24421b5e97 100644 --- a/drivers/iio/amplifiers/Kconfig +++ b/drivers/iio/amplifiers/Kconfig @@ -18,6 +18,8 @@ config AD8366 AD8366 Dual-Digital Variable Gain Amplifier (VGA) ADA4961 BiCMOS RF Digital Gain Amplifier (DGA) ADL5240 Digitally controlled variable gain amplifier (VGA) + ADRF5702: 0.125 dB LSB, 8-Bit, Silicon Digital Attenuator + ADRF5703: 0.25 dB LSB, 7-Bit, Silicon Digital Attenuator ADRF5720: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator ADRF5730: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator ADRF5731: 2 dB LSB, 4-Bit, Silicon Digital Attenuator diff --git a/drivers/iio/amplifiers/ad8366.c b/drivers/iio/amplifiers/ad836= 6.c index 334ca91c0f59..bbf41a1fb3a1 100644 --- a/drivers/iio/amplifiers/ad8366.c +++ b/drivers/iio/amplifiers/ad8366.c @@ -5,6 +5,8 @@ * AD8366 Dual-Digital Variable Gain Amplifier (VGA) * ADA4961 BiCMOS RF Digital Gain Amplifier (DGA) * ADL5240 Digitally controlled variable gain amplifier (VGA) + * ADRF5702: 0.125 dB LSB, 8-Bit, Silicon Digital Attenuator, 50 MHz to = 20 GHz + * ADRF5703: 0.25 dB LSB, 7-Bit, Silicon Digital Attenuator, 9 kHz to 20= GHz * ADRF5720: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator, 9 kHz to 40 = GHz * ADRF5730: 0.5 dB LSB, 6-Bit, Silicon Digital Attenuator, 100 MHz to 4= 0 GHz * ADRF5731: 2 dB LSB, 4-Bit, Silicon Digital Attenuator, 100 MHz to 40 = GHz @@ -106,6 +108,22 @@ static const struct ad8366_info adl5240_chip_info =3D { .num_channels =3D 1, }; =20 +static const struct ad8366_info adrf5702_chip_info =3D { + .name =3D "adrf5702", + .gain_min =3D -31875, + .gain_max =3D 0, + .gain_step =3D -125, + .num_channels =3D 1, +}; + +static const struct ad8366_info adrf5703_chip_info =3D { + .name =3D "adrf5703", + .gain_min =3D -31750, + .gain_max =3D 0, + .gain_step =3D -250, + .num_channels =3D 1, +}; + static const struct ad8366_info adrf5720_chip_info =3D { .name =3D "adrf5720", .gain_min =3D -31500, @@ -337,6 +355,8 @@ static const struct spi_device_id ad8366_id[] =3D { { "ad8366", (kernel_ulong_t)&ad8366_chip_info }, { "ada4961", (kernel_ulong_t)&ada4961_chip_info }, { "adl5240", (kernel_ulong_t)&adl5240_chip_info }, + { "adrf5702", (kernel_ulong_t)&adrf5702_chip_info }, + { "adrf5703", (kernel_ulong_t)&adrf5703_chip_info }, { "adrf5720", (kernel_ulong_t)&adrf5720_chip_info }, { "adrf5730", (kernel_ulong_t)&adrf5730_chip_info }, { "adrf5731", (kernel_ulong_t)&adrf5731_chip_info }, @@ -353,6 +373,8 @@ static const struct of_device_id ad8366_of_match[] =3D { { .compatible =3D "adi,ad8366", .data =3D &ad8366_chip_info }, { .compatible =3D "adi,ada4961", .data =3D &ada4961_chip_info }, { .compatible =3D "adi,adl5240", .data =3D &adl5240_chip_info }, + { .compatible =3D "adi,adrf5702", .data =3D &adrf5702_chip_info }, + { .compatible =3D "adi,adrf5703", .data =3D &adrf5703_chip_info }, { .compatible =3D "adi,adrf5720", .data =3D &adrf5720_chip_info }, { .compatible =3D "adi,adrf5730", .data =3D &adrf5730_chip_info }, { .compatible =3D "adi,adrf5731", .data =3D &adrf5731_chip_info }, --=20 2.43.0