From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796363547; b=gyxLxvefntTL7tpl+0lV975gyUwMIYACWsXq5aTqPDd6lK+H1oLVvUhYRJu2pFzKdVml gq77BzC4ZlUasVh9VxO80ChB50eUeXvIYCX0MHhms7+oRGlb3sZiRunASa2mIz7imHdxx CilaMifXamA+AVy9kVn3YU9Bn8xfmLLl9sdolRrXn/ZA91R4yZXhFfHIuG/QA4vyz2rwX hzXsxC8NhQoHT0h1tu8T70deDHoxJdHQGLrII16qj3RBlKR+mBpOrvN2cHat+WenAbNYn vRMILJ8tA4QGvC5bJ/XlRFPJz/qK7mhh+KUDE4k5BOtZYxP+BUUu5a6qzctHqXqogmQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796363547; 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=3NY+mUktI2CFMFV+M1VPOT4Pb3KyGcxUxP8Hj79Om+8=; b=wGMzwIkOXZ4meGbGQc6S98ElFEgvS6bWmTL8w049KSmj8dfAiV/9ERN6L0nkwUTInb0h smDXHtKlvOJr4QsyiOTCgptonmuHZ4DsKU5K4apUi5qCDxBIQ5x179Xfrh0OjKf7bFf62 R68DN+MblIl3LiOGRPJMB5PY4/YpL4C90c3VaGFPIJf4RYRXwDlRKX8hAD3KL7BwnHqCV 2++s1vTt3IMEJXDuLbBbiyAb/Uu8ebUEPVqNQQdWGT3p25FWQuVlb46+HGFtac81W6mWW Yb//cQnsNFnqWqMZ4sDDzgZ98vH+c8ZLumfwVLS8cKsDdBiv9ZiuzvD2IyZF13G9eYw== 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=n4KjIg9l; arc=none smtp.remote-ip=209.85.167.53 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 18A00606A32C for ; Fri, 4 Dec 2026 05:52:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 18A00606A32C 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=n4KjIg9l Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-5c1a947b4adso433829e87.2 for ; Thu, 03 Dec 2026 21:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796363545; x=1796968345; 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=3NY+mUktI2CFMFV+M1VPOT4Pb3KyGcxUxP8Hj79Om+8=; b=n4KjIg9l9bEbE0TJFcDoVvq4IYyVvyOBjw+GpD/REzYuBf37kpVl/7sXj/YSj+09p8 PjTT7RZvkiItNI/Unfj0hkpVfAOudw3TbvoOdrK+jQ7B/jHVXKVwkEI+/XqGkpzJScw6 cBRa7V1/bD6mTbeUy2sgnNJgZXLNKAnMAg4s2hD9B4Mveeq/2VKDRNPfL6yykjxaGQ4a 2bSG05C4e76JYkL0nkmvO6GhdnmXnjNPwvMCszV+eEHoCuz3Xys7VuZD1Uh5v7VvfHuF v3LTnoigQPhJFyz3LFFI5wFGUL5azTNlzrZAZlY40BtX/+VgNqDYX4EVvJjM04qqeq2K OWfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796363545; x=1796968345; 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=3NY+mUktI2CFMFV+M1VPOT4Pb3KyGcxUxP8Hj79Om+8=; b=b/aSo/Ob11Yv4SR769jj0lOr//1bix13OgvYtcnbV82fP5IkiD8F/lV8xw9CKubR5b hQro7dH6AsbPN8BUIrle5tQWpL4mSo7M8vyCGjTOdqBKjjhJGb+SABWFbWA27vU72bkl 7Z/RsCJoOfQ19jm1dp0yaOi0ZajiE3ryxKWMn5AMCISKlSWdonmLzmp536+gw7IH8DJU aKXTjJbE77QXrikyHUMkIaI7J8e2DoFpoKRx/byqDzNdSMZBZ0F8odoSP5kRLxZkEPXq kK0ir+7xZF+9Ri0IgSU8XP099ywxmbgoaGUZeGeBwQBqkUjd+icQnPCP8tEbv/ccmTjB Ag0Q== X-Forwarded-Encrypted: i=1; AL+hErFnNao8D+uJLqK11onVvV7Sg0M5r8b4BwOSqyQgrkttYBzv2hLlhZkkGHJjq2LbmfQuDpGWWAgF0JnI@vger.kernel.org X-Gm-Message-State: APuU4Z+0cgGW0uaA1PwoiV1W65tHgDXcFuvWj7d9LWlvUjSnpsv90anV agcLYj17bMtCGy0FBk1qRKBf3Fj99MYq2z4AVYPeLHuab+SLVOhKCT/J X-Gm-Gg: AZFdTZd9c/spgfPdXBZqHwfZ3mmt/wV+18S2HviPQMXPicBgR+jE1TVDzSgiDpYcVRU 7oQ0zBIbsR7gSgyfin+wH1Th7KSv+pKz1yxCAYFE248XeVj513k7v/G6JKaWU7laIeH1RqfLLar XDJo1rh9WytuZVNSCcbg0mVJlbkJPgc5IE0Zm1LFIDSqcUXS9HnwKSnmh0RoK5rYA7gxMp949n6 IU6nWneiNskgSK2ytm7wy56HSljd2G+zUzXPjm4gkKjl2KdkF9qfepJgJjXk4ZvUwBgshMfvmoP KETeVBmQYltw2hHx50U3XjHWwLRNvf3HZoWG981Nz7dnLqKpubjhcDCf1KlHJinzpB7+rboIzbX 11qX035wMxWUEMU0R08rQg4KT8kxbeyVpJ/ZvVywPm8ZIfNh5mtopiT4la6J5lyxWPv2K/7oxnW EPvgifMwB30/A1Ha4AiYHoAT+SOM1X2cchM8d2DqrjMhcpWXsF1+dsIiaNoJJNrlpn7g01LPoUD UxqUMfgp4vJovidHBwwFZvNo4BW66YcxrFw2ieJjnh+SpDgF63iM5hGIIIHojKkjSqFcxpTg7m8 5W0FiJyeZXxrus1dh1IT0Awoq8Cn/wf5y6vwP2yQRQUfKSnz/ec4k/hcZD22Y7YVfSkJFJ6C81t ZXROHMXMx X-Received: by 2002:a05:6512:a86:b0:5c3:5bd9:4b8a with SMTP id 2adb3069b0e04-5c3861a9f2amr187830e87.39.1796363545088; Thu, 03 Dec 2026 21:52:25 -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-3b00378ebc6sm4119511fa.14.2026.12.03.21.52.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 21:52:23 -0800 (PST) Message-ID: <25fbd4d2-1629-4eee-b398-5122bb3ac08a@gmail.com> Date: Fri, 4 Dec 2026 07:52:21 +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> <20261203-nephew-sliceable-d4971671b194@spud> Content-Language: en-US, en-AU, en-GB, en-BW From: Matti Vaittinen In-Reply-To: <20261203-nephew-sliceable-d4971671b194@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 03/12/2026 18:36, Conor Dooley wrote: > 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 >>>>>> >>>>>> 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? > > 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. Ok. > 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. Thanks for explaining the background! I never thought this from this point of view :) I see the importance now! Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductor Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~