Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756218AbcJWBTU (ORCPT ); Sat, 22 Oct 2016 21:19:20 -0400 Received: from mail-ve1eur01on0098.outbound.protection.outlook.com ([104.47.1.98]:26064 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965175AbcJWBTB (ORCPT ); Sat, 22 Oct 2016 21:19:01 -0400 X-Greylist: delayed 9253 seconds by postgrey-1.27 at vger.kernel.org; Sat, 22 Oct 2016 21:19:00 EDT Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; From: Peter Rosin To: CC: Peter Rosin , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , "Peter Meerwald-Stadler" , Rob Herring , "Mark Rutland" , , Subject: [PATCH v2 6/7] dt-bindings: iio: document envelope-detector bindings Date: Sun, 23 Oct 2016 00:43:45 +0200 Message-ID: <1477176226-10566-7-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1477176226-10566-1-git-send-email-peda@axentia.se> References: <1477176226-10566-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DBXPR04CA0046.eurprd04.prod.outlook.com (10.141.8.174) To VI1PR0201MB2317.eurprd02.prod.outlook.com (10.168.63.19) X-MS-Office365-Filtering-Correlation-Id: aa5c361d-9303-4b5b-fd06-08d3facd1652 X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;2:FqUlkRHY5IRTpWntOBdnaR5/M4cDvZyQjMv+j1Ref1HucaOzwdDo1Apkn4TXPYaNcpyDZ5TG/LUib3aRjB8c8sK+cZ7mWHgbVDjsVbVLE2451hkilqcmPCq09bCorUafhuMII72kQ7hfFxUIz3A6DSJw2FFWoVIKz3xymDSUt9dU6biDJLIZ944wEeBA4zvPRGLbBZksgiT/6NKcCkBrIQ==;3:fyJr2iuwXR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B2317;31:S3vtDUM01mM6VVoqtIUQ4aQ0Q8mnPfmbfaHOPRXFslay+QFLye8CtCN+b4PYPbZm86jr1wCgLFTJpxCV1sG6smlqvGi9/Nr92ZbsQenRQ0yEaL43OFC8zzUEhZyLKTWZWwc6GIwrubhn24KRMFxm0G1zomawiuwB//JeBn8zlBF0CVJxsfM24njWOP33oEg4hQcpCmNZYd6bUBNOqA0vA/Tek+eu7aoaT4ZvuoWC0YR3DdBCDeyKSmEZ+tjj2Bjh;4:JhgajBMthwoBKIVvuzh+1BURt8BmABBBq6OiVpIaoPLaAfOgqVvph3QXiOa0kYgVAZVH3CqAkk7cbgODQrRxFuOEAwj6y+Dz0vwDiyLkUyvyFeI6O2LPdAhPzP9994owWWHJaoAqN/ggB0F2Mxyk/6HjtsBMuo2qMmwsZdufuzPQJw6k1mRvfbiERmRE3Q7WA4KAUCWqeknv82YoPvUoAcHOBIq7P6+2bw/zWVlk+xNkq9nolPNj99pTXvSge7TPmyRAtRdwTTtMo+IDfyfqxxycf0xi4vPjqPr4sDp0TKsbUjMvx4H85o5yeMkANLQLGU/hJXkA8FUVrjjQAwzXNaLEkPGTMCUFmBlRxTLUq22rrO6Yszvfkg3Um5MM7ccOVVwzRKzNE4lQOwwElH0B44KvSPl7t5icuSYpnetM4rEM4JkbMkXM149EL1qgQehPI6ntlyoTT2oB/6/bpvZBamzxKNzSrZuQpSDIx82v2plI+A4O6xVAlMZ5pbuQvNp76nUl0pm08IfV+iXTZeivaA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(26323138287068)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046);SRVR:VI1PR0201MB2317;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0201MB2317; X-Forefront-PRVS: 01039C93E4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(33646002)(5660300001)(189998001)(74482002)(110136003)(97736004)(19580405001)(19580395003)(68736007)(81156014)(77096005)(8676002)(92566002)(81166006)(50226002)(48376002)(50466002)(50986999)(305945005)(6666003)(42186005)(2950100002)(6916009)(2906002)(36756003)(229853001)(8666005)(2351001)(7736002)(7846002)(105586002)(76176999)(101416001)(3846002)(5003940100001)(586003)(6116002)(106356001)(4326007)(47776003)(66066001)(86362001)(7059030)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0201MB2317;H:localhost.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0201MB2317;23:gYTSqzzqFLfq35124b1qVXnzUxKKqjVl+zWXmw1?= =?us-ascii?Q?NiTvMM7XnImVvhtjbKM2giUWAawLiVJStfBidJWcSf+lnFG8yMGMF6rTvpfQ?= =?us-ascii?Q?uJPwWYQWutTn/RJ46A2ynl730GawflmfZscghYB9bRpzM9yaqT1d8sNEuQet?= =?us-ascii?Q?Iumv+XkYPyLhpgSTGKV+f8A4cCSswr6aTQ2CR8mD0tPTobZfdlf5xaHhN6UW?= =?us-ascii?Q?utY95BhYd9P7zSVsyBKnPZVv8fI3z7F+5sJgI6T9D/cGgdCOgEFJfGp+/orO?= =?us-ascii?Q?Ye8rD9mldsYM0XU1S854C2+o12vzlfAW0+R0M6ACH1ZDaTVXybCJiTl+c85N?= =?us-ascii?Q?TY7YjTzkQZj2PR6z4UUK121EWpa2d2v9DRFg1eSZWFO+JeTXUBZibHw3i4DJ?= =?us-ascii?Q?WL26ML/QoXAhbaEffZh3x/UfvwTmJTuZC6jvhMGeHYzc5O2sa0+YbMEoXF5z?= =?us-ascii?Q?YNSJ7dbbsMzlkwLM47+qSXF8swWASCKmFIZRa+emaXOrfDs5Yv7oUl8s91yF?= =?us-ascii?Q?+JiVOJri6jdF6Fdrw6dNa8IW0NiA2FryMpCjFqYZsKCqax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8pgMGhJ9Yarn9XtFKMPYn5wKctn9cr6oZG4TjRfW/L1Io4mIcno38B9Za9dnHv2CRotr8nEfSDcIiKo+BhYtETdjeUK8P/nZJ3Q==;5:sCckOgoEs70ElmWQcKP8FD5g4Tj5jB3ySk/uDkIFJoX/aiQS1JTsMz9Z7eRGbcTJME2qx8jQqKAxSlM2hjZa+j9wzr1P5++TAC3JTpX0CssxTRWb5IYGoDk11+ot628MhFP9KppBgXfgey+TxKxyZw==;24:zRk4H4XD+tuNM7dHkAq64NGmTpX95DuwrWKwhAQIJKHeX1uf3E5+RqI8pHcphfo7I8wLJcnnwAFlmaW2Trbw5dMCEsXzYReU5tGf6gvmfrY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;7:iPzoi90j8KccMZR3ymKWll5F2ECcap+T5aMFAtS0Pbcb1vjSk0O1Wr7JHW4/rBCSm1KqvvVlKRlwX3GL05jAJNzx9I59chmpbJmBGCmC/XJjHm+9qGwNpR0Q4dQyYNz2oSHlGTj6xWylnwLfMvmVUZRieWcawAHgeFKqwodv/1PU4AIBFo459B3OhEAW56GnYL+2h6ITfhVf9A0mvDUxqNpzwWzRVfPhRx/4yLoQdWmPTUEq0WQ43jS3fN6ENRwCA5y/g3b1h1J+KwvXDTeUcqgb9pKZFi/Gd/2QEhkgjZLdYxgkG/WES5pHfNm57EpvRYLvy76gf/nj7suvRDwXME9JT6TNUC2zXZ/6sTUMRes= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2016 22:45:12.3846 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2317 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2734 Lines: 87 Signed-off-by: Peter Rosin --- .../bindings/iio/adc/envelope-detector.txt | 55 ++++++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/envelope-detector.txt diff --git a/Documentation/devicetree/bindings/iio/adc/envelope-detector.txt b/Documentation/devicetree/bindings/iio/adc/envelope-detector.txt new file mode 100644 index 000000000000..9099531cffff --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/envelope-detector.txt @@ -0,0 +1,55 @@ +Bindings for ADC envelope detector using a DAC and a comparator + +The DAC is used to find the peak level of an alternating voltage input +signal by a binary search using the output of a comparator wired to +an interrupt pin. Like so: + _ + | \ + input +------>-------|+ \ + | \ + .-------. | }---. + | | | / | + | dac|-->--|- / | + | | |_/ | + | | | + | | | + | irq|------<-------' + | | + '-------' + +Required properties: +- compatible: Should be "axentia,tse850-envelope-detector" +- io-channels: Channel node of the dac to be used for comparator input. +- io-channel-names: Should be "dac". +- interrupt specification for one client interrupt, + see ../../interrupt-controller/interrupts.txt for details. +- interrupt-names: Should be "comp". + +Example: + + &i2c { + dpot: mcp4651-104@28 { + compatible = "microchip,mcp4651-104"; + reg = <0x28>; + #io-channel-cells = <1>; + }; + }; + + dac: dac { + compatible = "dpot-dac"; + vref-supply = <®_3v3>; + io-channels = <&dpot 0>; + io-channel-names = "dpot"; + dpot-dac,max-ohms = <100000>; + #io-channel-cells = <1>; + }; + + envelope-detector { + compatible = "axentia,tse850-envelope-detector"; + io-channels = <&dac 0>; + io-channel-names = "dac"; + + interrupt-parent = <&gpio>; + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + interrupt-names = "comp"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 8c8aae24b96b..4b6f6ec1b703 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6118,6 +6118,12 @@ S: Maintained F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt F: drivers/iio/dac/dpot-dac.c +IIO ENVELOPE DETECTOR +M: Peter Rosin +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/adc/envelope-detector.txt + IIO SUBSYSTEM AND DRIVERS M: Jonathan Cameron R: Hartmut Knaack -- 2.1.4