Re: [PATCH 1/2] dt-bindings: iio: Support ROHM BD79111
From: Matti Vaittinen
Date: Wed Nov 18 2026 - 12:46:19 EST
On 18/11/2026 19:37, Conor Dooley wrote:
On Wed, Nov 18, 2026 at 04:19:11PM +0200, Matti Vaittinen wrote:
From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
ROHM BD79111 is very similar to the BD79112. Both are ADC/GPIO devices,
where pins can be configured to be either used as GPIO or ADC inputs.
ADCs are 12-bit SAR ADCs and GPIOs support input/output but not being IRQ
sources.
The main difference is amount of channels/GPIOs. The BD79112 has 32 pins
for this use, the BD79111 has 16. Furthermore, the BD79111 data-sheet
promises 0.5 MSPS sample rate with maximum of 10 MHz SPI clock, whereas
the BD79112 data-sheet mentioned 1MSPS rate with maximum of 20 MHz SPI
clock.
Signed-off-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
---
Note, I had to change the 'root-level' additionalProperties: false to
unevaluatedProperties: false in order to allow the properties in the new
allOf:
- if:
...
section. It seems to me this is what a few other bindings in IIO do, but
I suppose it makes this "less strict". Well, since I am terrible with
writing bindings, I'd better point this out and ask if it's ok, or if
there are better way(s) to handle this?
I don't think you should have to do that though, since the children are
described in the same file.
If you instead retained the pattern properties section, and lowered the
restriction to channel@<any number> with reg with the max of 31 and in
the conditional section constrained reg to a max of 16 does it work
Ah. I think it will, thanks for the help! I'll do that in v2. I'll just wait for a while to see what other comments I may collect :)
Yours,
-- Matti
--
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland
~~ When things go utterly wrong vim users can always type :help! ~~