mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matti Vaittinen <matti.vaittinen@linux.dev>
To: Matti Vaittinen <mazziesaccount@gmail.com>,
	Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>,
	Matti Vaittinen <matti.vaittinen@linux.dev>
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>,
	"Matti Vaittinen" <mazziesaccount@gmail.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] Support ROHM BD7971x family of DACs
Date: Wed, 2 Dec 2026 15:38:13 +0200	[thread overview]
Message-ID: <cover.1796049052.git.mazziesaccount@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

Support ROHM BD7971x family of DACs (and fix existing binding doc)

The ROHM BD7971[0-3] are 10-bit DACs which have similar SPI command
logic, channel numbering, and VCC / VFS pin logic with the 8-bit ROHM
BD7970[0-3] family DACs.

Both families use 16-bit SPI transactions where the channel which DAC
word is being set, can be specified by the SPI command. The SPI command
resides in the first half of the transaction, and DAC word to be set
follows. The of the SPI command and the DAC word differ, (as does the
length of the DAC word).

While adding the support for the new family of DACs, I noticed I had
misread the existing BD7970x family of DACs data-sheet. As a result, the
information about VFS pin usage on BD79702 and BD79703 is incorrect.
First patch in the series is a fix to the documentation.

Rest of the patches add support to the BD7971x family of the DACs to the
existing BD7970x driver. The series is based on the v7.4-rc1 + driver
VFS fix, which is identical to the one in the IIO tree's 'fixes-togreg'
-branch:
7b9c4d1c895f ("iio: dac: rohm-bd79703: Fix full-scale voltages")

The driver-fix patch shouldn't be needed for the binding part as I
forgot to fix the bindings at the same time, hence missing it from the
base shouldn't conflict (what comes to the code).

I can do rebasing / split the series as (if) needed.

Matti Vaittinen (4):
  dt-bindings: iio: bd79703: Fix VFS explanation
  dt-bindings: iio: dac: Add ROHM BD7971x
  iio: dac: rohm-bd79703: Avoid copying chip-data
  bd79703: Support ROHM BD7971x DACs

 .../bindings/iio/dac/rohm,bd79703.yaml        |  34 ++++--
 drivers/iio/dac/rohm-bd79703.c                | 108 ++++++++++++++++--
 2 files changed, 120 insertions(+), 22 deletions(-)


base-commit: 0723d51fa973f0204e1c436c08a784b7b1cca795
-- 
2.56.1


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             reply	other threads:[~2026-12-02 13:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 13:38 Matti Vaittinen [this message]
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 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=cover.1796049052.git.mazziesaccount@gmail.com \
    --to=matti.vaittinen@linux.dev \
    --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=matti.vaittinen@fi.rohmeurope.com \
    --cc=mazziesaccount@gmail.com \
    --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

all inboxes | Powered by JetHome®