From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299817; b=OFP86tUyn2GI1M06tGOsrLAhykDQlHKbZ3IAINO4u503zXjVZZFjiWQ+PYNRc6fSGDql jcGv6AvM0709qfLvmSGwC0o7x044l01cZ7AyouYe9K8DdvhYivUrG6bgZ5h1lSYmIIWKA unId+vZISzbWJq+cxUbqix99O0XZLT+JfXRVCTzMlXIf2Q58Edk7ZiBiTMNFDRBjQuUVl GZksShk06/yNxQO+JxSEhoDCMTfc3sQTMzGZ/VZOF3YAVGn77naze5RPqI3K/P+vglpN5 4cKflyRUzoR0bKsKNgW/Lm6QZEigarWrIUTSYTuo10CgRj1HpuYTdEu+AFBFpqskwVw== 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=IfAlqtTxxzE5HVqYsLSVvfJIMAkDBJZcyBTd400kbuaYkAnfO/GHQH+e1JveLEb5fk2e +fCEHo+yW3C9HomTRPChC2LMh409h//VK+PZMfp9x949qrLF2iVQN5qPueruf9jIwi2tn w4gIqaflN8coufBeQx3D2V9cCBxXjXNy+o1Zhf5/QyAtgQ6ZrhK9wtLhxug2kj1ZoWAFZ VdNKct+ufjmM+R1O0vs5dxKmzabE3CXbeph9ykqtcsn1WqMO8nucEgqdKmit0doX2wZjW xxR5Q62J5yX0PBQcDeerBiYO05GyuNkx2Qp+7kyepKf4SQ3ZiZy4vLM6v5nfFvjdaVg== 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.171 Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 266A6606BCF4 for ; Thu, 3 Dec 2026 12:10:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 266A6606BCF4 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-f171.google.com with SMTP id 38308e7fff4ca-3acd239776cso125106051fa.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=fMlAMGr9EVsz/p2jEkP3X38pzVgjcBn35YbRyMXfykNTwwd6jIOV/MvY7oTRrE/b66 looVrVeJ/KPdgU8uPieQZfO1g2JdSlLBOozMg7ZwIPwB+BLW5lQnIqGISw/2Vna/2Qw/ KWwUg2RgxiW5cDj4S1EAcWThDio9YW1vq0u05i0ThaS4WkSQu8IjjS9UKTtYfGufcppu OTe8KW4+o3/dIiwjxuw4oxF+0o8eESeOuGIoke9tSmKGdbRRVP9fu+2Ic3c2x7xScrNu bRbUmWlV3T+aF5rTfh4VNXUo9qi0+yqi8/h+xb2fr+jhk424B+Q9fHrTlvjpBMA7KCgo Zf7w== X-Forwarded-Encrypted: i=1; AL+hErGdYGDSuRP4cXhoN4n5qXDB/e8PeU7P6LUDdo/9vn/YbyA+RzW2OMAkbv6TKUE6pEHmwKlz0ZI8xgk=@vger.kernel.org X-Gm-Message-State: APuU4Z9q8RbwI4Gg6nET8JPNJs397OdTyVr7a6JttdWPtPVVS8oWSdtN JSsXFrudoEmnUecbN2ZanxI7eznF3WDYBqT99v6RZTm4CAvuS/LBCmmu X-Gm-Gg: AZFdTZeAydfAJJZ87hwahqBj9VOpG79R9YL7r/cAVmZGojQSHVEWfY2gcBwaFi6EK7r PiNDB95QGWyP8hDezWKwZv/VICG2lqA5sKO1Ow1xNjeWPOLdRseeU1gkaNJhgDIyUspJ2BOA0A6 gwQJMKk9TBOYBdv+bWv+FIIx3UP2GdllI3Ig0j5Z173olJedcJ8tsbqwK6KF9roplpgrsu4HQAf extyyDnCjJfshJ/+F3+nhxugiQ6P3IfSKGEnkQL6p968u2M2h0G/m6l6u7+eIBfwVjAB3QZwXMH mh0lfcgZh4kCmXuLtAB6qJCCqtn5xos1fHmZWLuhU8PpS2l+9iJHY5fpqL6PR5LqvBH/XEE9eRU EPJ1sXT2S9Yve6kbieUbfqbUVkUzv3XQxhwEbNAAuVFEf8kz+nRrz0I8uyt/So1gErfnYEuRoVH dPL23J9kFYr/CLOUc56c/nTfKTOqGLJdIO6U0wHHGWUsyXqC8CI90B28quomo70wfc4eqbld2mq gvDLxRfYoCb69JYHXZcIuyICn5b9y1Kb/7N9HfViHP0DomN06Rtk4m6aqVh9DinXLHRWUfKxKK/ RGQP7Sz8/NabJTk3cdCSPa6vzvbMMmAbERdXJoIMBbGP56SQ2RwqlyGtDTJCWtbhZ/Io0LPbp8n irLwXY2G7VA== 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-iio@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! ~~