From: Conor Dooley <conor@kernel.org>
To: Olivier Louvignes <olivier@mgcrea.io>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Paul Cercueil" <paul@crapouillou.net>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add the Ingenic X1600 ADC
Date: Tue, 27 Oct 2026 17:47:38 +0000 [thread overview]
Message-ID: <20261027-crunching-outsmart-deb81d2c4d6c@spud> (raw)
In-Reply-To: <20261023204209.48556-1-olivier@mgcrea.io>
[-- Attachment #1: Type: text/plain, Size: 2631 bytes --]
On Fri, Oct 23, 2026 at 10:42:08PM +0200, Olivier Louvignes wrote:
> The X1600's SAR ADC has four auxiliary channels and none of the
> touchscreen or battery engines of the JZ47xx ADCs in
> ingenic,adc.yaml, so it gets a binding of its own.
>
> Signed-off-by: Olivier Louvignes <olivier@mgcrea.io>
> ---
> .../bindings/iio/adc/ingenic,x1600-adc.yaml | 60 +++++++++++++++++++
> 1 file changed, 60 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/ingenic,x1600-adc.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/ingenic,x1600-adc.yaml b/Documentation/devicetree/bindings/iio/adc/ingenic,x1600-adc.yaml
> new file mode 100644
> index 000000000000..7886836b10c6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/ingenic,x1600-adc.yaml
> @@ -0,0 +1,60 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/ingenic,x1600-adc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Ingenic X1600 ADC
> +
> +maintainers:
> + - Olivier Louvignes <olivier@mgcrea.io>
> +
> +description:
> + The SAR ADC of the Ingenic X1600 SoC, with four auxiliary input channels
> + measured against a 3.3 V reference. Its clients select a channel by index
> + through "io-channels".
> +
> +properties:
> + compatible:
> + const: ingenic,x1600-adc
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + maxItems: 1
> +
> + clock-names:
> + items:
> + - const: adc
This clock name is pointless, but also probably wrong? The name of a
clock should be the name of the port/function in the device being
documented, not the name of the clock at the provider.
But it's not useful when you only have one clock, just like you do not
have reg-names or interrupt-names.
Otherwise, this looks fine.
pw-bot: changes-requested
Thanks,
Conor.
> +
> + interrupts:
> + maxItems: 1
> +
> + '#io-channel-cells':
> + const: 1
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - interrupts
> + - '#io-channel-cells'
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + adc@10070000 {
> + compatible = "ingenic,x1600-adc";
> + reg = <0x10070000 0x30>;
> +
> + clocks = <&cgu 28>;
> + clock-names = "adc";
> +
> + interrupt-parent = <&intc>;
> + interrupts = <11>;
> +
> + #io-channel-cells = <1>;
> + };
>
> base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68
> --
> 2.39.5
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2026-10-27 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-23 20:42 Olivier Louvignes
2026-10-23 20:42 ` [PATCH 2/2] iio: adc: Add a driver for " Olivier Louvignes
2026-10-24 1:44 ` Jonathan Cameron
2026-10-24 17:17 ` [PATCH 1/2] dt-bindings: iio: adc: Add " H. Nikolaus Schaller
2026-10-27 17:47 ` Conor Dooley [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=20261027-crunching-outsmart-deb81d2c4d6c@spud \
--to=conor@kernel.org \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=olivier@mgcrea.io \
--cc=paul@crapouillou.net \
--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
all inboxes | Powered by JetHome®