Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2903057lqo; Tue, 21 May 2024 00:03:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWVTlQ02ducQoTv+T/R97sCi+A0A5dhEMAO2bW7FUBPJ/vgAdabvYK5H8rZLaCN6v3SKKN7rNmsshJJM2VTjlIu9ayTcykqO3oKh87NA== X-Google-Smtp-Source: AGHT+IG7FZHO0J5kSLBr96EgkYsvrpt+/QO8XPd3NwbJ0oSB2kw0Rm3HjIlAhQ4ryimfChdwSAZe X-Received: by 2002:a17:906:5590:b0:a59:c3d0:550c with SMTP id a640c23a62f3a-a5a2d5c9d8emr2149560266b.43.1716275035605; Tue, 21 May 2024 00:03:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716275035; cv=pass; d=google.com; s=arc-20160816; b=ZMZ005XmcK2t68dJpEOzoYO+8QerL2nB9fv9enh6r80zSwb3DMcEclqiVdtneTekH5 OzBVggRBnFJPPqzAQw0w56QlobjFTeeeSSg60TejZSVJUgoKUIf+gtTG2uusSNOux/hy Kzewk93RQMNLZw7oiYEkE/ktppO55Le0yI0O1hnDI1ntPUqX016KiusRhMO5MSCcpk8G WgyG7RKNqODdhMSSo2nWvhVJoWuOfwTDGBsPfUpQglFGYxx4v+V5Yl8YpmHOuaV+OdEm ohLUlGr2g546TnOfhCJolQy4nx67L/7sblgc1KuwQopE5IlOJNvwIuJTt8orsmZzF93v oaSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=W78xOUZOmKMQybBB10sYcYuLAnuxE6oCWILwuCswGSo=; fh=BU0JhEgIpWwZvs3FcdwF2/6S3f9tJ1awCQtDGzJ8jtQ=; b=CWzjXUnCh/7QzmvNx/ZHVDowTjV/14rUrQuyukVz1OC1wYC8BYaLUM4rZb5lv9rmf5 lHmaZoB/Xcjwi6OVX8XOxHIepqoydJmTZXA2htlQqQx2XAKW8JLZvswOerihmZDGvCdJ E+pdudas4e7LMNWeV5lPP7Q+FLTbdoZhgkFV2WyIhTtIYgzu8EwUvArGJsrg49tRxVGK dFCpR8iWHP9IE+P3qvUNucMMrR/KT7Pu8tXfGsbcY/zkw6c7fJJzkso92sJwcGazbR3c iVFHwYVssoukh2kwm425mqD4PPFgiyV17Do6XMgpeqtaz1OTyPj6r/aqH79KV+m+dG9B 7Rmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQxvh4Uf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c044f1si1317767966b.889.2024.05.21.00.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RQxvh4Uf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184544-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184544-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2A02A1F21086 for ; Tue, 21 May 2024 07:03:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADEAD4F217; Tue, 21 May 2024 07:03:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RQxvh4Uf" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 ED41F482EE; Tue, 21 May 2024 07:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716275014; cv=none; b=W01/DiQ3c+6inOA4VYa1BlPqtYc4m6UtGDPN9zZ1siZSCmtj2ISc6khN6J94tndJvNvF64UjLcRa7X6QKwweMFzCfGutnosEEemCMiP8KkiTmvuHWuXz+9k8VUMNLwytNQYp6u/rbHNHG1xKfCjn0BkPxBnUlwy175PyoXNFP8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716275014; c=relaxed/simple; bh=W78xOUZOmKMQybBB10sYcYuLAnuxE6oCWILwuCswGSo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=UpPFLhmcXNX5CBBKHGFphicQEUsqUntJnvKXo4Z+I/YN4oC2pNObXfjOr4R5siW7HjwpssYbtM8XsdfBnOXAnn4XvtYokb9k0JL6HSuGa7B+T/8VRSsii74OLbriP5LoO0RVkbjilp5XGe/2jaVS5nxNHftuDUp+mtJgKgLCNHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RQxvh4Uf; arc=none smtp.client-ip=209.85.208.46 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 Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-56e1baf0380so8186708a12.3; Tue, 21 May 2024 00:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716275011; x=1716879811; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=W78xOUZOmKMQybBB10sYcYuLAnuxE6oCWILwuCswGSo=; b=RQxvh4UfoDO7eMq2LNyiZRuqzq5rOu8vbcinWfo8n3yrx2iMlxX9V23OWgt764QeRH HMCcXL2CfPWnOxPM9arKIr27CtYYIgAW/jpdrH02cf6QoGGz/h9zwnehpFi/e6Ef1uGf kG7mvXBQQGEhnoBtHtltbiTDeryKf3NWcDaG6e+uLqssJ690S13j2gLRSZgbb4wtpOXc NC1nUgbIa96eJ4nXt6INYo0mEe6i2p+4CpfzpqemookUZT5wgTufaMZlSHBX6FKz1mmc gh2lIB5N+7hvXVfFr/zchRX8DSwQAjX0aA29K/ESHpeZ58MbZj6vsEt973UIdxYEKWtP eilQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716275011; x=1716879811; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=W78xOUZOmKMQybBB10sYcYuLAnuxE6oCWILwuCswGSo=; b=Ers/TdZ9aPdnQcaTypS3/ROM4u3NjIxRyPPy3/Q+xsSW/mNjhXWWt1afi5XOYshi7I DwAbfcPGd3kXQK2f/EatTW/V8k2zZXY5sON3av7cgaz4RAwF09Z+tie0C7SOp43nr0WF M5fmvlj2iFIwtIdI4wJbzrOlgpCn0fdJ4hiNrDug1U+WEEDUrEOyWZbJjWFaniZYgmFK /wqWdqtCCKlDnRWPyLPAxcg8dlVftmHgIJnYM67dwzzxJrAoH0Y0C35SO4vuIvQNEYW4 beivepT7XhJVsWLNf/B3/ciD0ALRFNIUMGdU55k/Zz5WhSs2/+IJFLGMPb/EaOkYQ7dq EloA== X-Forwarded-Encrypted: i=1; AJvYcCX0BT1ifd0/1WbY93cUC+J8BwnUD5TwdQTcoQ4Bxx2B5oreokPSTRXgg5Ftb9rc128KCWvXyCSRpPlVokfPuKZ0BtjushFeqlEvzbg7fPHQGLj0WXpy1DfGdsNKtZvHGCjeHy3pfarwFyLFArR3gSujMgaG1MnNH8B9XXmsYRhOIdEdYA== X-Gm-Message-State: AOJu0YzvAFcij+CngUjsy8VkZOOHSCWKjZq5qR6o+shKLsPsf72Ngkya RnYa0w3aiMUO8GAsvDYUpm3o1+ZYnb9kRlpbi8obFIWRpAT+GX5c X-Received: by 2002:a05:6402:3488:b0:578:2677:7fd with SMTP id 4fb4d7f45d1cf-57826770eafmr30315a12.36.1716275011005; Tue, 21 May 2024 00:03:31 -0700 (PDT) Received: from ?IPv6:2003:f6:ef1c:c500:994e:fbde:478:1ce1? (p200300f6ef1cc500994efbde04781ce1.dip0.t-ipconnect.de. [2003:f6:ef1c:c500:994e:fbde:478:1ce1]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5733c323866sm16109624a12.87.2024.05.21.00.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 00:03:30 -0700 (PDT) Message-ID: <4d226c3a3662374dca766b2a8f9f3479a63ddc39.camel@gmail.com> Subject: Re: [PATCH 1/2] dt-bindings: iio: dac: add docs for ad8460 From: Nuno =?ISO-8859-1?Q?S=E1?= To: David Lechner , Jonathan Cameron 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 Date: Tue, 21 May 2024 09:07:14 +0200 In-Reply-To: References: <20240510064053.278257-1-Mariel.Tinaco@analog.com> <20240510064053.278257-2-Mariel.Tinaco@analog.com> <20240511172500.718fe12d@jic23-huawei> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2024-05-11 at 13:47 -0500, David Lechner wrote: > On Sat, May 11, 2024 at 11:25=E2=80=AFAM Jonathan Cameron wrote: > >=20 > > On Fri, 10 May 2024 12:28:19 -0500 > > David Lechner wrote: > >=20 > > > On Fri, May 10, 2024 at 1:42=E2=80=AFAM Mariel Tinaco > > > wrote: > > > >=20 > > > > This adds the bindings documentation for the 14-bit > > > > High Voltage, High Current, Waveform Generator > > > > Digital-to-Analog converter. > > > >=20 > > > > Signed-off-by: Mariel Tinaco > > > > --- > > > > =C2=A0.../bindings/iio/dac/adi,ad8460.yaml=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 67 +++++++++++++++++++ > > > > =C2=A0MAINTAINERS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 |=C2=A0 7 ++ > > > > =C2=A02 files changed, 74 insertions(+) > > > > =C2=A0create mode 100644 > > > > Documentation/devicetree/bindings/iio/dac/adi,ad8460.yaml > > > >=20 > > > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad8460.y= aml > > > > 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: > > > > +=C2=A0 - Mariel Tinaco > > > > + > > > > +description: | > > > > +=C2=A0 Analog Devices AD8460 110 V High Voltage, 1 A High Current, > > > > +=C2=A0 Arbitrary Waveform Generator with Integrated 14-Bit High Sp= eed DAC > > > > +=C2=A0 > > > > https://www.analog.com/media/en/technical-documentation/data-sheets= /ad8460.pdf > > > > + > > > > +properties: > > > > +=C2=A0 compatible: > > > > +=C2=A0=C2=A0=C2=A0 enum: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - adi,ad8460 > > > > + > > > > +=C2=A0 reg: > > > > +=C2=A0=C2=A0=C2=A0 maxItems: 1 > > > > + > > > > +=C2=A0 spi-max-frequency: > > > > +=C2=A0=C2=A0=C2=A0 maximum: 20000000 > > > > + > > > > +=C2=A0 vref-supply: > > >=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 > > > > +=C2=A0=C2=A0=C2=A0 description: Drive voltage in the range of 1.2V= maximum to as low > > > > as > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 low as 0.12V through the REF_IO pin= to adjust full scale output > > > > span > > >=20 > > > I don't seen anything in the datasheet named REF_IO. Is this a typo > > > and it should be REFIO_1P2V? > > >=20 > > > > + > > > > +=C2=A0 clocks: > > > > +=C2=A0=C2=A0=C2=A0 description: The clock for the DAC. This is the= sync clock > > > > + > > > > +=C2=A0 adi,rset-ohms: > > > > +=C2=A0=C2=A0=C2=A0 description: Specify value of external resistor= connected to FS_ADJ > > > > pin > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to establish internal HVDAC's refer= ence current I_REF > > > > +=C2=A0=C2=A0=C2=A0 minimum: 2000 > > > > +=C2=A0=C2=A0=C2=A0 maximum: 20000 > > > > + > > >=20 > > > I see lots more pins on the datasheet, many of which should be trivia= l > > > 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 > > binding that are non obvious until it's actually implemented. So maybe > > don't need that bit from the start.=C2=A0 The rest I agree should be he= re. > >=20 > >=20 >=20 > Since the driver patch uses a DMA channel that isn't documented here, > I am assuming that the parallel interface is being used so we do need > to consider it now. :-) AFAIU, the way this is designed, the parallel interface is directly connect= ed to the DMA IP controller. So, at this point there's really no use for the DAC backend. We may have different designs in the future but no use case for no= w. - Nuno S=C3=A1