[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250907121911.7c2fa1cb@jic23-huawei>
Date: Sun, 7 Sep 2025 12:19:11 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Matti Vaittinen <mazziesaccount@...il.com>
Cc: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>, David Lechner
<dlechner@...libre.com>, Nuno Sá <nuno.sa@...log.com>, Andy
Shevchenko <andy@...nel.org>, Rob Herring <robh@...nel.org>, Krzysztof
Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>, Linus
Walleij <linus.walleij@...aro.org>, Bartosz Golaszewski <brgl@...ev.pl>,
Marcelo Schmitt <marcelo.schmitt@...log.com>, Javier Carrasco
<javier.carrasco.cruz@...il.com>, Tobias Sperling
<tobias.sperling@...ting.com>, Antoniu Miclaus
<antoniu.miclaus@...log.com>, Trevor Gamblin <tgamblin@...libre.com>,
Esteban Blanc <eblanc@...libre.com>, Ramona Alexandra Nechita
<ramona.nechita@...log.com>, Hans de Goede <hansg@...nel.org>, Herve Codina
<herve.codina@...tlin.com>, Alisa-Dariana Roman <alisadariana@...il.com>,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org
Subject: Re: [PATCH v3 1/3] dt-bindings: iio: adc: ROHM BD79112 ADC/GPIO
On Fri, 5 Sep 2025 09:42:18 +0300
Matti Vaittinen <mazziesaccount@...il.com> wrote:
> The ROHM BD79112 is an ADC/GPIO with 32 channels. The channel inputs can
> be used as ADC or GPIO. Using the GPIOs as IRQ sources isn't supported.
>
> The ADC is 12-bit, supporting input voltages up to 5.7V, and separate I/O
> voltage supply. Maximum SPI clock rate is 20 MHz (10 MHz with
> daisy-chain configuration) and maximum sampling rate is 1MSPS.
>
> Add a device tree binding document for the ROHM BD79112.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@...il.com>
> Acked-by: Conor Dooley <conor.dooley@...rochip.com>
Trivial comment below. If everything else is good on this version
it isn't worth a respin.
> +examples:
> + - |
> + spi {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + adc: adc@0 {
> + compatible = "rohm,bd79112";
> + reg = <0x0>;
> +
> + spi-cpha;
> + spi-cpol;
> +
> + vdd-supply = <&dummyreg>;
> + iovdd-supply = <&dummyreg>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + gpio-controller;
> + #gpio-cells = <2>;
> +
> + channel@0 {
> + reg = <0>;
> + };
> + channel@1 {
> + reg = <1>;
> + };
> + channel@2 {
> + reg = <2>;
> + };
> + channel@3 {
> + reg = <3>;
Trivial point but I get bored scrolling.
Would a smaller set of channels allow you to provide same level
of testing / documentation?
> + };
> + channel@4 {
> + reg = <4>;
> + };
> + channel@5 {
> + reg = <5>;
> + };
> + channel@6 {
> + reg = <6>;
> + };
> + channel@16 {
> + reg = <16>;
> + };
> + channel@20 {
> + reg = <20>;
> + };
> + };
> + };
Powered by blists - more mailing lists