From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796315768; b=Mbd0JYAXPGKKgN8cV/ZMcw2tnn3KI1d+9r7VUWxuYi1ll8pHoYvfkbrNxlXstAuKudi4 vJc/UB+xn6VhaGf9qF06KM+FXlESth0xcpnsr7QWCybfs5yDHFjmH6PfocxBem/ma9FSn VEvo+3SDz53dz359aVIS5Ne5yGjIg7VvySm8Wc+xNHT82novGG2wm16BF2XqZCBs+be3j oZkTUfhjfIoTOMS66VZdVWhBBALk1p9omybOSQnMGA5yw4hc24QNZ6hUbYkelFdG8SMfx 8yuABFvCSEPauRxajVZ+z2o+ocN0MI+ZU1Hs2B32s4mZrRhzsLWt4Pcci4SiceEuORw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796315768; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=w1yEQ6c0xKxLFHx9WeUFhfwW+ceyRBSR7FYkVLuulfM=; b=ElurSzwB4B+YM49IB4Qo/riV5nsSSXzYckMk2i5bdNFVAmP4ZyXvtm8tPMeaDoIzy8c/ OZrG7TW7BMyuHGh7mJ/5u2PAl/Sz+RUsqmzuiHtNJmOqJs1pmDAzhDnVVDCqBCNwEP+vM AkU9mzq76ZpjUMSaXMVVeAPEYhHx+aKFr85S2LzeP9j9ODv8zwPeVAs5YQY/xTtvEEtgK Vs2hAEqzqv666TDl0hPK7tjKFxLZ1/9szqTXCr8q2oZRd8oGGK/yNlNmRbV0cMmP0KBGE 6ckMImy5aNRuRhadeGS9DGV90MKdukdm12yNGjgs9MoNR4qiiyP6mlZ3rujgm9ZZj1g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aIysczoe; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E2CF606A322; Thu, 3 Dec 2026 16:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=aIysczoe Received: by smtp.kernel.org (Postfix) with ESMTPSA id 555CB1F00898; Thu, 3 Dec 2026 16:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796315768; bh=w1yEQ6c0xKxLFHx9WeUFhfwW+ceyRBSR7FYkVLuulfM=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=aIysczoebIuoAHbj/Tr2B32wjpUeOezepbXfVTTfFtazfLYb6kgJFDuqAyews8biv 6ZqtlL355a+zamSXduXKEhtXgiQRKZCe8ma+4OpcRJS1FYNtFuC4mYi4t6vzptHvp7 bClexOsuqpi4nIoMjG9yq9Grpd7kzm9RRD1hj8XcrUmdM4Sl3nbVyi1XqGtGwUw6S3 W5wB8ntZ4jpiqtf2zwRSUno+DWuOwQaT6s3ZV3iVli0JD01EE/dRkfxxcgJVuqOd8d lfCH1dMH46voBkkGy6jzYaHnjYtWu4c/Ywq6fugdCPc9hkrBRjOJ0/s5EUJxcQdzmR 6RA1yryzDoXgA== Date: Thu, 3 Dec 2026 16:36:03 +0000 From: Conor Dooley To: Matti Vaittinen Cc: Conor Dooley , Matti Vaittinen , Matti Vaittinen , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 Message-ID: <20261203-nephew-sliceable-d4971671b194@spud> References: <003d2b6ccbf816cee396698808555a62cb3068bc.1796049052.git.mazziesaccount@gmail.com> <20261202-stingy-hungry-8fe162c0d9d4@spud> <5d4fa0ce-3804-438e-ae07-8418ad00256f@gmail.com> <20261203-splotchy-factor-bbd31ec6fd3b@wendy> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5kjOmb/FjSOvks5c" Content-Disposition: inline In-Reply-To: --5kjOmb/FjSOvks5c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 03, 2026 at 02:10:12PM +0200, Matti Vaittinen wrote: > 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 > > > > >=20 > > > > > The ROHM BD7971[0-3] are very similar to the ROHM BD7970[0-3]. Ma= in > > > > > difference is the amount of bits in the DAC word, BD7970x having = 8-bit > > > > > DAC and BD7971x having 10-bit DAC. > > > >=20 > > > > From the driver there's more differences than this, and that's wh= at > > > > justifies the devices not being comatible with one another. > > >=20 > > > Thanks for the review (once again) Conor! > > >=20 > > > I think the compatibility breaking changes are actually resulting fro= m 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 comma= nd 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. > > >=20 > > > But yes, from the driver side the changes look following: The SPI com= mand > > > 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 bit= s are > > > now required to be zero. > > >=20 > > > I can mention above to clarify things if you feel it is important, bu= t this > > > really was required (well, DAC word shifting and zeroing the last 2 b= its was > > > not) because the DAC size changed. Hence, from hardware description p= oint of > > > view, the DAC change was the big thing. > >=20 > > 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. >=20 > Hmm.. After re-reading the patch, the patch itself has this information: >=20 > ... >=20 > > > > > description: | > > > > > - The ROHM BD7970[0,1,2,3] are 8-bit DACs. The BD79700 has 2 cha= nnels, > > > > > - BD79701 3 channels, BD79702 4 channels and BD79703 has 6 chann= els. > > > > > - 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 to= o? Yes, I would like it spelt out. Often channel differences don't produce incompatibility because it's taken care of by channel@### subnodes. In this patch, the diff doesn't cover the whole binding so I can't tell by looking at this that this is the incompatibility. Notes about the sources of incompatibility is one of my person crusades, because checking that wastes a lot of time on trivial patches, that could otherwise be entirely reviewed from my mailer without checking the other patches in the series mid-reply. --5kjOmb/FjSOvks5c Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaxGaagAKCRB4tDGHoIJi 0ornAP9wzN6bJ//7tzsQaes5r0YMq956AdgRbF2t7q2/0E7hTwD+MjJz7g8Z8deF FBcOZqlYpwZ8s4m1ncRPEb2Dr4AMSAU= =KQUU -----END PGP SIGNATURE----- --5kjOmb/FjSOvks5c--