From patchwork Fri Jan 5 15:25:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 10146679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F350160244 for ; Fri, 5 Jan 2018 15:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFF2127D0E for ; Fri, 5 Jan 2018 15:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D4D3027D4D; Fri, 5 Jan 2018 15:25:36 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 22FF427D0E for ; Fri, 5 Jan 2018 15:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751499AbeAEPZf (ORCPT ); Fri, 5 Jan 2018 10:25:35 -0500 Received: from mail-sn1nam01on0051.outbound.protection.outlook.com ([104.47.32.51]:57329 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751495AbeAEPZe (ORCPT ); Fri, 5 Jan 2018 10:25:34 -0500 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; bh=nMvi+r99ne+Tv+lGL5LkuZH4Tk81mvQkF0NSrlAGbCQ=; b=hNIA+BaZHg9qfA7SIWGhGFSYewoznV/x4o980ndqLS0fG5oc+kAcez5ezNK66rmkAZYQ1yt3yA0+y5BqPx2SYfy3LaL89YOU91eup5F1nRhIcGJ94TmdTEsIubaeLt4KptQI66kDGa9Q3arZpOIH98HPeiVI2wOu5xfFXfOBgaI= Received: from BN6PR03CA0091.namprd03.prod.outlook.com (10.164.122.157) by BY2PR0301MB0693.namprd03.prod.outlook.com (10.160.63.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Fri, 5 Jan 2018 15:25:32 +0000 Received: from BL2FFO11FD048.protection.gbl (2a01:111:f400:7c09::163) by BN6PR03CA0091.outlook.office365.com (2603:10b6:405:6f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Fri, 5 Jan 2018 15:25:31 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.55) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=analog.com; 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 BL2FFO11FD048.mail.protection.outlook.com (10.173.161.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Fri, 5 Jan 2018 15:25:04 +0000 Received: from NWD2HUBCAS9.ad.analog.com (nwd2hubcas9.ad.analog.com [10.64.69.109]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id w05FPViD015872 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 5 Jan 2018 07:25:31 -0800 Received: from NWD2MBX7.ad.analog.com ([fe80::190e:f9c1:9a22:9663]) by NWD2HUBCAS9.ad.analog.com ([fe80::44a2:871b:49ab:ea47%12]) with mapi id 14.03.0210.002; Fri, 5 Jan 2018 10:25:31 -0500 From: "Ardelean, Alexandru" To: "linux-iio@vger.kernel.org" Subject: RE: [PATCH 2/2] staging:iio:docs: add ad7291 doc to detail dt usage Thread-Topic: [PATCH 2/2] staging:iio:docs: add ad7291 doc to detail dt usage Thread-Index: AQHThjji5pjEgd157UWhFjRoSZNBSqNlZkj5 Date: Fri, 5 Jan 2018 15:25:30 +0000 Message-ID: References: <20180105152133.9681-1-alexandru.ardelean@analog.com>, <20180105152133.9681-2-alexandru.ardelean@analog.com> In-Reply-To: <20180105152133.9681-2-alexandru.ardelean@analog.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.50.1.244] MIME-Version: 1.0 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)(346002)(39860400002)(39380400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(86362001)(106466001)(575784001)(55846006)(8746002)(316002)(356003)(46406003)(47776003)(7636002)(7736002)(305945005)(106002)(8676002)(246002)(6246003)(23726003)(102836004)(6116002)(6916009)(55016002)(2501003)(3846002)(59450400001)(53546011)(50466002)(76176011)(2920100001)(5660300001)(2900100001)(2351001)(5640700003)(5250100002)(97756001)(33656002)(478600001)(8936002)(229853002)(2906002)(14454004)(2950100002)(7696005)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0693; H:nwd2mta1.analog.com; FPR:; SPF:Pass; PTR:nwd2mail10.analog.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD048; 1:rkJ2cH/jHcBtOwGfF9jFbYoi3iaE609vaNqH2HNBQ92UB7EHsmkO60Yg0cNAT+toJnZFyk5y6DYjOrrx0yV1Rxay61a4mdr/aRm8R9qsBCuCdplrbSVfpBDXdBVslJo4 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4542853-334e-493f-0878-08d554507f12 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:BY2PR0301MB0693; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0693; 3:Qc8Iit4qevN5SuKQSR9dWYS8zWbTTJlCTu7l0PIe1Yv3XzQVlKofPRNSRqKQ+rHOwPt8tGh+0fn7N9rkSkCYprQFCyPkJdC2jBcmUbvH+JWRiz48G7QaNUift0GTJyFNQJ7a+rofZBjH9vstNetQCySWjfKBCHzuQ3c8/oQDhp4RuOPftytcsb6ls+nr8prP0k9ZMbc8grXwSuiw/Bmb99oQAD8bnRdAgmqU8KO+XxhzZKKPgDBFSa4NzaHPp0zEgpABdeb8Wip8WyJQ9Jj1GplB58nDlOMzNVHVSHLHixSe/KVvOhmLhs6z+0QuW6pcjGr2NINXxnWAYmYfmPTp/A==; 25:WyXrh59zKyOSJ8V8dJ08Tq8xWXDgJjpiwMaXhzOpcz7+U09kcz4ImwwHChuPMhsjBt4tXB+B0CpwK3RB/86AlYcgMQKT0oVf+gt5+y4oMOv2dhyefq/ziM4Nnef207XeYP9iB/FIyZs/nypE4g4TiTb7ZUEVaWwVWqdMkuTtD7fD3cTUCqp6ru+o+0DwkSYs7V7AN1zxGM00wGTHH+mCHaQ6NN9n4TbvFMjxaxMBTS0peWYawEEnT0blGdy47I6AW2QaQoAn8NT320R+nGsa2MWIamCk2kZdiWXXFggmKS9MKpxVgeCtd/lST1CAzGd/oQTMLMfRzSzGVKn8ozG5uw==; 31:vKNLqPVGBEZNmyesBHxcD1CDXUNFHXBEXNKZsV3CeGNVhEsnwOJTUH7foVVVtasCQoGrjT8l7tCQD2/gH+i3Oz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TIW62OZmTFtJDFgyWcZXq25eCB47LEUqMMzvMb7CwrCe8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(232431446821674)(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501075)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:BY2PR0301MB0693; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BY2PR0301MB0693; X-Forefront-PRVS: 05437568AA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0693; 23:op3QZ8R8WjmmLOfCnLoXUKUC1DP/QDOwhw3PWs9?= =?us-ascii?Q?0j8j8aDa473BmlAY6GF90OYJ5McS2uVfWw90ERSt0w0c/JL1a0oHlCasMq7O?= =?us-ascii?Q?cKbklzymeAFYTPbEl5LRRcDgQYqP65hgfS7njaKuR37oppeSseW22mnmfbBd?= =?us-ascii?Q?Rsj1Bn+yUClG7RyFNmhAG4LrEdEE33/fNNVB0g8p+Zy0kWhW+5iM1gRZYsvz?= =?us-ascii?Q?IVx7XpYmwPfdH+BsvqWRVXwagPQKmgF/mCMZxiJaW63M+meRAByYXvh/jsIl?= =?us-ascii?Q?vRfNzBnHkraX/Um/15mNoWaZkHPUpGS8vLkL7PstUqYTiwMPGOCnh/9Ip46f?= =?us-ascii?Q?HWmR5LXD4keygRXwblwXFk0azMXTVKriXiUTg4lWX2KB/jhE9Olc/cJyIEQb?= =?us-ascii?Q?Xxsa5TCFCbeWrfRiw51tFQijQKj6G94Xow3FDz0879ba4sydLMC0Qd13nNVd?= =?us-ascii?Q?cwiBkXUenVbHIDkK83vMztFbgU7fJqEi/2VpO8y8+YTc9K3Y+yOz9lQF+nHQ?= =?us-ascii?Q?91fV9Gn0U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pVZpgAiQGIZzNEzbayBXK8FKnidqUBpmSdpsxeV+NV0CCf/VJKFG1SWSLNyTD1XgN/gWN6aSveHQuG/h5ZwrygjnlNemPiA9Iy6ePrKAeSmrBGYSQaSTV5GAz8MSMmmE1fFEm69rJ8Kx+FuxC/2Z76t5YWVJTcktJkxalVCJc4Cj0=; 5:+ESxVv4C1jCfVYLu+ZkSYRUUjRCjn7zplsSURYsFoZMterjLksbeLQSEZX1rSVYXgpdToWqEBZueESQIFu6zaADcBNvnK95uR72typi+Xtt4xRomQ4eShPB7GzUw3FvKHQK66eF1juG48Ild0kKnUYDlfMGTIiXvVg8SttGWf0E=; 24:wwi6ga6mEJRZ801XoEKiSAxNCJx4n0a5cibeI67oUBJPeuks5eJZO6TIqNkpKK65uF4KQYAD0bSd/bYTcrY6wW7ABxLzSDSfHcZkLUL6AO4=; 7:vEKljmLpOwBtFpMLaV72bSq4TAIHNgEtFs4UaeCvoO/xoFDHcpcrHMuFY277DKw5IZDJd+zS0z6ZCAM6BWgIILKd3hwkI3RykRMzESiMDWvFciQ06gCtVyP/QO7zE+OvvBjbihtUih4zqHvg9EPIJRiUNTRkNhq3WZFQ7r4/lnXpaZRUNiCDBZsRnNqfzlQkQKskYbAxF7l9EzcfY0/hj5QVlqY7UNuyqZLoGzsJlr+wMsqgoEHG9aFPicV5eR6Y SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2018 15:25:04.7706 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4542853-334e-493f-0878-08d554507f12 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: BY2PR0301MB0693 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 From: alexandru.ardelean@analog.com [alexandru.ardelean@analog.com] Sent: Friday, January 05, 2018 5:21 PM To: linux-iio@vger.kernel.org Cc: Ardelean, Alexandru Subject: [PATCH 2/2] staging:iio:docs: add ad7291 doc to detail dt usage urgs... there's a typo in the title From: Alexandru Ardelean Signed-off-by: Alexandru Ardelean --- drivers/staging/iio/Documentation/adc/ad7192.txt | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 drivers/staging/iio/Documentation/adc/ad7192.txt -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/iio/Documentation/adc/ad7192.txt b/drivers/staging/iio/Documentation/adc/ad7192.txt new file mode 100644 index 000000000000..19efc0a9411c --- /dev/null +++ b/drivers/staging/iio/Documentation/adc/ad7192.txt @@ -0,0 +1,60 @@ +Analog Devices AD719x ADC Driver + +1. Overview + +The driver is intended to work with all AD719x ADC chips +from Analog Devices (AD7190, AD7192, AD7193, AD7195). + +It's based on top of the AD Sigma Delta driver + +2. Device Tree Configuration + +Example for use on a Raspberry Pi with interrupt line +connected to PIN 25 on the GPIO: + + adc_vref: fixedregulator@0 { + reg = <0>; + + compatible = "regulator-fixed"; + regulator-name = "fixed-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + + ad7190@0 { + compatible = "ad7190"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + spi-cpha; + + #interrupt-cells = <2>; + interrupts = <25 0x2>; + interrupt-parent = <&gpio>; + avdd-supply = <&adc_vref>; + + adi,clock-source-select = /bits/ 8 <0>; + adi,reference-voltage-mv = /bits/ 16 <3300>; + + adi,refin2-pins-enable; + adi,rejection-60-Hz-enable; + adi,chop-enable; + adi,buffer-enable; + adi,burnout-currents-enable; + adi,sinc3-filter-enable; + adi,unipolar-enable; + }; + +Notes (about this example): +* be sure to replace `compatible = "ad7190";` with + your actual chip model (ad7190, ad7192, ad7193, ad7195) + in order to make sure it works correctly +* PIN 25 must also be connected also to the DOUT pin + of the ADC (or MISO on the host) +* be sure to add the "/bits/" specifiers ; newer dtc versions + specify the property type/size using this field, + and the driver may not be able to find the property +* not all "adi,xxx" parameters are required ; + see the datasheet to get an idea of what you need +