Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1151648lqo; Sat, 11 May 2024 09:25:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnlUQnOG9nBPy/07YGeC/N2eCh6MfZZwas6iZrRwLoIXGEfeeB9akSc4rrjz+B8JXVhYB94Pxi0c8KDmMZBD2tCdGH2htlitDEiv1o2g== X-Google-Smtp-Source: AGHT+IGdMWKKJg3ffEyJgLjBGD+BOnLfVTEoVeEFf5ap/Sfuz/4azzSMGyPvysUu6wFCHOOewY7S X-Received: by 2002:a05:6214:2dca:b0:6a0:5c0c:c84f with SMTP id 6a1803df08f44-6a16824bc47mr90598966d6.55.1715444723767; Sat, 11 May 2024 09:25:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715444723; cv=pass; d=google.com; s=arc-20160816; b=MyyG6MYLGYeopQWXzMFUBk4VUN+prIqQ8KtPcyR7oLy8UCXcCNUN9TZY+xncFwD69T eiEHfr2mM4AHcvrOI6myV4iScA7nsE31VD3IwMB/tp3FSb/H+lWIt5EEHxh8RU+RWPfj atQWJ4gL3DGwdPpQSNVTMuanUlgCokO4iMxEujrlvz8gq4KC95IY1sUX1GvUp084Xb6g m4wLtYZe+0W31j2VIyzVSTYWisUQW13DmMdz/JoESU1A2dcUZeHyP4YYXfU3iZ8CmlvS jWItr0d1mZhmDOUUfj9+DPf+w4YNiVaAlVORneaP5XkgMQ1efnwsEKlePEqfFLVFRQUG xEVA== 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=72T9sT9W8NyGguCN4sIgXVGnbVd6M8ioN9rUPrW49yE=; fh=3aR6AE3tOsBoRmi/0fys5g5WNsPMOXz1nKhERDJIcyI=; b=PB2n7iarNgwM2pb64tAgNjeKc6Kif+8kwns91fUnv97UhIWfRnhGDoXJGb4T6T5L2N WJMgDkhu5rrhxp4IpVZ03G1VDNkTaDZeVsLI8fe5m67VvF1GpDgCzBzNnl6Dq9nT9Kq+ k2ikkF2Xtd9pDTGB6IpChevnSD2nYVyFgX8bSUtHQc1N64fEIGp2iCVonin3fOGZrtpr HAF8Zp4LxaPHsPMf9qIN7YpRvsCPazDk8m8tiEewD36j8q2G4/nSsYIb6TGV+WQbmPLG CUU3ZZDbFoeKQzO+DLpJFMlvD/bqvJuVoMbtIxHuuFZgFyXwr05xvWcCLzdC9J8lhoTb Rclg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hVaDlUDq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176642-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-6a15f1f988fsi60231516d6.126.2024.05.11.09.25.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 09:25:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176642-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=hVaDlUDq; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176642-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176642-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 701B11C20E54 for ; Sat, 11 May 2024 16:25:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9962D57323; Sat, 11 May 2024 16:25:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hVaDlUDq" 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 AA7BB56772; Sat, 11 May 2024 16:25:13 +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=1715444713; cv=none; b=EY/ku2VW+yzu0TbWoAUG5YqNBHlwGsAMVU3A+ZnEtBpIkscPwc5K8GMbNXK59zu1AaXTN8TMNcnI5Ygwv3FC4cXAQVnAEzdAVElCXjVPMdidYoApoj2PFAgBnkTaWzL1dvA7WBaDZP1y2fb8pgeZKXWMFfdIFq2mjyDBZRCnllM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715444713; c=relaxed/simple; bh=PoZ0hnBSYNcpGCRh+GVodXfFczNN0WpcaG9zsi291mc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GoD+k0vvd4cte01Pi3RqdUCv/G6lD924UMQV+KWo+fnCrVC9jC9tfTscmOH9fmkpPGVtFQnUO2qnM/VyO40ptuIuu/Xc263Dw7e717FW9qlHk6HoQK4SGCSqvuJABk5xe0mOksGpb+mdADqt1F7DFIFU4Q6RFc/GLNxPmJqkmvo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hVaDlUDq; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54983C2BBFC; Sat, 11 May 2024 16:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715444713; bh=PoZ0hnBSYNcpGCRh+GVodXfFczNN0WpcaG9zsi291mc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hVaDlUDqc2PLNffxiiFiED2qvAcfwrRnzjaogkiTzB0ouPyGNV7WKfjn8LF4I9ztg tm/bGfuG0b8Za4M4lPvd8jBxONYQSw8fRR6uYx+Svm8CmnC6XheYri/vrYTspo36bO tpJZ9cVGAJ6yqN5sGd/2teB5uzej58WkRg7wmawphCKbO6jvO5Q/LRKOQslYFs+zWo 1jX3wAkUFYWoaQ0avusDCF6PoJC6QnLFXux2PIzEwhZGnnzFCKPxDnhmQfv5GlKnRj QglqYE85+RcxcPu3s3DSg1FKt7lBiRFLpF21Zv+feN8abAjZ8AAPS0Czt34/KhCQCs 20l0MsOyrr5zQ== Date: Sat, 11 May 2024 17:25:00 +0100 From: Jonathan Cameron To: David Lechner Cc: Mariel Tinaco , 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 , Michael Hennerich , Marcelo Schmitt , Dimitri Fedrau , Guenter Roeck Subject: Re: [PATCH 1/2] dt-bindings: iio: dac: add docs for ad8460 Message-ID: <20240511172500.718fe12d@jic23-huawei> In-Reply-To: References: <20240510064053.278257-1-Mariel.Tinaco@analog.com> <20240510064053.278257-2-Mariel.Tinaco@analog.com> 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=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 10 May 2024 12:28:19 -0500 David Lechner wrote: > On Fri, May 10, 2024 at 1:42=E2=80=AFAM Mariel Tinaco wrote: > > > > This adds the bindings documentation for the 14-bit > > High Voltage, High Current, Waveform Generator > > Digital-to-Analog converter. > > > > Signed-off-by: Mariel Tinaco > > --- > > .../bindings/iio/dac/adi,ad8460.yaml | 67 +++++++++++++++++++ > > MAINTAINERS | 7 ++ > > 2 files changed, 74 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad846= 0.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml = b/Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml > > new file mode 100644 > > index 000000000..924f76209 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml > > @@ -0,0 +1,67 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +# Copyright 2024 Analog Devices Inc. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/dac/adi,ad8460.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Analog Devices AD8460 DAC > > + > > +maintainers: > > + - Mariel Tinaco > > + > > +description: | > > + Analog Devices AD8460 110 V High Voltage, 1 A High Current, > > + Arbitrary Waveform Generator with Integrated 14-Bit High Speed DAC > > + https://www.analog.com/media/en/technical-documentation/data-sheets/= ad8460.pdf > > + > > +properties: > > + compatible: > > + enum: > > + - adi,ad8460 > > + > > + reg: > > + maxItems: 1 > > + > > + spi-max-frequency: > > + maximum: 20000000 > > + > > + vref-supply: =20 >=20 > It would be nice to make the property name match the pin name since > there is more than one reference voltage input. >=20 > refio-1p2v-supply: >=20 > > + description: Drive voltage in the range of 1.2V maximum to as low = as > > + low as 0.12V through the REF_IO pin to adjust full scale output = span =20 >=20 > I don't seen anything in the datasheet named REF_IO. Is this a typo > and it should be REFIO_1P2V? >=20 > > + > > + clocks: > > + description: The clock for the DAC. This is the sync clock > > + > > + adi,rset-ohms: > > + description: Specify value of external resistor connected to FS_AD= J pin > > + to establish internal HVDAC's reference current I_REF > > + minimum: 2000 > > + maximum: 20000 > > + =20 >=20 > I see lots more pins on the datasheet, many of which should be trivial > to add bindings for (we prefer to have the bindings as complete as > possible even if the driver doesn't implement everything). Potential > candidates: >=20 > sdn-reset-gpios: (active high) > reset-gpios: (active low) > sdn-io-gpios: (active high) >=20 > hvcc-supply: > hvee-supply: > vcc-5v-supply: > vref-5v-supply: > dvdd-3p3v-supply: > avdd-3p3v-supply: >=20 > It also looks like there is a parallel interface for data, so I would > expect to see an io-backends property that links to the PHY used for > handling that. >=20 Ultimately yes, but the parallel interface might require some decisions on= =20 binding that are non obvious until it's actually implemented. So maybe don't need that bit from the start. The rest I agree should be here. >=20 > > +required: > > + - compatible > > + - reg > > + - clocks > > + > > +allOf: > > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + > > + spi { > > + dac@0 { > > + compatible =3D "adi,ad8460"; > > + reg =3D <0>; > > + spi-max-frequency =3D <8000000>; > > + adi,rset-ohms =3D <2000>; > > + > > + vref-supply =3D <&vrefio>; > > + clocks =3D <&sync_ext_clk>; > > + }; > > + }; > > + > > +... > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 758c202ec..dae93df2a 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -1234,6 +1234,13 @@ W: https://ez.analog.com/linux-software-dr= ivers > > F: Documentation/devicetree/bindings/iio/adc/adi,ad7780.yaml > > F: drivers/iio/adc/ad7780.c > > > > +ANALOG DEVICES INC AD8460 DRIVER > > +M: Mariel Tinaco > > +L: linux-iio@vger.kernel.org > > +S: Supported > > +W: https://ez.analog.com/linux-software-drivers > > +F: Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml > > + > > ANALOG DEVICES INC AD9739a DRIVER > > M: Nuno Sa > > M: Dragos Bogdan > > -- > > 2.34.1 > > > > =20