Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2021741pxu; Sun, 13 Dec 2020 10:51:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWeNe9KtGeJRiY2OSoAWOLXH7CMXMrRRCPsALH1fgDCMTGDlEyXo2g4vgz3qB1pvLa8V/5 X-Received: by 2002:a50:d553:: with SMTP id f19mr21185366edj.323.1607885483904; Sun, 13 Dec 2020 10:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607885483; cv=none; d=google.com; s=arc-20160816; b=GF4s/M9A7lpgMpi3LI8iZk7yAxa+50Q0VCqiOIn7bvVoF4M7lpjkxkhsw4SLZMMWd7 Oiul5OLw9hdMiqa0bESp1Od2d9k6HEQMKu266Q/m5hhRkCxUU1ptflF7uuBNHCQiSc2k g107eD4Poo9mu+1l7GYwjIl9J/JX2GLMYHRZtKvH96ViOfxhWcbbbAU8l5qhZwikB/cr OuGLrod4OVP2rPzvYFKbWbxVCvnwPY1VbmVjxDXO7EcUpYGbMECEUqMZZIKjGRjqJHg5 6FVtyUV4+vajmz0r/wIjvnaNzBD+S3UrfU3ecJ5o4E1oBbI4cxCRszeLE6+5eU2TDxab 8MuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ymIMbWUewTMaBiOy/mTmXdAmH6l0YuW9NApMKrJHwaA=; b=UEe8TZdDL8VJm5rb4TAFpGsjKHv0vLK/PQln0kWOH6f2hl3U7Le/yCCMgL30OCEiVL IZBjcdYW8VLBwzT9wplz+jSqp5rIeTmKPklzkwNMragC6tZQ92KgIheVKthZbnwA490l CH2+n8rGqD2PNhNiYGufagZF93NzuUbMPIAxTvtsijhUT5JDwSh6xuwFo6xngH5EGODU m5LNN1tL4HnBIVW4P7kNI/BFy8CFmUrd0I3mgVPa0gqTb9rjapMDI1D1CVnAV/O0JliJ guk2+mc24VONvDR1OVrUjL28ZucSm4WrUf3rvyMleP1hJSwZt4Sssu9Poo3/3jCax++l OG2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si9753236eji.682.2020.12.13.10.51.01; Sun, 13 Dec 2020 10:51:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394881AbgLMOv4 (ORCPT + 99 others); Sun, 13 Dec 2020 09:51:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:48276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389306AbgLMOv4 (ORCPT ); Sun, 13 Dec 2020 09:51:56 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B120A23121; Sun, 13 Dec 2020 14:51:14 +0000 (UTC) Date: Sun, 13 Dec 2020 14:51:11 +0000 From: Jonathan Cameron To: Cristian Pop Cc: , , , Subject: Re: [PATCH v3 1/3] dt-bindings: iio: dac: AD5766 yaml documentation Message-ID: <20201213145111.42adf00f@archlinux> In-Reply-To: <20201208131957.34381-1-cristian.pop@analog.com> References: <20201208131957.34381-1-cristian.pop@analog.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Dec 2020 15:19:55 +0200 Cristian Pop wrote: > This adds device tree bindings for the AD5766 DAC. > > Signed-off-by: Cristian Pop > --- > Changes in v3: > - Fix errors > .../bindings/iio/dac/adi,ad5766.yaml | 58 +++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml > > diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml > new file mode 100644 > index 000000000000..25ec5bc0a6c6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2020 Analog Devices Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/dac/adi,ad5766.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices AD5766 DAC device driver > + > +maintainers: > + - Cristian Pop > + > +description: | > + Bindings for the Analog Devices AD5766 current DAC device. Datasheet can be > + found here: > + https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf > + > +properties: > + compatible: > + enum: > + - adi,ad5766 > + - adi,ad5767 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: > + maximum: 1000000 > + > + spi-cpol: true > + > + reset-gpios: > + description: GPIO spec for the RESET pin. If specified, it will be > + asserted during driver probe. > + maxItems: 1 Given we've recently been bitten by this in another driver I took a look at the datasheet. This is an active low pin (not reset) so document it as such and set logic as appropriate in the driver. > + > +required: > + - compatible > + - reg > + - spi-max-frequency > + - spi-cpol > + > +additionalProperties: false > + > +examples: > + - | > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ad5766@0 { > + compatible = "adi,ad5766"; > + reg = <0>; > + spi-cpol; > + spi-max-frequency = <1000000>; > + reset-gpios = <&gpio 22 0>; > + }; > + };