Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp541570lqp; Sat, 13 Apr 2024 07:55:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX431z6jif9btWTvs+31T11wll7G5W27W1UFSF0U7lzNMfeeoIqFVWvULgwQpU3fM4EuMdIDeBGC3XtiqzWhxqVW1rEWtTk+bSp+xIccA== X-Google-Smtp-Source: AGHT+IFYMArpZ/alyLNDLSDjnkZTQXOg7jEVXVMT0Bf6h0bpkUfBX03BTU5gEBaZ5JkZcw2ezrwV X-Received: by 2002:a05:6a20:96d3:b0:1a3:e2be:604c with SMTP id hq19-20020a056a2096d300b001a3e2be604cmr4998899pzc.28.1713020116559; Sat, 13 Apr 2024 07:55:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713020116; cv=pass; d=google.com; s=arc-20160816; b=anfcBBUPaEPk1O/UuSkiP6cuREAh4ehdMLOyUP4b2pAYLT7RkdpXg8CpnCKd2DE5L9 2o+f+BYIcFUY+aXmYRDeLygt3FEDTRETZsVAQPf1hXxgHWUMwGLR0EZ/z33Ofp6LGB0N T8WduBdtqPqxG1+jOXQCFiZMF+jwhEjhow6zGErKyIe6HNGuAM2JAH5725yd7eOxpThY ZxcKkRBn+b7knN4P4/l22daFz1/NqR2IbCbjxlaPx4+tV3927b5N70VDXpo+G1fWC+PO cyGh4QkYqufu73qXDak5pMncf6/JJjzgnNcZekal28UycC+VHPYGX7dRVOUBxSzS4nvb cvhQ== 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=aHkqzaZhMj0CK6HvxPAynRWJojSFrZxguekns+Q35GI=; fh=2oJEEU4XpJOJaFMtCW7R9A9AaGxLyZiP8PUOvCJLzgo=; b=r3K95agZpEHHNI6WOc/qwikB8daaiY3Sit3fI2sHaGUabCd8ccFR8RNbIe9V8bEnyy LR7578KVF0BsL7T5POg4oqUaGB10bdAKC2xmY/kJUpukjrvOra1Ed9/9feB5cWdKBAPS jjGeM6NkgvdKLebWq9rtGHavHS2RNNkKJ/3DN3Zn0hMaN2Qb/iUGx9dYd8ZNGHGcvmlP sZW8m1xs4DlWppCC5p8zYy1GFrrdJB8UOR5Zmss7/SPPcxY/XHTYs0e9OCuItGLiHxdb KOoxxJMxZYuzJBZqheOI394Yny0sRoPMZ487Uet7jOn3LGD6vmah8E3zfE2Y5sn6HRdh Ohqg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c6GyervT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lm16-20020a170903299000b001e3e6fe30f5si5114991plb.104.2024.04.13.07.55.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 07:55:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c6GyervT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-143756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143756-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 439B6282304 for ; Sat, 13 Apr 2024 14:55:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C71945942; Sat, 13 Apr 2024 14:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c6GyervT" 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 834A41F94C; Sat, 13 Apr 2024 14:55:08 +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=1713020108; cv=none; b=atMWM0s2BwX8ZkXNt8bcn/9B+1w1qfE99SOw9RakaHUi7vTo3ubXMdjj9uX/RvFK3sN8BYQGYXv5eJcaUNSUxTUuRkefmymEFzmtzLtjR/5bqaaRKnabZoBepH/JVlxaME/j9m6pFYa/1bpdySV4uayJKhRnQH2PSLfYuFOAXAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713020108; c=relaxed/simple; bh=rRDKKaeTAiGHTGq3L0Kf8LX+mIwIGdchgWI7zKiN+fU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jzFpqeQ9AI0nx1sh70p1PcXqD3S/6aiLlrTBnpgbnhBvjN3rIN3XnAd2kH6xOAePyYp1qK7EqhbqltJW9sudd+ET1/sa/xUPXixc7wK07VCPlRKWxcFgUdesvYXN3rDSrvSEat2O0mh+ufRFDxUVopCDeQWNhTaFi1uhgKY5ObY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c6GyervT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE372C113CE; Sat, 13 Apr 2024 14:55:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713020107; bh=rRDKKaeTAiGHTGq3L0Kf8LX+mIwIGdchgWI7zKiN+fU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=c6GyervTMBZPf4K9enlbb3ujhuUhFr8CbPpFP5IG8s49Lb5kQEfxMU3nwVVI8Xc5Q OGulkKFFzM8iIOnEfx4XVFq5UpaW4hkxr3CGI+AoxoTZZ9/psYb085dQHS0LfyEiuK GxReY0fZdOrStkeUyUKJiKyw71ZK8A7DpCf8nYg9ajgOIs+R9CzqMRxqE5XOLNU5/N ijiRYK7JR53vqw79jIKtr2Qy0RKmTVWnGQKCFgG3HoLuVbhCXOHZaaTrFvW6Lfe0L5 7bgQldEynp0nUvWlDu47spDBFgiBD1bHkW4Poc7PQGGx+j4nNWW1zMYRMoD4ptzt9s UuHqhUjmMC3Wg== Date: Sat, 13 Apr 2024 15:54:51 +0100 From: Jonathan Cameron To: Krzysztof Kozlowski Cc: Kim Seer Paller , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , David Lechner , Michael Hennerich Subject: Re: [PATCH 1/4] dt-bindings: iio: dac: Add adi,ltc2664.yaml Message-ID: <20240413155451.65bd32ad@jic23-huawei> In-Reply-To: <34de2d9b-c62e-4f18-806c-560ba4474237@linaro.org> References: <20240412032102.136071-1-kimseer.paller@analog.com> <20240412032102.136071-2-kimseer.paller@analog.com> <34de2d9b-c62e-4f18-806c-560ba4474237@linaro.org> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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 Fri, 12 Apr 2024 07:50:17 +0200 Krzysztof Kozlowski wrote: > On 12/04/2024 05:20, Kim Seer Paller wrote: > > Add documentation for ltc2664 and ltc2672. > > > > Co-developed-by: Michael Hennerich > > Signed-off-by: Michael Hennerich > > Signed-off-by: Kim Seer Paller > > --- > > .../bindings/iio/dac/adi,ltc2664.yaml | 230 ++++++++++++++++++ > > MAINTAINERS | 8 + > > 2 files changed, 238 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml > > new file mode 100644 > > index 000000000..2f581a9e5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/dac/adi,ltc2664.yaml > > @@ -0,0 +1,230 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/dac/adi,ltc2664.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Analog Devices LTC2664 and LTC2672 DAC > > + > > +maintainers: > > + - Michael Hennerich > > + - Kim Seer Paller > > + > > +description: | > > + Analog Devices LTC2664 4 channel, 16 bit, +-10V DAC > > + Analog Devices LTC2672 5 channel, 16 bit, 300mA DAC > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2664.pdf > > + https://www.analog.com/media/en/technical-documentation/data-sheets/ltc2672.pdf > > + > > +$defs: > > + toggle-operation: > > + type: object > > + description: Toggle mode channel setting. > > + > > + properties: > > + reg: > > + description: Channel number. > > + minimum: 0 > > + maximum: 4 > > + > > + adi,toggle-mode: > > + description: > > + Set the channel as a toggle enabled channel. Toggle operation enables > > + fast switching of a DAC output between two different DAC codes without > > + any SPI transaction. > > + type: boolean > > + > > +patternProperties: > > + "^channel@[0-4]$": > > + type: object > > patternProps go after properties. You miss additionalProperties: false > and actual properties defined in top-level part of the binding. > > I wouldn't call your schema easiest to read. You have two quite > different devices. I agree entirely. I think it might be simpler to have 2 bindings. If you haven't already tried that give it a go. Note that we can have 2 bindings that in Linux are handled by one driver (examples already exist max1363 and max1238 IIRC) as well as the other way around where we have one binding and 2 drivers. Jonathan