From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299817; b=oWyfVawOoH6vccOva6zCpZkB2kFiCOMLTStms7JhkJu3Ni+R9IDdby13KQtvkgKuzPfw FAb146BL7ghRYlnSPoh4G8qMWrcvPXETuiJQSOJvhaN2mOfco9cbO/9JHZoq1MgsH3qiK Crk6cryu/md55U7obBI4UNNXOAbhNAm8eoBVKYfWmWuTnZmyXWvHJHViwhAOEr4tLESqE rnKicpBYxkfFi+6N01Xah3frZSt+Yj7O0JvHy/p8wEkGUSu1yksZCYdkgY7650jejDSEq Scw1o3dnCPJMydogma+QDY4K+EIp3Y/shKjZLOfYg6Q+vKwQuLYvVfF2qEhR9Z04V3Q== 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=PUeGsnVNsuDB3zk6rN+pnjCafH/2abMNm8lFNl7BHmR1gls2Ix127nPkHHsCoZR595pf K2gWgK5hwJ4R7BuX/tjd5vCcfH8MSX/476wKfG50s+UGXMf54a+eHHFjtgFoZxnFkISkP GHbJb8hvmbqFm6JHgLhKYQClH97Q2el3eDwCHcT4cKNX8FIaWMUxHJbM4l/VWS8senLW8 sVLKKc6WeX2vjskB8td5H1v1V0K5iYi8OJJeoLDgleKemtQlpcYGF3LRO2PJv3oINkzUT oQPsu9Aeto83/xbPapUT/fdqnexxXVuQF+8IHPn+6WbCTBJK7y+G2zAgDBHjbIP+cDg== 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.172 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 376746079CDD for ; Thu, 3 Dec 2026 12:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 376746079CDD 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-f172.google.com with SMTP id 38308e7fff4ca-3acd239776cso125106061fa.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=HpMA6S3QdAJFtJMA63ik1vaDYLDSSIsDjaF+jOV6CAa3QQvf2K2BtwhyT7Pndessm+ F7qBqn8uwHcYMhLbXQFBp7+J/dxn1pjo+J5jQyY4g6A7Qqy1jn/Cm7Xq+ZVO3jUw+VKT 2FUo7WRmCBxxCDF2otevecVTS1mohdJWIa2XenZZQuOuuE/E3qSqJScWT60L9TOHRrGb IuEnVgineG5Xt/J4XKtJ405fAv8vC9UQCede0ugMWJ/DUux3uaVelnVQ/HtvL6UbkgPC ktN6OA8hAPnfDuGSBpSebsKKivsnvZdOslgwLnHMtl/L/VPWLXOBCyadanZ8bPHd9Rl0 873Q== X-Forwarded-Encrypted: i=1; AL+hErEPyaGrATYUl7z9cOEGf3AQN57qZm+GKdd40St3xOtju99aB9X82hwIrd8bgdbPbaChlIsG0h21XMKijzk=@vger.kernel.org X-Gm-Message-State: APuU4Z+MoC5ZW7mLi3WNNifP12i3FJVV2V7thpA19pnUfuxcFHxdgf3c xARC74DVVgdA6fxFXVBy4MkRvMTBQEKROmytnKkVxOdAnjPBCfOUSHBp X-Gm-Gg: AZFdTZfaWLk0GgiyT141VjE6L2qKhlv69bz0iRhm7EtmgbSpydmvoAr3l1ga728ujrB l+vPFhv+vvHT3NinqgNx4Isinzh+Nndpxj5MA4/e5CH0X00Iv/lf50TjNuKXJQLheeD0xX96WPV kvPa9fMYma/Nthfp4RdqLEl8menpQ5qmI98Xe2+V8BpkJq5qAVYq3AZCHTiUZNRxujf+Dzw+CvH ZijGbbx03pBehEbrSDm4CHwjoa0Wy2lRT6/xVx5GqYUdJMa8uol1F6dxqw86Z6rzt/Hd2H3TvTe W4npyj0N8si7ftdiOAZMgm2zl97S7gZO02qtUZn4m7hBOSACPg9oWjJ50a9Pr0GhtSBnk4NPleL YfyPEKeGoUgmEANRpY2N7JGuUsIlzFqHZ8IhgTstYy1PZ5V9BCu0R5TbqCP4wfN8vliutO35iZc 3QWWiH82FOOWbok4tHYfFEQhIz8LHMBkhEjddoMQy3n8551YRmhH9Y+mO8UfasRpJybw3nd1YTk AOmLs+kP5EeSOkH8r8Dn+CZl9RLXcWEMOylb6Fj+fJMQnqBztFur8B823a+dHcpdrLBZIT4tlgV zmLhFDwBMVvTdp93IfRzudP4fO8CvS8nFfbjF4Aq0RUoUPtwwYX9y9To13R1nwiNuIWDaFYCl8w WPQCigAXefQ== 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: linux-kernel@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! ~~