From: Matti Vaittinen <mazziesaccount@gmail.com>
To: Conor Dooley <conor.dooley@microchip.com>
Cc: "Conor Dooley" <conor@kernel.org>,
"Matti Vaittinen" <matti.vaittinen@fi.rohmeurope.com>,
"Matti Vaittinen" <matti.vaittinen@linux.dev>,
"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>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] dt-bindings: iio: dac: Add ROHM BD7971x
Date: Thu, 3 Dec 2026 14:10:12 +0200 [thread overview]
Message-ID: <f67c5392-cae2-450d-bb00-0ad58cb88c01@gmail.com> (raw)
In-Reply-To: <20261203-splotchy-factor-bbd31ec6fd3b@wendy>
On 03/12/2026 10:35, Conor Dooley wrote:
> On Thu, Dec 03, 2026 at 08:54:56AM +0200, Matti Vaittinen wrote:
>> On 02/12/2026 20:05, Conor Dooley wrote:
>>> On Wed, Dec 02, 2026 at 03:38:53PM +0200, Matti Vaittinen wrote:
>>>> From: Matti Vaittinen <mazziesaccount@gmail.com>
>>>>
>>>> The ROHM BD7971[0-3] are very similar to the ROHM BD7970[0-3]. Main
>>>> difference is the amount of bits in the DAC word, BD7970x having 8-bit
>>>> DAC and BD7971x having 10-bit DAC.
>>>
>>> From the driver there's more differences than this, and that's what
>>> justifies the devices not being comatible with one another.
>>
>> Thanks for the review (once again) Conor!
>>
>> I think the compatibility breaking changes are actually resulting from the
>> DAC-word size change. The bd7970x (previous, 8-bit DAC IC family)
>> SPI-protocol had only 8 bits reserved for the DAC-word. The SPI command was
>> placed in the 4 bits directly after the 8 DAC bits. Hence, the 10-bit DAC
>> word we have on BD7971x family, required SPI protocol to be changed.
>> Furthermore, the size of the DAC-word needs any ways to be visible to the
>> users so they can use the full range. Hence, the DAC-word change from 8-bit
>> to 10-bit really broke the compatibility.
>>
>> But yes, from the driver side the changes look following: The SPI command
>> was moved to the first 4 bits of the transfer, DAC word was increased to
>> 10-bits and it was also moved 2 bits left, while remaining last 2 bits are
>> now required to be zero.
>>
>> I can mention above to clarify things if you feel it is important, but this
>> really was required (well, DAC word shifting and zeroing the last 2 bits was
>> not) because the DAC size changed. Hence, from hardware description point of
>> view, the DAC change was the big thing.
>
> I believe you that the lack of fallbacks is a requirement, don't worry
> about that. I think we've crossed wires though - the 8/10-bit thing is
> already explained and it wasn't that I was looking for a note on. It's
> the lack of compatibility between all of the new devices that you're
> adding in this patch I was talking about.
> I presume the answer is going to be channel count/capability related.
Hmm.. After re-reading the patch, the patch itself has this information:
...
>>>> description: |
>>>> - The ROHM BD7970[0,1,2,3] are 8-bit DACs. The BD79700 has 2 channels,
>>>> - BD79701 3 channels, BD79702 4 channels and BD79703 has 6 channels.
>>>> - Datasheets for BD79702 and BD79703 can be found from
>>>> - https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf
>>>> - and for the BD79700 and the BD79701 from
>>>> - https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf
>>>> + The ROHM BD7970[0-3] are 8-bit DACs and BD7971[0-3] are 10-bit DACs. The
>>>> + BD797x0 has 2 channels, BD797x1 3 channels, BD797x2 4 channels and BD797x3
>>>> + has 6 channels.
You would like this to be explicitly stated said in the commit message too?
Yours,
-- Matti
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductor
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~
next prev parent reply other threads:[~2026-12-03 12:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 13:38 [PATCH 0/4] Support ROHM BD7971x family of DACs Matti Vaittinen
2026-12-02 13:38 ` [PATCH 1/4] dt-bindings: iio: bd79703: Fix VFS explanation Matti Vaittinen
2026-12-02 13:38 ` [PATCH 2/4] dt-bindings: iio: dac: Add ROHM BD7971x Matti Vaittinen
2026-12-02 18:05 ` Conor Dooley
2026-12-03 6:54 ` Matti Vaittinen
2026-12-03 8:35 ` Conor Dooley
2026-12-03 9:03 ` Matti Vaittinen
2026-12-03 12:10 ` Matti Vaittinen [this message]
2026-12-02 13:39 ` [PATCH 3/4] iio: dac: rohm-bd79703: Avoid copying chip-data Matti Vaittinen
2026-12-02 13:39 ` [PATCH 4/4] bd79703: Support ROHM BD7971x DACs 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=f67c5392-cae2-450d-bb00-0ad58cb88c01@gmail.com \
--to=mazziesaccount@gmail.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=conor@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=matti.vaittinen@fi.rohmeurope.com \
--cc=matti.vaittinen@linux.dev \
--cc=nuno.sa@analog.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