From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=68.232.153.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796286919; b=qV5zNszcAJ95KR4BwOit0DY4HyJuDOVWixHZWj7yxXTkhW3C9TUaV7ldj5GRMIsUYBjV xbh8J/2zojAao+B/urTKu/CWoUb98tuk1K8nyzBjWcVEYOBFv3fxFtLv0p986nzuMRa26 ZEhtCW5Ni3+yjSGntknJH+0iERYpoEXQqBJoOHwwPEhMPXy9DLW5R7QwtAE5rToVYhmQL pM4ImrgSWfEPgLoXdNzao94em5vczFAt6F3PLDToFttPa3nO83XFbb9c6gF5zs/oG5AiZ kww7TImyxHEmN60CJQ4kBDqP9AcCudnB+p90bVbsxlPKYiwM8+beeLVAujp9Hn6Vxmw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796286919; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-Amp-Result:X-Amp-Original-Verdict:Received:Received: Received:Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=SJlQzwR9HxfJ3iQEKNIVVLhmBODiPg4+zn1i+Fgr+gk=; b=5bwCEXWvbC3UhtZwvlfAjrb978Rm4dco1CEkggJSDLOYBUm2PYUNyRl6oHmmgTz+S7dV TujdZ2asyL54TOG5JbeaY+7c/NsXw9K5RWqU/ZnS6K11YuFaL0KIzNo6yzkKOMLZID2W5 YnbtAcqylR48SZEde/bSV5viuVltcggcfzy3KbY3p0B0fHABjJasuEElXEuD+I5lppXGz aTxgH6uyRJL8xSMlvg8QwDWmmEe1HvEpkVj8i9vWpjVRgQTEsnRj8nyacFMgfByGgJ8Wv tIHigdDSzpBRq97NbF+wOT7QjDUrK9MKzn9Dqyw4yVrjPJ+IYxDN2dvPto0uCFwYMYw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Jy7eE+8V; arc=none smtp.remote-ip=68.232.153.233 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AF6F606A32F; Thu, 3 Dec 2026 08:35:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7AF6F606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=Jy7eE+8V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1796286918; x=1827822918; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=l5JeKaNtUnWaQMDjzHzAXXzuMDHPP4OpXVNNScMBJZ0=; b=Jy7eE+8VOLBdsdxx7dYZxYR9PzdIuAW/zhYQDe9lpwPuQW2+L/UThfFc 0Rb9fbHfi5cP0/m9uIpz2avQPCEzRCmPAkpTKY7DO9J2OV1v0izjY5Iik PkTQI9adYgEwKJdCzZwCOvRHafBzbvl2gOVAkxWawvVSjjYPERPU/Ewij /x5nP+juxkG5SPofIuETs4i4d3XDP8tntUzqwX2essSgJSPjzY2AMEo31 dwPBHD7Ip+m0x1GO2SXzWLi1iXzWpE/WxcF8q+sMDMVID0Yp9o1aYwvvt O2avVROt+OD1bz4kvRhKxKhWFo4GtC04wjNyX/hRvKISzy2+D1LQnVd7i Q==; X-CSE-ConnectionGUID: dHwpTSCtT4ibNuq7OzEC0w== X-CSE-MsgGUID: vviMlTeuQzy4R1ph0dJQew== X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="asc'?scan'208";a="78288305" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 01:35:17 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.87.151) by chn-vm-ex1.mchp-main.com (10.10.87.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.57; Thu, 3 Dec 2026 01:35:16 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58 via Frontend Transport; Thu, 3 Dec 2026 01:35:14 -0700 Date: Thu, 3 Dec 2026 08:35:07 +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 , , , Subject: Re: [PATCH 2/4] dt-bindings: iio: dac: Add ROHM BD7971x Message-ID: <20261203-splotchy-factor-bbd31ec6fd3b@wendy> References: <003d2b6ccbf816cee396698808555a62cb3068bc.1796049052.git.mazziesaccount@gmail.com> <20261202-stingy-hungry-8fe162c0d9d4@spud> <5d4fa0ce-3804-438e-ae07-8418ad00256f@gmail.com> X-Mailing-List: linux-iio@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-sha256; protocol="application/pgp-signature"; boundary="KLIXH4oRjYzeT4ws" Content-Disposition: inline In-Reply-To: <5d4fa0ce-3804-438e-ae07-8418ad00256f@gmail.com> --KLIXH4oRjYzeT4ws Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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]. Main > > > 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 what > > 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 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 w= as > 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-b= it > to 10-bit really broke the compatibility. >=20 > 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. >=20 > I can mention above to clarify things if you feel it is important, but th= is > 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. >=20 > > Please note > > that here. > > With an explanation, > > Acked-by: Conor Dooley > >=20 > > pw-bot: changes-requested > >=20 > > Thanks, > > Conor. > > >=20 > > > Support BD7971x by adding compatibles: > > > - rohm,bd79710 > > > - rohm,bd79711 > > > - rohm,bd79712 > > > - rohm,bd79713 > > >=20 > > > Signed-off-by: Matti Vaittinen > > > --- > > > .../bindings/iio/dac/rohm,bd79703.yaml | 34 +++++++++++++---= --- > > > 1 file changed, 23 insertions(+), 11 deletions(-) > > >=20 > > > diff --git a/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.y= aml 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 channel= s, > > > - 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_conv= erter/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_conv= erter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf > > > + The ROHM BD7970[0-3] are 8-bit DACs and BD7971[0-3] are 10-bit DAC= s. 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_c= onverter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf > > > + - BD79700 and BD79701 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_c= onverter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf > > > + - BD79710 and BD79711 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_c= onverter/dac/bd7971xfvm-lb-e.pdf > > > + - BD79712 and BD79713 > > > + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_c= onverter/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 volt= age > > > - should be between 2.7V .. VCC. Not present on BD79700 and BD79= 701. > > > + on BD797x2, and for AO1, AO2, and AO3 on the BD797x3. The volt= age > > > + should be between 2.7V .. VCC. Not present on BD797x0 and BD79= 7x1. > > > vcc-supply: > > > description: > > > The regulator supplying the operating voltage. Should be betw= een > > > - 2.7V ... 5.5V. Is used also as a Vfs for all outputs on BD7970= 0 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 BD797x= 0 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 > > > --=20 > > > 2.56.1 > > >=20 > >=20 >=20 >=20 > --=20 > Matti Vaittinen > Linux kernel developer at ROHM Semiconductor > Oulu Finland >=20 > ~~ When things go utterly wrong vim users can always type :help! ~~ --KLIXH4oRjYzeT4ws Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaxEpqwAKCRB4tDGHoIJi 0seqAQCOQKwJumU2DZT6vMaIbEMS4Il9jXTLL42iQsgeOVPKwgEA9mKeDm99RTHL W2rxdTrSUfiW44gEn63PJva6OCgnLgo= =RngT -----END PGP SIGNATURE----- --KLIXH4oRjYzeT4ws--