* [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support
@ 2026-03-25 11:12 Rodrigo Alencar via B4 Relay
2026-03-25 11:12 ` [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Rodrigo Alencar via B4 Relay
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Rodrigo Alencar via B4 Relay @ 2026-03-25 11:12 UTC (permalink / raw)
To: linux-iio, devicetree, linux-kernel
Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron,
David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Rodrigo Alencar
This is a small patch series that adds support for two extra attenuators.
Basically, new chip info and device table entries are added into the
AD8366 IIO driver.
Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
---
Rodrigo Alencar (2):
dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support
iio: amplifiers: ad8366: add support for adrf5702/3
.../bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++
drivers/iio/amplifiers/Kconfig | 2 ++
drivers/iio/amplifiers/ad8366.c | 22 ++++++++++++++++++++++
3 files changed, 28 insertions(+)
---
base-commit: af980a79bfed43c4a0be12cca786be46f1a0c5e8
change-id: 20260325-adrf570x-iio-support-e199418fba40
Best regards,
--
Rodrigo Alencar <rodrigo.alencar@analog.com>
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support 2026-03-25 11:12 [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Rodrigo Alencar via B4 Relay @ 2026-03-25 11:12 ` Rodrigo Alencar via B4 Relay 2026-03-25 12:46 ` Jonathan Cameron 2026-03-25 11:12 ` [PATCH 2/2] iio: amplifiers: ad8366: add support for adrf5702/3 Rodrigo Alencar via B4 Relay 2026-03-25 12:28 ` [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Nuno Sá 2 siblings, 1 reply; 8+ messages in thread From: Rodrigo Alencar via B4 Relay @ 2026-03-25 11:12 UTC (permalink / raw) To: linux-iio, devicetree, linux-kernel Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Rodrigo Alencar From: Rodrigo Alencar <rodrigo.alencar@analog.com> Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> --- Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml 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 -- 2.43.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support 2026-03-25 11:12 ` [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Rodrigo Alencar via B4 Relay @ 2026-03-25 12:46 ` Jonathan Cameron 2026-03-25 18:13 ` Conor Dooley 0 siblings, 1 reply; 8+ messages in thread From: Jonathan Cameron @ 2026-03-25 12:46 UTC (permalink / raw) To: Rodrigo Alencar via B4 Relay Cc: rodrigo.alencar, linux-iio, devicetree, linux-kernel, Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley On Wed, 25 Mar 2026 11:12:02 +0000 Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@kernel.org> wrote: > From: Rodrigo Alencar <rodrigo.alencar@analog.com> > > Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. Explain how they are different from the existing supported devices. Something simple like the "Each device has its own gain range and step, hence no fallback compatibles are used." that you had in the original patch is what we need here. > > Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> > --- > Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml 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 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support 2026-03-25 12:46 ` Jonathan Cameron @ 2026-03-25 18:13 ` Conor Dooley 2026-03-25 19:19 ` Jonathan Cameron 0 siblings, 1 reply; 8+ messages in thread From: Conor Dooley @ 2026-03-25 18:13 UTC (permalink / raw) To: Jonathan Cameron Cc: Rodrigo Alencar via B4 Relay, rodrigo.alencar, linux-iio, devicetree, linux-kernel, Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley [-- Attachment #1: Type: text/plain, Size: 1888 bytes --] On Wed, Mar 25, 2026 at 12:46:27PM +0000, Jonathan Cameron wrote: > On Wed, 25 Mar 2026 11:12:02 +0000 > Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@kernel.org> wrote: > > > From: Rodrigo Alencar <rodrigo.alencar@analog.com> > > > > Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. > > Explain how they are different from the existing supported devices. > > Something simple like the "Each device has its own gain range and step, > hence no fallback compatibles are used." that you had in the original patch > is what we need here. Which means that this is a v2 that doesn't say it is a v2, or explain what has changed? > > > > > Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> > > --- > > Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml 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 > > > pw-bot: changes-requested [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support 2026-03-25 18:13 ` Conor Dooley @ 2026-03-25 19:19 ` Jonathan Cameron 2026-03-26 17:46 ` Conor Dooley 0 siblings, 1 reply; 8+ messages in thread From: Jonathan Cameron @ 2026-03-25 19:19 UTC (permalink / raw) To: Conor Dooley Cc: Jonathan Cameron, Rodrigo Alencar via B4 Relay, rodrigo.alencar, linux-iio, devicetree, linux-kernel, Lars-Peter Clausen, Michael Hennerich, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley On Wed, 25 Mar 2026 18:13:45 +0000 Conor Dooley <conor@kernel.org> wrote: > On Wed, Mar 25, 2026 at 12:46:27PM +0000, Jonathan Cameron wrote: > > On Wed, 25 Mar 2026 11:12:02 +0000 > > Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@kernel.org> wrote: > > > > > From: Rodrigo Alencar <rodrigo.alencar@analog.com> > > > > > > Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. > > > > Explain how they are different from the existing supported devices. > > > > Something simple like the "Each device has its own gain range and step, > > hence no fallback compatibles are used." that you had in the original patch > > is what we need here. > > Which means that this is a v2 that doesn't say it is a v2, or explain > what has changed? I meant the original driver - which only landed recently and answered the question of difference nicely. This is adding more parts to that - but I believe is a v1. J > > > > > > > > > Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> > > > --- > > > Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ad8366.yaml 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 > > > > > > > pw-bot: changes-requested ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support 2026-03-25 19:19 ` Jonathan Cameron @ 2026-03-26 17:46 ` Conor Dooley 0 siblings, 0 replies; 8+ messages in thread From: Conor Dooley @ 2026-03-26 17:46 UTC (permalink / raw) To: Jonathan Cameron Cc: Jonathan Cameron, Rodrigo Alencar via B4 Relay, rodrigo.alencar, linux-iio, devicetree, linux-kernel, Lars-Peter Clausen, Michael Hennerich, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley [-- Attachment #1: Type: text/plain, Size: 1053 bytes --] On Wed, Mar 25, 2026 at 07:19:53PM +0000, Jonathan Cameron wrote: > On Wed, 25 Mar 2026 18:13:45 +0000 > Conor Dooley <conor@kernel.org> wrote: > > > On Wed, Mar 25, 2026 at 12:46:27PM +0000, Jonathan Cameron wrote: > > > On Wed, 25 Mar 2026 11:12:02 +0000 > > > Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@kernel.org> wrote: > > > > > > > From: Rodrigo Alencar <rodrigo.alencar@analog.com> > > > > > > > > Add compatible entries for ADRF5702 and ADRF5703 Digital Attenuators. > > > > > > Explain how they are different from the existing supported devices. > > > > > > Something simple like the "Each device has its own gain range and step, > > > hence no fallback compatibles are used." that you had in the original patch > > > is what we need here. > > > > Which means that this is a v2 that doesn't say it is a v2, or explain > > what has changed? > > I meant the original driver - which only landed recently and answered > the question of difference nicely. Ah I see. Wording confused me! [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] iio: amplifiers: ad8366: add support for adrf5702/3 2026-03-25 11:12 [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Rodrigo Alencar via B4 Relay 2026-03-25 11:12 ` [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Rodrigo Alencar via B4 Relay @ 2026-03-25 11:12 ` Rodrigo Alencar via B4 Relay 2026-03-25 12:28 ` [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Nuno Sá 2 siblings, 0 replies; 8+ messages in thread From: Rodrigo Alencar via B4 Relay @ 2026-03-25 11:12 UTC (permalink / raw) To: linux-iio, devicetree, linux-kernel Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Rodrigo Alencar From: Rodrigo Alencar <rodrigo.alencar@analog.com> Add chip info structs and device table entries for ADRF5702 and ADRF5703 Digital Step Attenuators. Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> --- 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/ad8366.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 40 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 = { .num_channels = 1, }; +static const struct ad8366_info adrf5702_chip_info = { + .name = "adrf5702", + .gain_min = -31875, + .gain_max = 0, + .gain_step = -125, + .num_channels = 1, +}; + +static const struct ad8366_info adrf5703_chip_info = { + .name = "adrf5703", + .gain_min = -31750, + .gain_max = 0, + .gain_step = -250, + .num_channels = 1, +}; + static const struct ad8366_info adrf5720_chip_info = { .name = "adrf5720", .gain_min = -31500, @@ -337,6 +355,8 @@ static const struct spi_device_id ad8366_id[] = { { "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[] = { { .compatible = "adi,ad8366", .data = &ad8366_chip_info }, { .compatible = "adi,ada4961", .data = &ada4961_chip_info }, { .compatible = "adi,adl5240", .data = &adl5240_chip_info }, + { .compatible = "adi,adrf5702", .data = &adrf5702_chip_info }, + { .compatible = "adi,adrf5703", .data = &adrf5703_chip_info }, { .compatible = "adi,adrf5720", .data = &adrf5720_chip_info }, { .compatible = "adi,adrf5730", .data = &adrf5730_chip_info }, { .compatible = "adi,adrf5731", .data = &adrf5731_chip_info }, -- 2.43.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support 2026-03-25 11:12 [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Rodrigo Alencar via B4 Relay 2026-03-25 11:12 ` [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Rodrigo Alencar via B4 Relay 2026-03-25 11:12 ` [PATCH 2/2] iio: amplifiers: ad8366: add support for adrf5702/3 Rodrigo Alencar via B4 Relay @ 2026-03-25 12:28 ` Nuno Sá 2 siblings, 0 replies; 8+ messages in thread From: Nuno Sá @ 2026-03-25 12:28 UTC (permalink / raw) To: rodrigo.alencar, linux-iio, devicetree, linux-kernel Cc: Lars-Peter Clausen, Michael Hennerich, Jonathan Cameron, David Lechner, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski, Conor Dooley On Wed, 2026-03-25 at 11:12 +0000, Rodrigo Alencar via B4 Relay wrote: > This is a small patch series that adds support for two extra attenuators. > Basically, new chip info and device table entries are added into the > AD8366 IIO driver. > > Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com> > --- > Rodrigo Alencar (2): > dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support > iio: amplifiers: ad8366: add support for adrf5702/3 > > .../bindings/iio/amplifiers/adi,ad8366.yaml | 4 ++++ > drivers/iio/amplifiers/Kconfig | 2 ++ > drivers/iio/amplifiers/ad8366.c | 22 ++++++++++++++++++++++ > 3 files changed, 28 insertions(+) > --- > base-commit: af980a79bfed43c4a0be12cca786be46f1a0c5e8 > change-id: 20260325-adrf570x-iio-support-e199418fba40 > > Best regards, Reviewed-by: Nuno Sá <nuno.sa@analog.com> ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-03-26 17:46 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-03-25 11:12 [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Rodrigo Alencar via B4 Relay 2026-03-25 11:12 ` [PATCH 1/2] dt-bindings: iio: amplifiers: ad8366: add adrf5702/3 support Rodrigo Alencar via B4 Relay 2026-03-25 12:46 ` Jonathan Cameron 2026-03-25 18:13 ` Conor Dooley 2026-03-25 19:19 ` Jonathan Cameron 2026-03-26 17:46 ` Conor Dooley 2026-03-25 11:12 ` [PATCH 2/2] iio: amplifiers: ad8366: add support for adrf5702/3 Rodrigo Alencar via B4 Relay 2026-03-25 12:28 ` [PATCH 0/2] ADRF5702/ADRF5703 Digital Attenuator support Nuno Sá
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox