From patchwork Thu Oct 18 09:12:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Popa X-Patchwork-Id: 10646903 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 4F50715E2 for ; Thu, 18 Oct 2018 09:13:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CFAD22B27 for ; Thu, 18 Oct 2018 09:13:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F73728382; Thu, 18 Oct 2018 09:13:33 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 A8D9722B27 for ; Thu, 18 Oct 2018 09:13:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbeJRRN0 (ORCPT ); Thu, 18 Oct 2018 13:13:26 -0400 Received: from mail-by2nam01on0082.outbound.protection.outlook.com ([104.47.34.82]:23836 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727363AbeJRRN0 (ORCPT ); Thu, 18 Oct 2018 13:13:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector1-analog-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K3Kt6cqpJD4C6/e9H0WxCTKA5HGAGtN2jB7uVeIVgkQ=; b=VRcLzOSJSbb+rApT4IOc1IC3nSw9OS8zgV+JLDULVG+f3t23F2iZvY13hUJzdFoQGPt/arsmmCy0T2Vl6yUTFCLI47T1adsSZTwaGlpNFvMQcoxZi4KozryW0Vq9zeLOKLl1gRazLjRWgZuBdejTxJEc6ML7PmlJ33xTOuKmEvQ= Received: from DM6PR03CA0020.namprd03.prod.outlook.com (2603:10b6:5:40::33) by BL2PR03MB546.namprd03.prod.outlook.com (2a01:111:e400:c24::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.26; Thu, 18 Oct 2018 09:13:17 +0000 Received: from BY2FFO11FD011.protection.gbl (2a01:111:f400:7c0c::157) by DM6PR03CA0020.outlook.office365.com (2603:10b6:5:40::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.31 via Frontend Transport; Thu, 18 Oct 2018 09:13:17 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by BY2FFO11FD011.mail.protection.outlook.com (10.1.14.129) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1250.12 via Frontend Transport; Thu, 18 Oct 2018 09:13:16 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w9I9DFxh023164 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 18 Oct 2018 02:13:15 -0700 Received: from linux.analog.com (10.50.1.118) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.301.0; Thu, 18 Oct 2018 05:13:15 -0400 From: Stefan Popa To: , , CC: , , , , , , , , Subject: [PATCH 2/2] dt-bindings: iio: adc: Add docs for AD7606 ADC Date: Thu, 18 Oct 2018 12:12:36 +0300 Message-ID: <1539853956-26644-1-git-send-email-stefan.popa@analog.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(376002)(396003)(39850400004)(346002)(2980300002)(438002)(189003)(199004)(5820100001)(107886003)(426003)(44832011)(106002)(54906003)(110136005)(476003)(2616005)(47776003)(2906002)(7636002)(126002)(305945005)(6306002)(336012)(486006)(6346003)(26005)(53416004)(50226002)(77096007)(186003)(106466001)(246002)(8936002)(50466002)(72206003)(6666004)(5660300001)(356004)(36756003)(7416002)(966005)(23676004)(8676002)(7696005)(2870700001)(1720100001)(4326008)(316002)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB546;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD011;1:aXo094t10NCKH3KIophO76cz9wCtDEdWn0bC+RCCZVnaEYCKOT90/OVH1Z1zJhZLtyoXpyOgHiFeJQU+Ue7LrZiRAI1ZOUPkEl5VrspQ+V7xo62HSK3f5/WSqoqHtieF X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3cfe2c1-1d1b-48f5-51bf-08d634d9f094 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4608076)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060);SRVR:BL2PR03MB546; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB546;3:BZoXGEMJ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R6DJllCPFI+Zu/HPL76mOyCW2Td4qZuak+LfTGnDVOoT0332loXvAmA04NTY6+cPKTe32gnUS0WiupPJNEdFNxzi7J/HwSgIU/OCI++B3NkfnpU5GP7AxbuBK7RGE7TFezEn30SD4+iPznLDjcSZhUkOQ/tk6FDiRbwFAc/KKJpSZHJFhGJ2kd/41fextLsacIArKASkcsjw0NcKYfGLiNW43xqAGhG2xy46ZvARYinYKRl60pQM+lG+L8dpN2vHAIQq3JL2TmwYf3qYxN+RqECxCXj6LCzPBv3HXw9T1f67as/Y998bqHq1sOsEIw5vCQNs/7VCGglBCZEw/zINLTfr/0XDJ5oJWtIG69bd3QBNxA5HWJVzfsNQIsAdVHibzO4dGFp20sD4p8lYCv4IE9Hq0crU7oXL35hEczr35HhNTPCl8J5uLqorg5ZVeJJLatGGUnS0cS/fuAWloCFVZd0MNOLIL X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(232431446821674)(9452136761055)(170811661138872)(95692535739014); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(4982022)(52105095)(10201501046)(93006095)(93004095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:BL2PR03MB546;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB546; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB546;4:spmpy6F+e6HQ85/ehHRCcVpYQB8qApZUkRK7YxrDKIk/9SrUW2ck3AD6ddWsuZTQB7DV11YuET8GUy/bWa8rWaYYtC9/QBuhrPvDl5t50XGHK7s/NDvt3Vk3u174aCQ6pKVZ11McanS1XynyJRsm/u7oSaEklwxJ7msmxL51egQ8oxxEsUjgAwpx69iZUkumFo0fjfYiFyvpZXcO+Y1p0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c8gxDnYA++Gh7Kb0KFGsV00WZYjEkU8CW8YovTRhvE/838EUmewiWuDpbVw+CvOj+pySCJeZOyqKhn3uvhWltO02RD9+MyK7bREyJoGjAG3SFTr3VPGmDid8YYSf6LN1LnL+RUOXPqthF+Y8gWFCVV/jCW1YfF8FFIGmrc1drocBdPa2KKiU748BTWbpCICZKRmUW2dJAKxVBlpVFVapRInuK8oImgnYMfFyVtdZalkyPaaBXuH4djE7SA8hDNnIy/fybXKDUvhwzWldIprclXkUBeksEtl53tzgV8PgwNX1M4Q7DyHWIQyypbXuB/blDkQbWn+TfR+gc8I33iADloH1+NYgxdget0dGSCO00FRJJhuHEBw==;5:tBGlqwej2RutWX+VcU1QbieucbRK7J5wTBr1rAPzYcnipSXAiZIZTvPHTW1rAUVgljGU9yQUPHzqYiRi5HI0Tp6J5ZnZ2MAHB6ewUeQw0LHWhdHnhNzgm/Ry9GhzOsYR9/IwO+xylSI/MvEQ9OAgg2iZSCh9IhXhmK2OUTr3d84=;7:FKGHoCDQLHR5vIA516N3WbL4v8I90hgNlwW6L0wyQ4F0ZF0CUJspHLU+rRxQKofJe/ZY8g/vNjWi2cQbmm3YXStjGWphb0iGwQFncTnqDpdz7WZY+h1BIZVnhwqSBLT0GciO12TKG8NT11ukBXoIGTpiuT8ISCKD6pAAIv3YVUlOCDZaoxPAZFmaNSaVOJFGpJ6zku6kf2h+0FeOyL8BrVXwyUMyJXLOvN+eihfoxWJ5GxwZf/NwfoyoL+jaT3yr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2018 09:13:16.5491 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3cfe2c1-1d1b-48f5-51bf-08d634d9f094 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB546 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 Document support for AD7606 Analog to Digital Converter. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/adc/adi,ad7606.txt | 51 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt new file mode 100644 index 0000000..dede581 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt @@ -0,0 +1,51 @@ +Analog Devices AD7606 Simultaneous Sampling ADC + +Required properties for the AD7606: + + - compatible: Must be one of "adi,ad7605-4", "adi,ad7606-8", "adi,ad7606-6" or + "adi,ad7606-4". + - reg: SPI chip select number for the device + - spi-max-frequency: Max SPI frequency to use + see: Documentation/devicetree/bindings/spi/spi-bus.txt + - spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt + - avcc-supply: phandle to the Avcc power supply + - interrupts: IRQ line for the ADC + see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt + - conversion-start-gpio: must be the device tree identifier of the CONVST pin. + This logic input is used to initiate conversions on + the analog input channels. + +Optional properties: + + - reset-gpio: must be the device tree identifier of the RESET pin. If specified, + it will be asserted during driver probe. + - first-data-gpio: must be the device tree identifier of the FRSTDATA pin. + The FRSTDATA output indicates when the first channel, V1, is + being read back on either the parallel, byte or serial interface. +- standby-gpio: must be the device tree identifier of the STBY pin. This pin is used + to place the AD7606 into one of two power-down modes, Standby mode or + Shutdown mode. +- range-gpio: must be the device tree identifier of the RANGE pin. The polarity on + this pin determines the input range of the analog input channels. If + this pin is tied to a logic high, the analog input range is ±10V for + allchannels. If this pin is tied to a logic low, the analog input range + is ±5V for all channels. + +Example: + + adc@0 { + compatible = "adi,ad7606-8"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + + avcc-supply = <&adc_vref>; + + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio>; + + conversion-start-gpio = <&gpio 17 0>; + reset-gpio = <&gpio 27 0>; + first-data-gpio = <&gpio 22 0>; + standby-gpio = <&gpio 24 0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 843545d..6d63db4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -845,6 +845,7 @@ L: linux-iio@vger.kernel.org W: http://ez.analog.com/community/linux-device-drivers S: Supported F: drivers/iio/adc/ad7606.c +F: Documentation/devicetree/bindings/iio/adc/ad7606.txt ANALOG DEVICES INC AD9389B DRIVER M: Hans Verkuil