From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.179 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796288618; b=IrA2IZk/TBPx6TjjNorzmrUft7h1DsxJ8ZyQirirJ1aP1dxtAetZoyzS85nN46CnL/Ek ZrQhCqa/okL9rIpcU7cZyYYW/6B2NIylHITBDADLQxC1PdwThEQxm+BOgkX7rMmNiSj+9 27ChaPgVZbU0mTp4AGvwWeRtfCWPgK6oZ1dbvqqVpGbgpH2/3037N4MbSCH6rcfAqElX0 RBlgXM3JCxfqJ1Tn9LJpIqXkpi5Q99VCN1XYvyBv434JnYopfXe0DjsBtNMIFfZZMZYJC guZ1w2PFzhhEqAf0a+Dk3xPBM9fCKUto5kJVqsh/FF7SYxLR6TqtNRf4sMDFGcHXn6A== 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=v27RNCGPRe2o3hsy0+DA00Zji0+BdgxCoTzxDKt+raGp+Bygpz+LXDSfIYQRlxBcnpog GnymDN9Jsstlkm2sgxROfX4h+3qfQsFWBbXxwv16attqjsA4UR0HTo60AGBAdYVAjNciS ZI7n3FMDaekw1AkspsxaqfikB2Rfpeix+M/CIj+gjy2eqOPmM9BHrHEOTtnpZH9BXE08V 23ZHaqVR4nfoIpt/wX9/aKbkz5UG5tYmKblhU+YXgS73iIfNowx7k/aWU08CRkjH0i6us 8I6MZTzUl+E28BJsNxT+WLnOFQ2y+sKWdCmtspSlMM9XahbORkc8dx3stDoBN3JVnyA== 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.179 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 06202606A322 for ; Thu, 3 Dec 2026 09:03:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 06202606A322 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-f179.google.com with SMTP id 38308e7fff4ca-3acef9307c7so119345191fa.2 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=GLZEzPSNjMSDwIAgrPwmES1z5RA1URGZAVYiAytFJoJMPTEDaCCIrit7z66AiTCM3D FGEuDnJUvxwK8nKBRFlI15jDNDGMtKFCQCT/0xx0yf+M9JqGVmx51DYK7+KtrPJTZ5cn nuv5x1gITm1gT12l12rmVOYDqta79uXjocMrSESrvBhh/flT8AVR93APh8X7pHg4YxLr 6iT2IXJgQV7bcYMKJPeeLFB3lM0twRY4FIZtAaUmm+9IdFVL4JjXHaf1hT0Ducr4wt4z 8bx1CavLUupJwlPN3+lGtJ0j6O0+D0Wn5ulqolxxigPkKwO4MR22VI8t0XDe5L20KpVv GIDg== X-Forwarded-Encrypted: i=1; AL+hErFafu0IBtQlWRC6ytHxj3LrWDyTa7lzfT8xe/G8AyZf3zZgm8D+DiQtiYD6qcFx3BWc1pbynErcBsXX@vger.kernel.org X-Gm-Message-State: APuU4Z/oJTgsg0jVxOONKvE24eVBAaCzk/tEcJ/hLYth/NPasUiNtqeS NutIHhgqsty5cwXEfKA5YJTYpoE3VosUcvdRpDn4c2eb/GNsaYTg1aDz X-Gm-Gg: AZFdTZcs/OvaOysQzUEPldcVO80KO91GLb6AsWJKVaalAo8lZf1dcg8kb5PZsmp5Bbx SwvSCIKPTavPx4k4hVYV58jbdUyBwdFV5YRnDn7MdQ4h5Qff9G+8dbN3jhPnbw8Vgm70+r7Ej7c EbSdtWfNFdrmjnPG1weHJK7N9+xYDjXl4fe6TcwYDqQ8uDbI/J/O4rwx9g5bYwYq17DBRjFnLuc wut6lHZJovvNv/VoQF67gf9hFfyG3Q3N9EQZ+/+r89FF3E5Yt2KRgJfzKNKt22CIMgtS0bEaJSB /YeiaQACfWH4D8aM2RtuwUE4/gYqeiN5Y7k7nICA0Dl9DcSaADypI65uyd4xcysqaxP5g0iMQUd spwlrVd+JjElfI0WH4BAPPl+1Mrd91uR0OVMI0Hqzur7ND8fp/pZAXsqdpEpDkTNCwkYo0/XfEi KDAaTeY4VZNGa2Ay1ZEd2oW7njLQghz1BqnUmOXEnRs4DITPRPH8m/AOAPGQJFY9rZAfyTXbk7s 72fnSUWL2aMmdoZTSF6Mhmtz7eYfmrb9sBm4fU47bJOKkxFP2OR8id1Wu0aokwdC2DewibazBiX LD91eZULtnGQ+ad7bDjzu6fjox1gcAOeRtYbyPItjrjzIh6avkId0iy9CO8xw923vY9nYVzaJsi 5afBoe2Ne 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: 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> 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! ~~