Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp133566imc; Fri, 15 Mar 2019 19:18:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2Km/nVI6GyN2e22QgeB7SteNTBMbx7LxbLh4FxtHITDKxMqu75XNfGnlZXxDhiwalthVe X-Received: by 2002:a17:902:b188:: with SMTP id s8mr7250942plr.327.1552702734577; Fri, 15 Mar 2019 19:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552702734; cv=none; d=google.com; s=arc-20160816; b=FNvYEYXm/CSh51v6/q5MoJUYdsRnt7FqyMOGdEi3wYlBlKJhSa+b8P0mvFqSmdCWEC UcVZX5Z+TkyGlJfGeEVr6oUj9PB2gP+5rKgh9E6F8HFgdrfzYBR1tISdYFc0+yByTae8 ic0x5hYVH1URfkSLg+tot9crSKXHRfcTr96Jw2nhzBgr5/WdzWc0yTEbUXrRUL/1hnSa 57MtvZRrpnpAKWSwZausRV83B3SM2MAUry2NhWVXCY5Rn1arvyd3M9QY/yY3DfRauR2W G1c1RG0w4lWmM2sFMu6TTM2wrOLyjV587WBvDSn6NdSCRMu73xY5IDlBxunSrLHEnDXb xTgA== 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=NIg76KJ33kTS8I534GZiCOXfsfXKffp8FVLb9MOzoDbZpAIV9BpSo57ffCiOkOlIYA D4mdKEXt7u33F4VllRUCrboiSS/ixKUag5b1//+actOVaoay6LlJc9kz5qap1UccNpBp mVtPurPXrdPbGHdIk17BNtipLHXkQ2a/IzKOYotzAt60jay/V4p6W38VwNvvId78GkoB mNXfkGhtGpOntx0dIVI+oFhdDhnhSxbgx0y7MqLLrO6Ue1ITdYufnn+1tx6YJ3KxG0vu 6Jbv/f+osDJ34tKILXefV9s3iRKtrMtyrIvU/sp6H/znmB3ANvKEXyhqrTAmpGMq85FR DUlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K9qAjoSo; 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 n9si3383663pge.12.2019.03.15.19.18.39; Fri, 15 Mar 2019 19:18:54 -0700 (PDT) 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=K9qAjoSo; 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 S1727099AbfCPCQT (ORCPT + 99 others); Fri, 15 Mar 2019 22:16:19 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:37685 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726549AbfCPCQT (ORCPT ); Fri, 15 Mar 2019 22:16:19 -0400 Received: by mail-yw1-f68.google.com with SMTP id w66so8794591ywd.4; Fri, 15 Mar 2019 19:16:18 -0700 (PDT) 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=K9qAjoSo/ugPBviM2sPkOLrP1WIBlXl9ECbxx1e76dDter/U9dYMomQnZv0uOG7zdV Ho2vyDwxSBqfblUY3XODtKilw1P35MYgcr9SymW/W6E365RkgNwgUS7/jDozmpvByWSe cI6NvX0SnBZtbTbQGEfdJlyzpLBOF2eDDHqmLTA/UpumlmC0S0FMJYq8hymZjcQUU1Eh JupIiSuiAfM0ZgHciI2ANf5B+Qs6kE5njuD4wT4Jjip7Ys035GZvs8E87aEbaSaK8IQQ XKBjY4Kse3kq6KxRFQnXELJYwDYQRmDvLD/gsSU3nGtvvCCRb1dU79yHOC1S7kV8+s3I A2Dw== 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=jePbO0lqCimqfUZKpIlGOPigSVZm9Qt6t6kOa7g7VT603e5nXsi334dKqNRH9gUH8B vL4keul0cRFmTq/RaE/9aXLz3z0mo4+3vWIJKPWfL2zpeBveDbx9kYCDY6pf82RLAA3A PH3zcYLVHIFRzk9YWsUVm3ChTPTXeHwTYx+wXSx7vBnsGwVHgt5N8/GqCKCWDZvg1gyX xy7qETTSPtxd/rWDwZbkk/E+mXYiGdEHr1GhgwomoHFwZOzWXPPXW8hAy0S097eJYkZn LzSVUHl5qBHZo1SCabImAmYvFK9kpW1FzcbLRFkvZs4IVhsmNyItuTj66EU3FQtgC7ox Imgw== X-Gm-Message-State: APjAAAWPb1sIeNIf/3hSb+qdm5ZjMaRBu470JHspPAGUGicgZpT+WXDf iMCyTAtkD9rwXgbJiYOxT+c= X-Received: by 2002:a81:77d7:: with SMTP id s206mr5400460ywc.30.1552702578195; Fri, 15 Mar 2019 19:16:18 -0700 (PDT) Received: from renatolg ([186.220.21.102]) by smtp.gmail.com with ESMTPSA id q9sm1729785ywq.88.2019.03.15.19.16.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 19:16:18 -0700 (PDT) Date: Fri, 15 Mar 2019 23:16:13 -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 v5 11/11] 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