Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp655865lqo; Fri, 10 May 2024 10:28:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXhh7vB+zmRINqddadSfBWTrw1lan+awKA9Hjp6u8hVqVFBNUupW9fAI5X5kjex3o8ay9/VTgWFqK07BTfd6ho43ZlrcTo8B2EFzuRHxA== X-Google-Smtp-Source: AGHT+IHfx2EN2ZDyn3KmFcp+0wSxyw3E/6ZKU54YnOrgpLQe3/shfhutMFI6+bvWu4AZS9U8DCZ+ X-Received: by 2002:a05:6871:8a9:b0:229:f768:f6fa with SMTP id 586e51a60fabf-24172a23421mr3928182fac.8.1715362125264; Fri, 10 May 2024 10:28:45 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d15fsi380425585a.717.2024.05.10.10.28.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 10:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176044-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=neutral (body hash did not verify) header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=NwdxzvCv; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-176044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176044-linux.lists.archive=gmail.com@vger.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 CA6E01C21F39 for ; Fri, 10 May 2024 17:28:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76D1618AE4; Fri, 10 May 2024 17:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NwdxzvCv" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3E9017579 for ; Fri, 10 May 2024 17:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715362115; cv=none; b=J1opuhBckWnH+YS97VI1V6dewaPvwKu9c9Qmob+3wAiXhP9wJFBBrlFW77kpEeZ3AmE73jwO/3uciPG/KUoz57ntTaDzankirFXmwq3RCMW5pQ2gTPpQS2wH66RwEWkhQhDXYBebiq7WHyObVyekTr3P19+CBifnmGnCX+dAC7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715362115; c=relaxed/simple; bh=qf8oKr6WwamfpnpYFNCQqPVeWG4DFXu0MVvhKXbSr5Y=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mo/Rfgi8nnya0Bkli5LDnYjskxiLOvH2U9eloMOXC0yvxJbe/+1JRAW4wZurESQyMVxtDkZVh/EDkRf/eTh+70w/q5+lDZXRLsZNV6J6mRIZRecOUbFxfIhe79NwSkJO/KQWqnmoEaH9no/pcfXpeVw3YiPp7LVJg739LnTY6iA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=NwdxzvCv; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2e3e18c23f9so28820231fa.3 for ; Fri, 10 May 2024 10:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1715362111; x=1715966911; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=T3rbohNuOg29gHEbrkJJS5rW7/8AkwQEBcxPdlAaH+o=; b=NwdxzvCvSYkZWtXUm1h0wXCioq734I5bnshzbtHQLyjiHJtWgejmrinMFOqZFPCkKW 7FB4QKCLbu/8Q+ZgWCVpO41NoPRhu0+K4M8tizRhuG4A10Z7HtxZJztObzsjaTV+fO/m n2O84BWhFYG+VU3wJ0gvVOOF1UPnHIYnsyf2j2d8RT0QuzL4cXay2iKuBeumQsCMA7iT yjj9YtsYoz53ZLMZ/9Ov+4md3zDariQNcs95/LzGREo7bC67Et9E/vU+iZzwpS8cQ7Fx C3zXv0Tb1zAnzA1aQkregal1bAZeG6ShN1SRz6nQa2AazBbkN2f4kPlQWrv0Tb7ZqVct EBaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715362111; x=1715966911; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T3rbohNuOg29gHEbrkJJS5rW7/8AkwQEBcxPdlAaH+o=; b=IFzmqnyaanQFpC0U0OHBMqZJZXPULu0Ycwptg79iYlT+xKdbqH370/zSQztlvRiiTC i9Jqy4yExt89Hg6t4/7ZJx3D48abw3qxebFxROMh2EUwrXB4lwMriiqEQkhNmmwT+iqC z/ABlwAG7UD0vjYBquBBa/ZgDdkLe8lZoJ5cgpLBmMXIl6td5Pp0ytv7q2kRLbmWAc9l YGd+ehhV+bVyXM0vDKBgyMCjp4SXdHHHeIw+WMG3XXUIu2l1zLUXVbeQ808Dj0yDC7qD E806nI3Cjm1Ig3MiD5arqTG3gOU/VAR95eANhZgf0zCE13A1zRFMWFwIynDls8TdhM19 12XA== X-Forwarded-Encrypted: i=1; AJvYcCVKr6qHIsFwIWgY15uz9+Z+fYcZ+M4R69merqdPsSYZj86qhKlzuzyiNMUr4Dt6N5uaw+yUSEfMkTu1tepB4fy7c9xEBZLUpWh52GNM X-Gm-Message-State: AOJu0YwqeKM4ofFRiqkTAfp+oJ2yhFiBm10+B8LJIIFewbBjIAbC+sPm Kb6kBb3DFCnk2sA670+hlQmTc/blPvm6Qd0cMXRtkRDWi0uT4tFvAz0QZavOrTnsrdw5eJvJveu V4c7JtISPc2/YxcvABBjCH03oGyFDjbjyqu9CAPmhtngMwy8M2vI= X-Received: by 2002:a2e:8847:0:b0:2e2:2791:983e with SMTP id 38308e7fff4ca-2e51fd451femr20534891fa.13.1715362110805; Fri, 10 May 2024 10:28:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240510064053.278257-1-Mariel.Tinaco@analog.com> <20240510064053.278257-2-Mariel.Tinaco@analog.com> In-Reply-To: <20240510064053.278257-2-Mariel.Tinaco@analog.com> From: David Lechner Date: Fri, 10 May 2024 12:28:19 -0500 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: iio: dac: add docs for ad8460 To: Mariel Tinaco Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Michael Hennerich , Marcelo Schmitt , Dimitri Fedrau , Guenter Roeck Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,ad8460.= 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/ad= 8460.pdf > + > +properties: > + compatible: > + enum: > + - adi,ad8460 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 20000000 > + > + vref-supply: It would be nice to make the property name match the pin name since there is more than one reference voltage input. refio-1p2v-supply: > + 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 sp= an I don't seen anything in the datasheet named REF_IO. Is this a typo and it should be REFIO_1P2V? > + > + clocks: > + description: The clock for the DAC. This is the sync clock > + > + adi,rset-ohms: > + description: Specify value of external resistor connected to FS_ADJ = pin > + to establish internal HVDAC's reference current I_REF > + minimum: 2000 > + maximum: 20000 > + 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: sdn-reset-gpios: (active high) reset-gpios: (active low) sdn-io-gpios: (active high) hvcc-supply: hvee-supply: vcc-5v-supply: vref-5v-supply: dvdd-3p3v-supply: avdd-3p3v-supply: 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. > +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-driv= ers > 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 > >