From patchwork Sat Mar 16 02:16:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Renato Lui Geh X-Patchwork-Id: 10855711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EAE01515 for ; Sat, 16 Mar 2019 02:16:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 566F72AC5D for ; Sat, 16 Mar 2019 02:16:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A1742AC71; Sat, 16 Mar 2019 02:16:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC3922AC8B for ; Sat, 16 Mar 2019 02:16:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726360AbfCPCQT (ORCPT ); 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-Google-Smtp-Source: APXvYqxOniiMVtEoj8kEZ3Narq4Ag3pwHJWHmjta2JzJj7IK2x/GoqVK82sOvjqn2LTTd3jchkN+vA== 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-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; +};