From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796288618; b=i/5q6xfCwB1umhIVIOnw15ETHaH3qn2AYaxwQQcE+hybERFYs7wGj11wXoaUAyw7bKZs egzHUh+8xDd/ib0xzCpF4G62IAF3akz4gUYeIhHh2+KNrhvTJHgjJn+PcrCkKD4w+X/X1 Ek7uVFHHaXHYL0+PFGp/aQ4pKgrbV5rXCFVwNSUkBQlWhQ52vq+b+tNCIE0z5iKz2lQUZ MORDjsbkcLAdc6/b8U6uPdWo6ES6ahvx3ctHywqpKYzqB5d2A8cBk2JzgOJ3c00DstvTz mjrpv80/UW112mv/+bDP1a9iaCRJklL1wPbRwuYBTucSQYMo8xWeQGn2csoqn7pJGOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796288618; 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=ktT5f/hgH0VaW+Zp78Ol9TTy9wm4d7vq2h0nbxUBLqY=; b=km+ornr3Wm6BNw/EnA8WdLtqVjvNHkIbk3e9eGwqz5yxkrxE0q4g9OFCC976wA/1TgCe ngl8QnsKBAWx1vZ2d8qLbjxiUtIzgcLEpg/a+ZS/P1VBcKCZWLSUjKoJUNW93sTY1tQW/ VCba5NsbUF9pSOhzacRZczJPsErXHVg++wK37CuRVoKx5blqkDe+Cx6mP2LVq4gh0S8fZ /Zk5OVg3yWrEd3+yyY27GX56HMqlAi+CcU1xOcIiT/xobwPkUimfONSrr8aXja3LlssXn ImucWUsFWCyIBFu5ggVu7l5vabXmKO++fIpK0Qsd8aSdAQKyQj+00b7vyA6vkdm64Dw== 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=eq5SYriX; arc=none smtp.remote-ip=209.85.208.180 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (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 23CFA606A32D for ; Thu, 3 Dec 2026 09:03:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 23CFA606A32D 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=eq5SYriX Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-3ad0102edd4so125954631fa.1 for ; Thu, 03 Dec 2026 01:03:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796288616; x=1796893416; 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=ktT5f/hgH0VaW+Zp78Ol9TTy9wm4d7vq2h0nbxUBLqY=; b=eq5SYriXdIYV72FRF95IWMdTfH5tBStiZIlvJ1omghuEhnuGgXfKPzBmdO4QtLdsFH QWVayqxNkp7s+1BfYxY+YgxpscljX0JEMleu1T21XV32MYWbwHFvS9b+KehkWoOVd2AE VDx90/qQHodSHCCY5VJ5wXQUC+erk+cvlXDRY6d4eOXu06MsCGCCOC+CCSTjClU5A3sJ 0ZJ15sOkzoDT/29L0j9NQYnARfYmszPaEts0+6gIw2IvOM4UM5Js9vX3ClCtrDuRV+in yb33pox7ARI3JPDYsf/B+x4B0HB81p7FxIYdpPZk1osp2dQCZ56jMwWcRg4xY+SCUmCW W2mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796288616; x=1796893416; 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=ktT5f/hgH0VaW+Zp78Ol9TTy9wm4d7vq2h0nbxUBLqY=; b=XIyRHqAFKTn8B+e9c2fm8AArKS5pzaJ2C8MXxLS/e2J/aS13qO/7wzvNz7co1ZJC36 oI2QJlzh5K1XynQN/NgOAth17ldrh2DkHWhKfgk06En1OEJBLpSRnEsGx7ZUt7OjfqXL BY/mrLlzYl9EPfX9/GfpC4B7Mex2PaVqlWMnCtVp+OVlhsHcwooUPP/gXX84+2GgnOZ8 U7NiQ8C/NmGIbreLVPKcFY2AJC0GkSkLYGRXzaDU5A6niFMmpjMC9LmZq02skKuAwJC8 O52EGMwdS8aFuRaw2ZYGXdjQp3nvF6uYnEpe3nvksJXuH964O3R1GD1zWtxRJVmYVDUO J/ww== X-Forwarded-Encrypted: i=1; AL+hErEo2Zm6OsjTWyI/7bjhMkd4nJ3h91+rd3JkYdLrhkLBgI2DxKmXznfUOcTmN9v0cPZJoT7Gm2y4iFxKV/Q=@vger.kernel.org X-Gm-Message-State: APuU4Z+jjryeXfwLPD271u9qpCVvj26PF4JnANveOWgSxT8rD7Zw9BCf qAZPdzHUuG85ft54wPEyQuzRlbdadT9u3ol1kSPhYnwf5zPokEMACCoU X-Gm-Gg: AZFdTZcEDGSYV2SJyc8oy6iPLLAtc3L/6EeiGdr2nxCCDIcknRRFpaYLZcr0P+7NYLB vcmz16yOtwFmo+1fSRndbZfW2bi7SNQrtIRhESiZwulFjwSuHbMsyOMbYIioiBWkDddemplN4C9 rIXzm6uaQg3Bsy5OqfscBQQ7uSU8JU8b0Qf3w//BedDQKZiodHbd9nlshg43+HAoqsRUaHSe+w9 ro3tYX6oaSkigKj8/CC2W5+HAt/S42eFGj7ywD/0ShOzyBSeSAlp40gMfNNfjbzber4YFw/v4yB wQg3PymqGOhU9epIzbV5l/35gWCG54MqUZCT1UKKJImx1ombW3FbvbYRgxbOVdfoqoTUqKg7CDp zfNRBwP5TMEopt7ztC8+KZQsAoT4LhTaTjEju77MllIAnR7nUN4F2EpxAuvGwXwn7AWFOJLEiT9 /HkTtFeUHbkkgMAJnJf7pNkgJsUt0ODONp3Q4o3ALMrtQthrO5edLJ8MxOm5mG3FIqI0LEUwzb2 oRly5JLgGeurbL2ztGkgwAa5YaolKxUO190CHEXCpwcmuG+glwKolFzLQGtKJY+41o1zDqbG/U+ 74j4bjN+NcM6uDQ/eFPsebiA2yIOvMrVv1s6DIR7SLZ5xEevAuwqkWMN7epk1Iij9sDo/4P1uv3 7s/SAZroV X-Received: by 2002:a05:651c:c01a:10b0:3af:9c29:9a3c with SMTP id 38308e7fff4ca-3af9c299b57mr58246681fa.22.1796288616008; Thu, 03 Dec 2026 01:03:36 -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-3ae8050fdeasm112074101fa.15.2026.12.03.01.03.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 01:03:35 -0800 (PST) Message-ID: Date: Thu, 3 Dec 2026 11:03:32 +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. Ah, thanks for the explanation! Yes, I got it now. The amount of channels changed similarly for the already supported bd7970[0-3], so I somehow didn't see the need to explain it. I will add this information when re-spinning, will wait a while for the driver-side comments. Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductor Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~