From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Conor Dooley <conor@kernel.org>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: Add ROHM BD79100G
Date: Wed, 14 May 2025 08:36:25 +0300 [thread overview]
Message-ID: <5c721d80-70e1-4cdc-974d-2007bbddfeb3@gmail.com> (raw)
In-Reply-To: <20250513-coconut-reconfirm-b90590efeb45@spud>
On 13/05/2025 17:39, Conor Dooley wrote:
> On Tue, May 13, 2025 at 11:26:27AM +0300, Matti Vaittinen wrote:
>> The ROHM BD79100G is a 12-bit ADC which can be read over SPI. Device has
>> no MOSI pin. ADC results can be read from MISO by clocking in 16 bits.
>> The 4 leading bits will be zero, last 12 containig the data.
>
> I think it is probably worth mentioning why a rohm device is going into
> this binding (clone?) and that the 12-bit thing is a differentiator that
> is why you're not using a fallback.
Thanks for mentioning the fallback option Conor! You're a hero :)
Now that you mentioned using a fallback, I believe I can ditch the
driver changes and make BU79100G to use adc101s as a fallback!
I didn't even consider if some of the existing devices were (from SW
perspective) identical. I was just happy when I found there was a driver
supporting these simple SPI ADCs. Then I picked the right macro for
doing register data conversion and correct shift, dumped in the bit
width and extended the longish list of devices. I never checked if
another device in the driver had similar set of "IC specific values".
Yours,
-- Matti
next prev parent reply other threads:[~2025-05-14 5:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 8:26 [PATCH 0/2] Support ROHM BU79100G ADC Matti Vaittinen
2025-05-13 8:26 ` [PATCH 1/2] dt-bindings: iio: adc: Add ROHM BD79100G Matti Vaittinen
2025-05-13 14:39 ` Conor Dooley
2025-05-13 14:39 ` Conor Dooley
2025-05-14 5:36 ` Matti Vaittinen [this message]
2025-05-14 6:00 ` Matti Vaittinen
2025-05-13 8:26 ` [PATCH 2/2] iio: adc: ad7476: Support ROHM BU79100G Matti Vaittinen
2025-05-14 7:38 ` Matti Vaittinen
2025-05-14 9:21 ` Matti Vaittinen
2025-05-15 17:06 ` Jonathan Cameron
2025-05-26 6:17 ` Matti Vaittinen
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=5c721d80-70e1-4cdc-974d-2007bbddfeb3@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.vaittinen@fi.rohmeurope.com \
--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;
as well as URLs for NNTP newsgroup(s).