Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp95048lqp; Sat, 8 Jun 2024 07:32:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAMzJjzqrTGbwP38HsCw1tUdaSmWYmNgv5dukY9LstzofySz2+8KqmrsZqaiO0JexJX4hLaInQAptvXWVHwyl+GfOr8AMGQSTU2XKecQ== X-Google-Smtp-Source: AGHT+IG6BWpOIG/L+5z8gUENiqrMg7nnyNoexcaNdsG8MAeeF/ItaGZCHIEylKeDWq2SBfVV83sn X-Received: by 2002:a05:6214:3107:b0:6ab:98a1:c384 with SMTP id 6a1803df08f44-6b059cfad09mr56661126d6.29.1717857167432; Sat, 08 Jun 2024 07:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717857167; cv=pass; d=google.com; s=arc-20160816; b=bzYJJn/Bj2zG6NyO38T6XGqiwVrjMtClM2DIWJYOugsWf8uFBwg0iNkZFjmcWBp1SQ QIp7ZP7NBCGSSKYpU63jYd1uXv0GXnLsxqGEAr2zUKvayA7eQ5U1xlouH6/y60ZzZtPm DdnBL+WovqEMt84YXITOdEqN6n0EYH/rZ9V9OzYVeGA+yMCtYYs/jR2awWQbB3e5M7uW C4T10T4OH0OtOpET8DOWjJ0a/ckYnPNfviS1h8LAy7o8Srp+Ms8bkdGyQxgp3NTAU3Pq 6kevOygViLrQpHkLw61+aBHlF5hosf0z5YONm7sYx8QxOXGwfJbsdIaVsva5cIGqXIc/ dMxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=+FEDtlLLgrA9qAGTyRcbLYUqzCtH8oezRf7Mo4JRLT8=; fh=9H9zBTH1xv2Fnr7dLcJWux1aBXjCcpGmcSOjX4iDaTk=; b=Snfn0jRMEF1Kcqz8s8KXU/74t1Y7a4qGKAx3XdqF+C5CEZcF1lAMRLIxBOiVJCPBZS YmUQtkhlixS8UfiDDuX5V7BMhITd9U5ne0q5RVg6Nm6gwuF/20s9hjUZE2lVxJsoQwKo kzya5iW2D5Nb31K+r0m7++9EZCC4w547lIDyK6rrAiDYY6ZCW1tDP2OnezlBqJhg9pKR gveShLDpaCHJ9qjTL4v/bpaf8KjhE/oFP12g19rQrooy1OYkLFy7ydmea8Mu6r1MvRQO /a67Kj3EfEM981YpMdDo0A5bzfCFuvGIqTGy0SYwlDCyNApV2OedWEpjpyZ2cNlWZ6sg eKZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LVxr6HeC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f998340si62433606d6.335.2024.06.08.07.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 07:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LVxr6HeC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207069-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B1451C2107B for ; Sat, 8 Jun 2024 14:32:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9D89C17A936; Sat, 8 Jun 2024 14:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LVxr6HeC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBD2B1FBB; Sat, 8 Jun 2024 14:32:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717857158; cv=none; b=C1b+WN+vsSHIR1YKYSg1PR+H+Kl2b7edWSIzy7bGiSTc2dWwejgeNlBJ9HwE8+7vJrTrM+YyHn3xDtXSF9E7thcK2jENq9Es4+xwVUS0lO8GWy/Si3YEXkuk1IjOdKAzwOd13CCBV6G0P58ta2kkJ53OXR8kjW3Ass6q5TLpuZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717857158; c=relaxed/simple; bh=zGEPcDt853zwTvT5c/vkd82U97Wq4qbke8w4K0IQ1oU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nNXu5WHwCgyQzwbMS/VqspYU9kRV5IkP7LBqljC4dn3Y8RKLp8VNCb8+ZK2kPmCmtDUW+vRn6fJPDsc25h0DLhZV02TkRICO0RToVBigFpA1Iipdrvr1FC5+gHraALk82av/eBF+hmpYXJro51UocuM+vixkUatjP1/PEzyKvFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LVxr6HeC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91FB9C2BD11; Sat, 8 Jun 2024 14:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717857158; bh=zGEPcDt853zwTvT5c/vkd82U97Wq4qbke8w4K0IQ1oU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LVxr6HeCpiXGfDae+9YHPzHKV4zTBtFO+V66iRYJuTFltZ/q52Xsuo4CsH6ZXqb4Q NnOTW6mGV6ix5FBND9wB3pxhJd0VRNbAtHDLMrMsj1p5BV3QX0F6l6eelp0RtOs5QZ pNevnq6SG2FIOZL50RQYMnsEZNTiOUTRYUfIcM5L/tvwIOhvdWPeb5k8kxuByp/ksr 1NLtI9rqxb+3NlYPkVBFtM2chX5LxJvucRPKQrtF6agpjGVL5QbAR+ybBY2AKCb0eX bngCHOu8SEkAKs5BwqqWoi1mQrez8+gjucTxGz4GzE+OwT2Y9qf6A8kekrddQI0wOQ ohkiBTM1LBMuA== Date: Sat, 8 Jun 2024 15:32:31 +0100 From: Jonathan Cameron To: David Lechner Cc: Krzysztof Kozlowski , Kim Seer Paller , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Lars-Peter Clausen , Liam Girdwood , Mark Brown , Dimitri Fedrau , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= Subject: Re: [PATCH v3 4/5] dt-bindings: iio: dac: Add adi,ltc2672.yaml Message-ID: <20240608153231.02f839fd@jic23-huawei> In-Reply-To: <3dadacf8-1349-483d-b264-dcb41d2cc3fc@baylibre.com> References: <20240603012200.16589-1-kimseer.paller@analog.com> <20240603012200.16589-5-kimseer.paller@analog.com> <2942a938-19b9-4642-8ed0-8e17e4825bc5@baylibre.com> <3dadacf8-1349-483d-b264-dcb41d2cc3fc@baylibre.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 4 Jun 2024 08:53:27 -0500 David Lechner wrote: > On 6/4/24 1:47 AM, Krzysztof Kozlowski wrote: > > On 03/06/2024 21:59, David Lechner wrote: > >> On 6/2/24 8:21 PM, Kim Seer Paller wrote: > >>> Add documentation for ltc2672. > >>> > >>> Reported-by: Rob Herring (Arm) > >>> Closes: https://lore.kernel.org/all/171643825573.1037396.2749703571529285460.robh@kernel.org/ > >>> Co-developed-by: Michael Hennerich > >>> Signed-off-by: Michael Hennerich > >>> Signed-off-by: Kim Seer Paller > >>> --- > >>> .../bindings/iio/dac/adi,ltc2672.yaml | 158 ++++++++++++++++++ > >>> MAINTAINERS | 1 + > >>> 2 files changed, 159 insertions(+) > >>> create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml > >>> > >>> diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml > >>> new file mode 100644 > >>> index 000000000000..d143a9db7010 > >>> --- /dev/null > >>> +++ b/Documentation/devicetree/bindings/iio/dac/adi,ltc2672.yaml > >>> @@ -0,0 +1,158 @@ > >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > >>> +%YAML 1.2 > >>> +--- > >>> +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2672.yaml# > >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# > >>> + > >>> +title: Analog Devices LTC2672 DAC > >>> + > >>> +maintainers: > >>> + - Michael Hennerich > >>> + - Kim Seer Paller > >>> + > >>> +description: | > >>> + Analog Devices LTC2672 5 channel, 16 bit, 300mA DAC > >>> + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf > >>> + > >>> +properties: > >>> + compatible: > >>> + enum: > >>> + - adi,ltc2672 > >> > >> The linked datasheet describes 12-bit and 16-bit versions, so should we have > >> two compatibles here? adi,ltc2672-12, adi,ltc2672-16 > > > > Is their programming model different? > > > > I replied to myself already with the answer. After looking at it more it > does not appear that is the case. > For a DAC, this is an interesting question. The wrong impressions of precision might be a problem if someone is trying to tune the value. Say they set it to +15 and look at some other sensor for the affect. They expect to see something but get no change at all. They might assume the circuit is broken. So I think yes the programming model is different and that should be discoverable (ideally from hardware, but if not from the compatible) To take an extreme example of extending the logic of these being the 'same' from a programming model point of view, would we consider a regulator that did 0 and 3V only different from one that did 0V, 1V, 2V, 3V just because the second bit in the register was ignored? I think in that case we'd consider them to have an obviously different programming model. We have a few cases where we do paper over similar differences in resolution, but within one part with different settings rather than between devices (so that's a driver limitation, not a DT thing). So I might be persuaded no one cares, but in my view the programming model is different in a significant way. Jonathan