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 > > > > > > 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. Cheers, Conor. > > > Please note > > that here. > > With an explanation, > > Acked-by: Conor Dooley > > > > pw-bot: changes-requested > > > > Thanks, > > Conor. > > > > > > Support BD7971x by adding compatibles: > > > - rohm,bd79710 > > > - rohm,bd79711 > > > - rohm,bd79712 > > > - rohm,bd79713 > > > > > > Signed-off-by: Matti Vaittinen > > > --- > > > .../bindings/iio/dac/rohm,bd79703.yaml | 34 +++++++++++++------ > > > 1 file changed, 23 insertions(+), 11 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml b/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml > > > index 1ec44e62f50b..4a37c7c39789 100644 > > > --- a/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml > > > +++ b/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml > > > @@ -5,18 +5,24 @@ > > > $id: http://devicetree.org/schemas/iio/dac/rohm,bd79703.yaml# > > > $schema: http://devicetree.org/meta-schemas/core.yaml# > > > -title: ROHM BD79700, BD79701, BD79702 and BD79703 DACs > > > +title: ROHM BD7970x, and BD7971x DACs > > > maintainers: > > > - Matti Vaittinen > > > 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. > > > + Datasheets: > > > + - BD79702 and BD79703 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf > > > + - BD79700 and BD79701 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf > > > + - BD79710 and BD79711 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd7971xfvm-lb-e.pdf > > > + - BD79712 and BD79713 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd7971xfv-lb-e.pdf > > > properties: > > > compatible: > > > @@ -25,6 +31,10 @@ properties: > > > - rohm,bd79701 > > > - rohm,bd79702 > > > - rohm,bd79703 > > > + - rohm,bd79710 > > > + - rohm,bd79711 > > > + - rohm,bd79712 > > > + - rohm,bd79713 > > > reg: > > > maxItems: 1 > > > @@ -35,14 +45,14 @@ properties: > > > vfs-supply: > > > description: > > > The regulator to use as a full scale voltage for outputs AO1 and AO2 > > > - on BD79702, and for AO1, AO2, and AO3 on the BD79703. The voltage > > > - should be between 2.7V .. VCC. Not present on BD79700 and BD79701. > > > + on BD797x2, and for AO1, AO2, and AO3 on the BD797x3. The voltage > > > + should be between 2.7V .. VCC. Not present on BD797x0 and BD797x1. > > > vcc-supply: > > > description: > > > The regulator supplying the operating voltage. Should be between > > > - 2.7V ... 5.5V. Is used also as a Vfs for all outputs on BD79700 and > > > - BD79701, for AO3 and AO4 on BD79702, and AO4, AO5, and AO6 on BD79703. > > > + 2.7V ... 5.5V. Is used also as a Vfs for all outputs on BD797x0 and > > > + BD797x1, for AO3 and AO4 on BD797x2, and AO4, AO5, and AO6 on BD797x3. > > > required: > > > - compatible > > > @@ -57,6 +67,8 @@ if: > > > enum: > > > - rohm,bd79702 > > > - rohm,bd79703 > > > + - rohm,bd79712 > > > + - rohm,bd79713 > > > then: > > > required: > > > - vfs-supply > > > -- > > > 2.56.1 > > > > > > > > -- > Matti Vaittinen > Linux kernel developer at ROHM Semiconductor > Oulu Finland > > ~~ When things go utterly wrong vim users can always type :help! ~~