Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp731255img; Thu, 28 Feb 2019 07:02:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IYOZ9C1kEQR4UkzdUsi142TvgcWRF7RA3OmH/X+JUhmBIqXxIPKdh4pop1MSkbbhZnZUt13 X-Received: by 2002:a17:902:282a:: with SMTP id e39mr8529164plb.26.1551366167220; Thu, 28 Feb 2019 07:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551366167; cv=none; d=google.com; s=arc-20160816; b=HmDb9tdflSXUu5DtNxL02UyWBhYrsGqXbVh9t/HkgwHgLr6yDNwXIK8dZ+1IkAbXpF Hz7nzH72gf6Phj9cvoLh+wj70yFYnY5UHDKSw3hkiDxrvKid4qBviRX0mApUuDPFCfpR WPzNFAm/dv5wivnrOpQeI99n3fXk/xuPqSL2tbIugZPm3MJZD978ZLuzxjoUY0FxHF2a mIAp0NGwKlqKb6vWtWQffMReHlpbBWOiQW7b7Y6KGkOy7bBPLQVpxMNKvwYgVvNXCcLB N5OkAzmtA2l1fIdtn1WBjUnuYqm/nBRiegygYd9mQxeQXoVl1nQUcfXFtAQSnNeQHwbM /nRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NMeP2IkzSEftRMF6nNz8Vv+P/xn7p6xmxsCj+g6jPfw=; b=BKqyaRCAIcPA7xTx4sZ/YW+/++F3WuIzJLd7u+YRCL5mfql0af3XtwS/Jv4bh/FzcJ Ef+xG0nan3G6TYNi36p2qDFhZIgV3Juhv1D5+I4CWAXNcZ9wgpMIURduLNGR7yp2gX/d 99m3SuJ1apHgklNlpcvFm3VYt89U2X+kNxoriFG9QckMqrcAOXSorKDzbuLXJwPiAGky KdtKl2+sBH+ujI0rIzPqI1qOEuScukDplMmJ0I7ZPqBP7pPhhTvB8T/kjGz/AmqYE/pK WOdZrmbna7Cda9x3QZ+t17WXHLJzgyrQ1yqaALeho7Hb9I+K8aZZxLXrhvtdgiY4lHKD 9Kkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sQR+qDtc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l61si18818877plb.6.2019.02.28.07.02.30; Thu, 28 Feb 2019 07:02:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sQR+qDtc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733022AbfB1O0j (ORCPT + 99 others); Thu, 28 Feb 2019 09:26:39 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:47022 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732966AbfB1O0f (ORCPT ); Thu, 28 Feb 2019 09:26:35 -0500 Received: by mail-qt1-f196.google.com with SMTP id z25so23598580qti.13; Thu, 28 Feb 2019 06:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NMeP2IkzSEftRMF6nNz8Vv+P/xn7p6xmxsCj+g6jPfw=; b=sQR+qDtc8jyLsD5XL9nIDbQ8lVGl854SLtlpi6Aeq2X6lAixeiEEL4KjPd5basebBd xI0exudRxd6vzI0W2Kb/Uz171EncvAqV36P7dev9sPHcpKaKTPD3frAhfclpUQHfjJTl /XzoyWT7zINSgZXH74KLKJGgOsCvds8ZJqj+1bXTDobE3YhIcnrB9RyuaI0qwdVFWDP8 /y4RLV6fJn28qiB/qEe3dqacjYBy6IZASevAQugDFPnNV1aCqCz12LvWcy63JKzviEGG /G+5clmktRrU76b37jvN6mF+objE+CJ51lSAZY/vMHzdJK25TXAQ7frzkbLC8kbi/0oS viiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NMeP2IkzSEftRMF6nNz8Vv+P/xn7p6xmxsCj+g6jPfw=; b=KQMPgxY97Q2B7fnMkA5MvRRxZcEuk1Cf5H7RUzJyj7fMTegUd6JsMN0rIfeg2rib31 Z2FlJLa8kgelHdZM50UsgUFbyb81ua/0u/dbEqXNTSmLAkjpUgkLzgTlt7Puo5CTm0c+ 5o0chY+/ku6zn9NQ+YadHkcWlZszojS2dVFnjfJxELPJ2kbSvt5exuo+gfhjciO7au4Q 5gMDUkhve1drEHk4v1Yrww5qU4TSECGZink5Pr3ZJygoR8O9MMMkXpn8/F3ZScT+3JNW J4m1ARKJg3tpzCeQRUTX9aGd0fS2JhqANr5yG3jEPj4f61ZRFVouYt9FSpaEvIYfoj7b y74g== X-Gm-Message-State: APjAAAWvCOTUIq8GAzrPCj34QOUZoRjHcx4LxUHV04c2TDQcu0a2Uv0k NchNIV8HeL1mXrEkcG2IoH4= X-Received: by 2002:a0c:bd15:: with SMTP id m21mr6560189qvg.246.1551363994191; Thu, 28 Feb 2019 06:26:34 -0800 (PST) Received: from renatolg ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id r68sm9554072qkd.68.2019.02.28.06.26.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 06:26:33 -0800 (PST) Date: Thu, 28 Feb 2019 11:26:28 -0300 From: Renato Lui Geh To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, stefan.popa@analog.com, alexandru.Ardelean@analog.com, giuliano.belinassi@usp.br, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, devicetree@vger.kernel.org Subject: [PATCH v4 9/9] staging: iio: ad7780: add device tree binding Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds a device tree binding for the ad7780 driver. Signed-off-by: Renato Lui Geh --- .../bindings/iio/adc/adi,ad7780.txt | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7780.txt diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7780.txt b/Documentation/devicetree/bindings/iio/adc/adi,ad7780.txt new file mode 100644 index 000000000000..440e52555349 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7780.txt @@ -0,0 +1,48 @@ +* Analog Devices AD7170/AD7171/AD7780/AD7781 + +Data sheets: + +- AD7170: + * https://www.analog.com/media/en/technical-documentation/data-sheets/AD7170.pdf +- AD7171: + * https://www.analog.com/media/en/technical-documentation/data-sheets/AD7171.pdf +- AD7780: + * https://www.analog.com/media/en/technical-documentation/data-sheets/ad7780.pdf +- AD7781: + * https://www.analog.com/media/en/technical-documentation/data-sheets/AD7781.pdf + +Required properties: + +- compatible: should be one of + * "adi,ad7170" + * "adi,ad7171" + * "adi,ad7780" + * "adi,ad7781" +- reg: spi chip select number for the device +- vref-supply: the regulator supply for the ADC reference voltage + +Optional properties: + +- powerdown-gpios: must be the device tree identifier of the PDRST pin. If + specified, it will be asserted during driver probe. As the + line is active high, it should be marked GPIO_ACTIVE_HIGH. +- adi,gain-gpios: must be the device tree identifier of the GAIN pin. Only for + the ad778x chips. If specified, it will be asserted during + driver probe. As the line is active low, it should be marked + GPIO_ACTIVE_LOW. +- adi,filter-gpios: must be the device tree identifier of the FILTER pin. Only + for the ad778x chips. If specified, it will be asserted + during driver probe. As the line is active low, it should be + marked GPIO_ACTIVE_LOW. + +Example: + +adc@0 { + compatible = "adi,ad7780"; + reg = <0>; + vref-supply = <&vdd_supply> + + powerdown-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>; + adi,gain-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; + adi,filter-gpios = <&gpio 15 GPIO_ACTIVE_LOW>; +}; -- 2.21.0