From: Jonathan Cameron <jic23@kernel.org>
To: Antoniu Miclaus <antoniu.miclaus@analog.com>
Cc: <robh@kernel.org>, <conor+dt@kernel.org>,
<linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>
Subject: Re: [PATCH 3/3] Documentation: ABI: adl8113: add documentation
Date: Sun, 2 Nov 2025 10:56:33 +0000 [thread overview]
Message-ID: <20251102105633.3036186f@jic23-huawei> (raw)
In-Reply-To: <20251031160405.13286-4-antoniu.miclaus@analog.com>
On Fri, 31 Oct 2025 16:04:05 +0000
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:
> Add ABI documentation for the ADL8113 Low Noise Amplifier,
> covering the 4 pin-selectable operating modes.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
> .../testing/sysfs-bus-iio-amplifiers-adl8113 | 32 +++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-amplifiers-adl8113
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio-amplifiers-adl8113 b/Documentation/ABI/testing/sysfs-bus-iio-amplifiers-adl8113
> new file mode 100644
> index 000000000000..6155b79e6b83
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-bus-iio-amplifiers-adl8113
> @@ -0,0 +1,32 @@
> +What: /sys/bus/iio/devices/iio:deviceX/mode
> +Date: January 2025
> +KernelVersion: 6.14
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + This attribute allows the user to set the operation mode of the
> + ADL8113 Low Noise Amplifier. The available modes control signal
> + routing through different paths within the device.
> +
> + The supported modes are:
> +
> + * internal_amplifier - Signal passes through the internal low
> + noise amplifier (VA=0, VB=0). Provides 14dB gain.
> +
> + * internal_bypass - Signal bypasses through internal bypass path
> + (VA=1, VB=1). Provides 0dB gain.
These first would map fine to standard ABI for gain control I think.
I'd prefer to see that used if possible than invention of new ABI for that.
> +
> + * external_bypass_a - Signal routes through external bypass path A
> + (VA=0, VB=1). Provides 0dB gain.
Problem with this an next one as I mention in binding is we have no idea what
is between those two external pins so no way to present a generic userspace interface.
Any idea if there is anything that is standard to wire in there? I could see for instance
nesting a similar amplifier to this one with different gain. Maybe we should have
a go at describing that. This device would be a consumer of channels provided by
another etc.
> +
> + * external_bypass_b - Signal routes through external bypass path B
> + (VA=1, VB=0). Provides 0dB gain.
> +
> +What: /sys/bus/iio/devices/iio:deviceX/mode_available
> +Date: January 2025
> +KernelVersion: 6.14
> +Contact: linux-iio@vger.kernel.org
> +Description:
> + Reading this attribute returns a space-separated list of all
> + available operation modes for the ADL8113 device. The modes
> + control the signal path and determine whether the signal passes
> + through the internal amplifier or various bypass paths.
prev parent reply other threads:[~2025-11-02 10:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 16:04 [PATCH 0/3] iio: amplifiers: add support for ADL8113 Low Noise Amplifier Antoniu Miclaus
2025-10-31 16:04 ` [PATCH 1/3] dt-bindings: iio: amplifiers: add adl8113 Antoniu Miclaus
2025-11-02 10:57 ` Jonathan Cameron
2025-11-04 17:37 ` Conor Dooley
2025-10-31 16:04 ` [PATCH 2/3] iio: amplifiers: adl8113: add driver support Antoniu Miclaus
2025-11-02 11:10 ` Jonathan Cameron
2025-10-31 16:04 ` [PATCH 3/3] Documentation: ABI: adl8113: add documentation Antoniu Miclaus
2025-11-02 10:56 ` Jonathan Cameron [this message]
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=20251102105633.3036186f@jic23-huawei \
--to=jic23@kernel.org \
--cc=antoniu.miclaus@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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