From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796280903; b=sfhbbBHH/2ioJxfxaTIyk2o8ojAlWgtPhN4vPSLHksCFs6jPVGk3HMxsTcTCx3Cl9xAt hn8QA3DEwJ/oIzrcDKOUJbogMlGK4kZhtoEJYYuQ0hfbfXyUaiqi8PaJ5QcgP9K7a+1da rYqMm5e6p5t//YwShJdunT+9FmLnpXIN1x4CHBOKSyo2mrPYSsHRuoXuwzcKVOE3mnPRc MxhM9D3mSyp9GsXP06vTXsgmLNI64Tc1oMV7IHCoyRqE4OhWCXgCes+KVCYadffKC6FyZ rnaY83NR8cXYV3mXU82maB+gUR/M0PVzTToTgQdgCQVrzyil2Wfur5DoxeoX/pd8ilw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796280903; 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=LSa3ZPalZUNTDD4TocONtp9bgK0w3CuqBWjTn7cBiD4=; b=PXPAnSDqMvD9y2zf0pxk050JDnNzx7t+sgHXL8KBBrQrE97dccL4NdY9fOZDNnKwBim9 oCDKpu2S+Atst7JMPLchMe04rhUEb0znE6+UVfykecBGufrTGFUBRH2MY5dwMBfn66mON QLmvQxKV/CLHHqSKnKmQ3ZmTjfKPTr7BrD9V34UGZ9iTf1nwkoaKywpgHwLlRitBsbc4g mTDMw3LcKOHwilooeELOhKEDAM5QxTPymXRaNNNz6zPuYjQnxIzVoMcKQIsI+dtJri1lI AIkzuiSLOi0aSEpxSzxIMjK4JNVWFL0Sh51xQlHOei6nLTstvVoeg9gtKWHO4H/RQMA== 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="B/yZv3x6"; arc=none smtp.remote-ip=209.85.167.45 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 ABC8D606A32D for ; Thu, 3 Dec 2026 06:55:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ABC8D606A32D 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=B/yZv3x6 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5be3d5927ceso3534371e87.3 for ; Wed, 02 Dec 2026 22:55:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796280901; x=1796885701; 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=LSa3ZPalZUNTDD4TocONtp9bgK0w3CuqBWjTn7cBiD4=; b=B/yZv3x6txkwv+qVcp15ObTy8SppoG6RpTXs1lqZkR7qm7P+XivPRvd+Jt+B4f961d 4ViwhBzGB28BsWCJSiabyI6MR27GKrN7JHWtbDcHIefj6mD2xiBDVTwrf1/NPprhQb9p Vy5p0PWt21+GicHPGFYVGP3SBoirAdIb4XuLyr/jVzrCuJ4RNu5E2V2SDAICRvteWBXk Ee48kAO0yW29MlP4efsilA7wFNhyFUTpIBHwHBrQsfk6o+5bxiX4M//pZuzlFub9TTrr l5gYAxBWCA+gPO8+wstyUu1WF1Xr86qpVT+kUZsdLvV+dS59UFg0jOl0uK/2cmBH34Lz 51Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796280901; x=1796885701; 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=LSa3ZPalZUNTDD4TocONtp9bgK0w3CuqBWjTn7cBiD4=; b=QPVQkZJVLI8hwpuj3aQXuSLgMkpPVRwaICfHHy9O31Qj9YX8JHkIvDZoZ/j28NvYhu TXmpdbm7b+5N+HuubYrOqutnxf7H+oM01L3IAyEHKpuvVyRtJU2kKS1RtR30hMscEh5+ ERSx49FcXbKW/8t4LCQ9KMOMPGu95svE3A/Kqq4pCFRBeMBVeGrrWJZWXE5cjFtzFI8I qH+1VOhkBKd/eccGrdySt46u08O9Cg/acBpqWR3IvTszLW6Vr04CLarsli5GAxST7F+m qZFLqGzTZfnwM/Sgr6phvu4KWTzeKeY9HIb3Kxfeez/q7/Gy9aXGWuWFTxJLf/raFZoM KkKQ== X-Forwarded-Encrypted: i=1; AL+hErFcB1pZJR7xlTcQfvRkyuOL4GyKZGqxhX8Ze4/nk0Vy280rotiK6oGiolLH24bHX+i2RAxkkx7dI5U=@vger.kernel.org X-Gm-Message-State: APuU4Z+m/IMOLIFXVnLXq2yk54ShUmbnNuqiVy3tTh97cF8+zLlogB5X UvdXVCpisdb/KFQmBI3glDKaogHNW69ZNWIsxnlnK4OsHZb18sjlg4Il X-Gm-Gg: AZFdTZcY+gDt2IUfBWe0drkVJ8TeMeeXIeFlYndk1cfumS8d90glhKg3+aMm+YNK+Sb 0aF20UzJpXYdklul8icTBFu0pbHUQIIkjKX9DLgc7+AiNNfTYh15z1XY4X9Se25x7/E9G45vLnn hBXEN9NbPsFn9S9x1/PAGiLW0P83wktJY/ydpwQ8kjLIqXeclQ7leA3mZs9aI7PJWszAoyJfl1G uwBy8KHuXIG27PcnZHsvenHJZ9K2WNNcMEzIdIrA5/HiunlqlCYTcdQ6jUUvkXUFPjJBEuC5Hu2 UjgGrbxDn+1D3wfTXijSeLHdmaJu2sQfq8Ljd+b8oBK7XklfX60UQHqNaW6LjcL2ahSZ2CnS7l+ a9Jg2MZvSzTq9bPU4mSHr8rr5Zr3cWEZhSue3LqCSIHHFeAtocIRVMXgRhu7ynuFrJWS2kgEPvN +hQ5oujyv+SBLS6jk3SPJyh1kbPFJRFJSLTVdgvOqfBGWnitX1TAR6YRPFY072s/s7cD1x8EbgE SItuVyT2cUEAsJgVdF8pS2iMMWrDMM8n/oyaVcDIm2Gg2MF0dHj+YQ5W5FPzgABuI9w6YoaR61e BcPjGcpnKsEAS/jZTRY3vq/QDko3x4AcFj9VvawXtNXz09gyWAn0JSavD34pJpa0MlnzRklmIXf 7Os4dEmOz X-Received: by 2002:a05:6512:114d:b0:5bf:d653:ff30 with SMTP id 2adb3069b0e04-5c1bc6f6ca8mr13957104e87.7.1796280900636; Wed, 02 Dec 2026 22:55:00 -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 2adb3069b0e04-5c335ff46f4sm5135912e87.19.2026.12.02.22.54.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 22:54:58 -0800 (PST) Message-ID: <5d4fa0ce-3804-438e-ae07-8418ad00256f@gmail.com> Date: Thu, 3 Dec 2026 08:54:56 +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: 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> Content-Language: en-US, en-AU, en-GB, en-BW From: Matti Vaittinen In-Reply-To: <20261202-stingy-hungry-8fe162c0d9d4@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. > Please note > that here. > With an explanation, > Acked-by: Conor Dooley > > pw-bot: changes-requested > > Thanks, > Conor. >> >> Support BD7971x by adding compatibles: >> - rohm,bd79710 >> - rohm,bd79711 >> - rohm,bd79712 >> - rohm,bd79713 >> >> Signed-off-by: Matti Vaittinen >> --- >> .../bindings/iio/dac/rohm,bd79703.yaml | 34 +++++++++++++------ >> 1 file changed, 23 insertions(+), 11 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml b/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml >> index 1ec44e62f50b..4a37c7c39789 100644 >> --- a/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml >> +++ b/Documentation/devicetree/bindings/iio/dac/rohm,bd79703.yaml >> @@ -5,18 +5,24 @@ >> $id: http://devicetree.org/schemas/iio/dac/rohm,bd79703.yaml# >> $schema: http://devicetree.org/meta-schemas/core.yaml# >> >> -title: ROHM BD79700, BD79701, BD79702 and BD79703 DACs >> +title: ROHM BD7970x, and BD7971x DACs >> >> maintainers: >> - Matti Vaittinen >> >> 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. >> + Datasheets: >> + - BD79702 and BD79703 >> + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79702fv-lb_bd79703fv-lb-e.pdf >> + - BD79700 and BD79701 >> + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd79700fvm-lb_bd79701fvm-lb-e.pdf >> + - BD79710 and BD79711 >> + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd7971xfvm-lb-e.pdf >> + - BD79712 and BD79713 >> + https://fscdn.rohm.com/en/products/databook/datasheet/ic/data_converter/dac/bd7971xfv-lb-e.pdf >> >> properties: >> compatible: >> @@ -25,6 +31,10 @@ properties: >> - rohm,bd79701 >> - rohm,bd79702 >> - rohm,bd79703 >> + - rohm,bd79710 >> + - rohm,bd79711 >> + - rohm,bd79712 >> + - rohm,bd79713 >> >> reg: >> maxItems: 1 >> @@ -35,14 +45,14 @@ properties: >> vfs-supply: >> description: >> The regulator to use as a full scale voltage for outputs AO1 and AO2 >> - on BD79702, and for AO1, AO2, and AO3 on the BD79703. The voltage >> - should be between 2.7V .. VCC. Not present on BD79700 and BD79701. >> + on BD797x2, and for AO1, AO2, and AO3 on the BD797x3. The voltage >> + should be between 2.7V .. VCC. Not present on BD797x0 and BD797x1. >> >> vcc-supply: >> description: >> The regulator supplying the operating voltage. Should be between >> - 2.7V ... 5.5V. Is used also as a Vfs for all outputs on BD79700 and >> - BD79701, for AO3 and AO4 on BD79702, and AO4, AO5, and AO6 on BD79703. >> + 2.7V ... 5.5V. Is used also as a Vfs for all outputs on BD797x0 and >> + BD797x1, for AO3 and AO4 on BD797x2, and AO4, AO5, and AO6 on BD797x3. >> >> required: >> - compatible >> @@ -57,6 +67,8 @@ if: >> enum: >> - rohm,bd79702 >> - rohm,bd79703 >> + - rohm,bd79712 >> + - rohm,bd79713 >> then: >> required: >> - vfs-supply >> -- >> 2.56.1 >> > -- Matti Vaittinen Linux kernel developer at ROHM Semiconductor Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~