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=1796288618; b=3o/+YyluwEfcA8vgTMOKV15/uq2hB7Bm8KmSrt3L4wWRYXrv9P9I3P+KjgPMbVNmDCLh 5ku5DWVXUinmg/eaSQPyPPJjGN3nXFuZIsHlkEii4nwYDTaQF4pnGIDB7dZfbg10OaLbF tFzFoGv+tHBauTsugDekYk8BRN8BotBaSVd2/UYk9oXVUh6Cq0ephWKPUB63eaXty3GSb 6ODrrZ0vGwQNNYwCXbrIcBeSCdxIIh19aYg7gLZ3CSXir9FyZSyi0GnOb7hnt9ArQCd9S tFKvmDAUKPnGCKHSLqwB8qsE7wCr6RcGQ+HZ57yOEfICYioJpoRcI3zgXvIsOK/+W1A== 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=Pc/+TQ9Zn2f9t09pi25EHZ07GExWPrs0TCFejFP+RpA2yB7tX1mk+SdACiaDMZdsAPDf xG947GHm4klGrgLPHHgL3oRGz37yY/Ekzatm0ABM9aYuuxwoNvhjzOtseJNQsGKADyp0b ELugwLhisEBHHHvVfXuJmyBp6gV3zVF5SDm5TA9vr0OuelFnU9/HI38vmBh0NiwDz1RXg e1o9ZUkpDChjj1SdwtrrXyhoz1HnNRLRoEENQQHVcGDiIP1oAWk7KV4kv9Y+87GCTfxaF RGHcapM4O+itgSPX9ry/VHgvS+rG58EcTRBdssEHFIP/EV+kDH+5ZxrhocDliXfaPgQ== 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.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 21D92606A32C for ; Thu, 3 Dec 2026 09:03:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 21D92606A32C 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-f171.google.com with SMTP id 38308e7fff4ca-3acd239776cso123566721fa.0 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=nAjwFrUVTjvgihjOSQQRtpmM4dGL5+f13ugTtznsQJLX2FhzvmvsRbXqdG06qbo9wB L1LP5LSM0M+3YN85aMWB2r2LgGECbu4mmQCJ3wz2weiMaCcqS05oXMgDn6KM3fhH4hOy IOTYAdShwJTfVE3tYN/7tf1oMJtTD7k1Ee1DpDik3qE3556M+PxY8sOrhQYLGciuIgmK k8u52HmYOfV7Kf1IRZysSCrLrXGe16PbwNWRaDHroOilAIfiV66itpSuPNwtLnScciQi A/zJ2EpiZp4S9GUA7BgkadKv+dk2Damy4Kl1zEa/5ayECM5cuXR1xEXBzRtI41Q5PvmW U2mQ== X-Forwarded-Encrypted: i=1; AL+hErHKEMmotm/uyFB/rzMDhUJfGwDdvZ16luForQnQYqk8HJ/+f5KiwU4YRT4f3Oc22hsMAKrkmn3BXg0=@vger.kernel.org X-Gm-Message-State: APuU4Z+Ddy+gAsbjKGO749NYkmTL4r87FMEpJWs4ZHHyRhXMPg8Y3wJ/ nilTsDBxfpEjH1pg6aYIyb7nCdoP2cf+cYI6aYKEUHZuZ15fk5ePLXI1XMOR5Ur9 X-Gm-Gg: AZFdTZcbKBSOGVfZqIhBXE2Irx29N7hlxlZurWnA50I9Q2UKELXvRdFmejB9Sj37luI 3Zsq64xDIcm3D8ZEaITud48zEx6GW2mzvcQAKqeDtFMQMCIVkjJVGThEkDh0l7qPEqO3CeFRJPR koejSiYkKKpudkbjORGSb3OiVSzMowuUfE5BVEf91cqW+qpvsN7Dh7uJrcz7U1qTHxPfLb9Pi5f 0tsnVMH7PxhkAQ3ml05RFwCniKSXiP0VJjtv26H22xChqEBu2XhrLr/RN69LcCxf9PFxQ2m+3vg UcAveBZIbkTSZMelT7gCXDfZ2hyANBZtRl4n13NAyIldcu4Sl7WbTUpFVOz5Bv0/bbYHAJlhloP y0D8/sO3WKZuS7A8ZwnvOlBmpRR+2ewq6TXTH+KPbP7k8d/jyJXK22a7Rqa/Cb8CgBgzUl1ifLC 9rA1yZjdfiCl0jvw5F7JzjbNUp1bHkmKsDzGcvcz7Zhau3OgRqjSLigyDQzH1q94uPpg2jLouod lc0S3Fow9b4fas6B3s2KFcWRDooDcFmAXFiAplceJbMSHE0uUoiaysOByfN0gc1ntpThVIlGVvn rudYydUWDsZu3i5usn8xENvRUvvzHPBMKU8qMBwJWnacPR2RFyckTb4FXhYLdmXSfyyWiNu5IPD vfviBiF9b 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-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. 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! ~~