iio: amplifiers: add support for ADL8113 Low Noise Amplifier
Antoniu Miclaus
maintainerv7 cover iio: amplifiers: add support for ADL8113 Low Noise Amplifier
This patch series adds support for the Analog Devices ADL8113, a 10MHz to 12GHz Low Noise Amplifier with integrated bypass switches.
The ADL8113 provides four operation modes controlled by two GPIO pins:
- Internal Amplifier (14dB gain)
- Internal Bypass (-2dB insertion loss)
- External Bypass A (configurable gain) - Signal routes from RFIN to OUT_A and from IN_A to RFOUT
- External Bypass B (configurable gain) - Signal routes from RFIN to OUT_B and from IN_B to RFOUT
The driver allows selecting between these paths via the IIO hardwaregain attribute, with optional external amplifier gains configured through device tree properties.
Antoniu Miclaus (2):
dt-bindings: iio: amplifiers: add adl8113
iio: amplifiers: adl8113: add driver support
.../bindings/iio/amplifiers/adi,adl8113.yaml | 87 ++++++ drivers/iio/amplifiers/Kconfig | 12 + drivers/iio/amplifiers/Makefile | 1 + drivers/iio/amplifiers/adl8113.c | 269 ++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,adl8113.yaml create mode 100644 drivers/iio/amplifiers/adl8113.c
Signature · 1 line
2.43.0
Antoniu Miclaus
maintainerPATCH v7 1/2 dt-bindings: iio: amplifiers: add adl8113
Add devicetree bindings for the ADL8113 Low Noise Amplifier.
The bindings include support for specifying gain values of external amplifiers connected to the two external bypass paths (A and B). These optional properties allow the gain values to be selectable via the hardwaregain attribute, enabling complete devicetree description of the signal chain including external components.
---
changes in v7:
- Enhanced commit message to describe the external bypass gains feature
.../bindings/iio/amplifiers/adi,adl8113.yaml | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,adl8113.yaml
Documentation/devicetree/bindings/iio/amplifiers/adi,adl8113.yaml new file +87 -0
@@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/amplifiers/adi,adl8113.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADL8113 Low Noise Amplifier with integrated bypass switches + +maintainers: + - Antoniu Miclaus <[email protected]> + +description: | + The ADL8113 is a 10MHz to 12GHz Low Noise Amplifier with integrated bypass + switches controlled by two GPIO pins (VA and VB). The device supports four + operation modes: + - Internal Amplifier: VA=0, VB=0 - Signal passes through the internal LNA + - Internal Bypass: VA=1, VB=1 - Signal bypasses through internal path + - External Bypass A: VA=0, VB=1 - Signal routes from RFIN to OUT_A and from IN_A to RFOUT + - External Bypass B: VA=1, VB=0 - Signal routes from RFIN to OUT_B and from IN_B to RFOUT + + https://www.analog.com/en/products/adl8113.html + +properties: + compatible: + const: adi,adl8113 + + vdd1-supply: true + + vdd2-supply: true + + vss2-supply: true + + ctrl-gpios: + items: + - description: VA control pin + - description: VB control pin + + adi,external-bypass-a-gain-db: + description: + Gain in dB of external amplifier connected to bypass path A (OUT_A/IN_A). + When specified, this gain value becomes selectable via the hardwaregain + attribute and automatically routes through the external A path. + + adi,external-bypass-b-gain-db: + description: + Gain in dB of external amplifier connected to bypass path B (OUT_B/IN_B). + When specified, this gain value becomes selectable via the hardwaregain + attribute and automatically routes through the external B path. + +required: + - compatible + - ctrl-gpios + - vdd1-supply + - vdd2-supply + - vss2-supply + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + /* Basic configuration with only internal paths */ + amplifier { + compatible = "adi,adl8113"; + ctrl-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>, + <&gpio 23 GPIO_ACTIVE_HIGH>; + vdd1-supply = <&vdd1_5v>; + vdd2-supply = <&vdd2_3v3>; + vss2-supply = <&vss2_neg>; + }; + + - | + #include <dt-bindings/gpio/gpio.h> + + /* Configuration with external bypass amplifiers */ + amplifier { + compatible = "adi,adl8113"; + ctrl-gpios = <&gpio 24 GPIO_ACTIVE_HIGH>, + <&gpio 25 GPIO_ACTIVE_HIGH>; + vdd1-supply = <&vdd1_5v>; + vdd2-supply = <&vdd2_3v3>; + vss2-supply = <&vss2_neg>; + adi,external-bypass-a-gain-db = <20>; /* 20dB external amp on path A */ + adi,external-bypass-b-gain-db = <6>; /* 6dB external amp on path B */ + }; +...
Signature · 1 line
2.43.0
Antoniu Miclaus
maintainerPATCH v7 2/2 iio: amplifiers: adl8113: add driver support
In reply to Antoniu MiclausAdd support for adl8113 10MHz to 12GHz Low Noise Amplifier with 10MHz to 14GHz bypass switches.
---
changes in v7:
- Removed includes: limits.h, device.h, slab.h, sysfs.h
- Added includes: bitmap.h, types.h, dev_printk.h, device/driver.h
- Removed unused va and vb struct fields
- Added trailing comma to supply names array
- Changed num_gain_configs to unsigned int
- Replaced bitmap operations with bitmap_write()
- Enhanced comment showing bit mapping
- Changed loop counters to unsigned int
- Used compound literals for struct initialization
- Fixed devm_kcalloc() line wrapping
- Removed INT_MIN testing code
- Removed duplicate gain validation
- Fixed format specifier to %u for ndescs
- Removed redundant blank line
drivers/iio/amplifiers/Kconfig | 12 ++ drivers/iio/amplifiers/Makefile | 1 + drivers/iio/amplifiers/adl8113.c | 269 +++++++++++++++++++++++++++++++ 3 files changed, 282 insertions(+) create mode 100644 drivers/iio/amplifiers/adl8113.c
drivers/iio/amplifiers/Kconfig +12 -0
@@ -36,6 +36,18 @@ config ADA4250 To compile this driver as a module, choose M here: the module will be called ada4250. +config ADL8113 + tristate "Analog Devices ADL8113 Low Noise Amplifier" + depends on GPIOLIB + help + Say yes here to build support for Analog Devices ADL8113 Low Noise + Amplifier with integrated bypass switches. The device supports four + operation modes controlled by GPIO pins: internal amplifier, + internal bypass, and two external bypass modes. + + To compile this driver as a module, choose M here: the + module will be called adl8113. + config HMC425 tristate "Analog Devices HMC425A and similar GPIO Gain Amplifiers" depends on GPIOLIB
drivers/iio/amplifiers/Makefile +1 -0
@@ -6,4 +6,5 @@ # When adding new entries keep the list in alphabetical order obj-$(CONFIG_AD8366) += ad8366.o obj-$(CONFIG_ADA4250) += ada4250.o +obj-$(CONFIG_ADL8113) += adl8113.o obj-$(CONFIG_HMC425) += hmc425a.o
drivers/iio/amplifiers/adl8113.c new file +269 -0
269 lines not on this page · raw message
Signature · 1 line
2.43.0
Jonathan Cameron
maintainerQuoted 8 lines · On Fri, 12 Dec 2025 17:38:24 +0200 Antoniu Miclaus…
This patch series adds support for the Analog Devices ADL8113, a 10MHz to 12GHz Low Noise Amplifier with integrated bypass switches.
The ADL8113 provides four operation modes controlled by two GPIO pins:
- Internal Amplifier (14dB gain)
- Internal Bypass (-2dB insertion loss)
- External Bypass A (configurable gain) - Signal routes from RFIN toOUT_Aand fromIN_Ato RFOUT
- External Bypass B (configurable gain) - Signal routes from RFIN toOUT_Band fromIN_Bto RFOUT
Applied to the testing branch of iio.git.
Thanks,
Jonathan
Quoted 16 lines
The driver allows selecting between these paths via the IIO hardwaregain attribute, with optional external amplifier gains configured through device tree properties.
Antoniu Miclaus (2):
dt-bindings: iio: amplifiers: add adl8113
iio: amplifiers: adl8113: add driver support.../bindings/iio/amplifiers/adi,adl8113.yaml | 87 ++++++ drivers/iio/amplifiers/Kconfig | 12 + drivers/iio/amplifiers/Makefile | 1 + drivers/iio/amplifiers/adl8113.c | 269 ++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/amplifiers/adi,adl8113.yaml create mode 100644 drivers/iio/amplifiers/adl8113.c