From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299817; b=OarokABTVAClSZm+AxNPUQYsLRahBrkLUoyKpM3I/wpOx3j1GPdy8bhyqOk+uw72VMUI 6mP8UgDynZfM0KjivyDz21GNFsqHEJAj+SBfw4kXxZbHwId49VYQhfVEewawc80Elu70f voKNM0WXI9gWYWQ+NC5CF+OYp2irrCLIhHrWkKKpyTJlmZqRFzEpGtS+pzimf6JuXickS oyUZ89N2MkGlbpscHfDaH+Y3xu5BCuYkaencaNf/fw+0qB4lRlQWyv2ptUEnY/svv1aeW pniaOkfKe1i2QYLY+ckV1vQ0vlLP+HC8izTvIY1Qw/z/qOeBCNQ0LHmPYec0Hjbh29A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299817; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=r4g2Jp4uh87t6JCXDkkZPVfzBtjqUxuIhaAdjQSAL4U=; b=OOBE/Mil3Y9MnbLupweFmlJ/wZbYOvAB5LM3TySOPB51DundLEuW8ODMunKhXsPYfpx+ LdnmtNh69QE9I7lmZ4vcz8Tc+RHlh10fBMp94/sE26XOMctYpVnrA4IGwgftsCnUHOaQR i+BYQoetK5oc0kj5xZZrBVOFnd7n7ReM4tohAikr70huI9Mq5F24Y8Cbl+kv1g6u17X/6 jNI6WBQBMG14szkF3G4OyNc7/Xq/qc2TGg/3hdgbTYRhjx5wRyiYGf84SgfMC+mMHXM1Y 7LA/D7qnPAjOhv+SNnasf4W96sAumCAEylUheuxQKcbzopvn+f1tOlA0EugKwbv2bXQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fIFPBhLM; arc=none smtp.remote-ip=209.85.208.173 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38F536079CDE for ; Thu, 3 Dec 2026 12:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 38F536079CDE Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fIFPBhLM Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-3acd239776cso125106081fa.0 for ; Thu, 03 Dec 2026 04:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796299814; x=1796904614; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=r4g2Jp4uh87t6JCXDkkZPVfzBtjqUxuIhaAdjQSAL4U=; b=fIFPBhLMspbyX9k2O7Y5CiOS8zJe7xVE6tkPZIWBWas7BakAMANXEnamLMtkAM8S97 ypBvUFmf48M88o0FpUiJaap1VOYM0VBQweYhkIMkSh+iKrCP+Vaxg2NQrZK4oAAhgU3Q Rzlfb72tn69yXJrUJbngpF/RoMSJFpgckYLOKVFSkfqeDTpgXquqrvjH/DG0/5/CIVcn Gwy3Erbpa5yOJrPBE5aBcHcgZJGoVbRkWQ6HsjC2PqpxEkmKiR9gh0pPBE9/CTOsjBCQ T/huZjnm6e/Fpz59EWDJ9hcf5J+PI6c9X/swlqFmSl3ksaDu7AQqWtXYZZyW6LfGj1Aj NVqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796299814; x=1796904614; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=r4g2Jp4uh87t6JCXDkkZPVfzBtjqUxuIhaAdjQSAL4U=; b=UEhW3zt68iv9qtkfNcOFz5QWP3t32NAqg8F4o/ArWWr7tULSD71ezcirVamUVaq0no s5iA5voMBH3rMhiOgHHuLk/f2gxgIURXuuRBJejKCXOo6Zp4z5SY4SeTGEgSCeXSgZd9 1PkeLBAyaC0FB1rmMCpgdWDY3qUWoAaUdZw0/4M9uipnqD7oEgi/oEkpdSgASVH1XY76 3oL1Mjk70Rq6+bvg7y1D1njGa0rR38aCvq0li5QdboC+cmCi+7azQTFO7cnUCYJGxtat +9EhUxnWFuInZKnh1H9k+mB/g/N3U4C6cWRF/qBqVag9V2DDS0V8c4aJaCuxcyCUNgNF qPmQ== X-Forwarded-Encrypted: i=1; AL+hErF02XBAIXY6NnErOCvdjwy0D0sjyzvySIZSaMkp9tpqxnUjhIAXVU9D/16yjI+L1AaDCPM05Smnx6SZ@vger.kernel.org X-Gm-Message-State: APuU4Z9UaIX3Z1wrL1cJM976g7BANnk7KwjrEoNHjYRgf2lMb5NP3PTF BvBXTEanFLnPPk73Wb1QvAruq99GIPoke6J4K+LYKYZutRUf1eKORHrq X-Gm-Gg: AZFdTZdChXODe+L6SmEo52QacavqcRMozS9b9rcVvVh0Qydnhkbxg5b0F5MkKWdnCcY en9/+V1KYf1hIW2QQtQtRkAo193eqv1RQalpdy/DJe+XlsCvnI7LwiwZiD5C4sUDjTLS5Ll/Oki mPxSi/gJQvCsKtcha1ebDIVkIlYQ0yIqGNj8qPgkUb36+d9FTINzmAFtfa2I57p+bDifp/0Akf+ NTqDGvl9szs0cjwjnxq2lJ2HPRdgKyIefyQ340TE+zgJ9Hl5KIF0ndyc4xk9aU62KNm9MjHdF+o 3HhtoLCeJePFMuJf+p8apX1TqCJssgFsBsHsPzqv4Tm37xUykoC+e5CeRYzmWBOlTcIySJSN4p1 qO9qYSVWQBnRyIL/V1m7k3lYrZahsDFHAEaJf9zBzdpRbNMwPmTWLNJMfE/NmGUPcMLIv1B2pr0 89UQxGIy5wF8JRz10OM/qIzkJmYEldKDwUyhqVEDLsYStwtWze49md1c6v0rgRd/4RdZIQOj5cN QqfU2GK4VoBoxJyUTOSOqer+zpGqR/MdIR4/PU9sa94QW+h0h1BRUX6trRVvJFwR6sWNuVqpaR5 TuYeRKvE8ByoD4h1GIO506FTef1/bQp6zDyAcBQesDhg9xod4AS9BlynGAUbzUW+yzBr0rf/rYF ++Je6LAUVhg== X-Received: by 2002:a05:651c:1541:b0:3af:f7a4:d2c with SMTP id 38308e7fff4ca-3aff7a40df4mr2775931fa.8.1796299814274; Thu, 03 Dec 2026 04:10:14 -0800 (PST) Received: from ?IPV6:2a10:a5c0:800d:dd00:8fdf:935a:2c85:d703? ([2a10:a5c0:800d:dd00:8fdf:935a:2c85:d703]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3ae8052992esm105687321fa.24.2026.12.03.04.10.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 04:10:13 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 14:10:12 +0200 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] dt-bindings: iio: dac: Add ROHM BD7971x To: Conor Dooley Cc: Conor Dooley , Matti Vaittinen , Matti Vaittinen , Jonathan Cameron , David Lechner , =?UTF-8?Q?Nuno_S=C3=A1?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <003d2b6ccbf816cee396698808555a62cb3068bc.1796049052.git.mazziesaccount@gmail.com> <20261202-stingy-hungry-8fe162c0d9d4@spud> <5d4fa0ce-3804-438e-ae07-8418ad00256f@gmail.com> <20261203-splotchy-factor-bbd31ec6fd3b@wendy> Content-Language: en-US, en-AU, en-GB, en-BW From: Matti Vaittinen In-Reply-To: <20261203-splotchy-factor-bbd31ec6fd3b@wendy> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 >>>> >>>> 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. Hmm.. After re-reading the patch, the patch itself has this information: ... >>>> 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. You would like this to be explicitly stated said in the commit message too? Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductor Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~