Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756777AbcJWXNm (ORCPT ); Sun, 23 Oct 2016 19:13:42 -0400 Received: from mail-db5eur01on0139.outbound.protection.outlook.com ([104.47.2.139]:21760 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753636AbcJWXNi (ORCPT ); Sun, 23 Oct 2016 19:13:38 -0400 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 v3 7/8] dt-bindings: iio: document envelope-detector bindings Date: Mon, 24 Oct 2016 00:39:40 +0200 Message-ID: <1477262381-7800-8-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1477262381-7800-1-git-send-email-peda@axentia.se> References: <1477262381-7800-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB5PR08CA0016.eurprd08.prod.outlook.com (10.163.102.154) To DB6PR0201MB2312.eurprd02.prod.outlook.com (10.169.222.151) X-MS-Office365-Filtering-Correlation-Id: c9792cad-04e4-4546-34e1-08d3fb95b0a0 X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;2:3GPAqSUsbbfQhhMAJdNmWV9N8cFCOmBb6eFHRWjQ2lsUY5NExWlXAsmBS66mA/kKclBUzRQ0QwSIzuliUX7Sp8yx9ClMVoB/oAb9RI9XLGdooJiQH0lGls/2mQG4FQ7ij1DAAYVopheQGP+MyAlcOfaCOL8RJTFsNwzrkVE7hdvKqFSdetd/pAqhyTtDaFjDbePnNH7pbDey/xOWcytmYw==;3:eFj7g7t1JKTpQfmW8cAmhbVxMYYBXblXekn1EvyZ2lr8Cc1ovkQMKUqlHgFAS43cmCL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zLfNherHEDhgkslVKuVz7hhby0CCPpjPf/RGipXB/79KvOu3iKTmh5fh8FigtB+pZn93r5xpB/uUJl0Vf5hv4Fbb530qZyZnVbEGU6DiYPn5ZwoizkKG5sCbrX56APfSSzvMFtN2DypfKncpJxE+IPPaHEPrd1msKcWAHXS+/CzA/iZcRuLWlQ6Ugwsx7HDv2OP73pDZ7WLjqRrUi2Df+SE6kQoK1QOA==;4:f7drZ6zcaD6Un41flG03YzLaCc+ZUIN78mF8CbFoNTpzxbfneUa7p/HsCDEelj08p+gwcQc5s8z19SvA2LqtEJsMK75RjjO+vCr4pB3haOqYaNiM83abpYiB3JzqZuZw6pbxkIK9XyhiKzMAULxWEwsCfl+26bwy9IGFWbcI1oDb3/mYp01Yy0VBNtLJsc8RUrR00i6F1n8PGvibZuwmLwr8jiZAnAhJsIpkjpDW4GSrAPz3Wf5e/MPra5YfSagtDNloVWxbXxykBwLP8CUWW75AFNz22CmY701mIqTFPeJVgfghjhAk50jG79+yGPXgzBtUT9VQ3usRzR4eG2D/eI0656DyzPerZKtT9CtW889f6r6Ye+pKylD2wKuBdVgisa+0JlvRweNVTn9BlWDCPS4swVtY/zxW8cPFrvQmF5X38v1zfrkp93t4j0WL13vpGxlASG1LVkpenicIqF16mSUwNjPJfQGxMLYyRHOQ2BBfbhAPisiiRimX7NwweulL8KP48tbJLvMruWzw117HGg== 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)(5005006)(8121501046)(10201501046)(3002001)(6043046)(6042046);SRVR:DB6PR0201MB2312;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0201MB2312; X-Forefront-PRVS: 0104247462 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(5660300001)(68736007)(4326007)(97736004)(50226002)(5003940100001)(2906002)(77096005)(81156014)(92566002)(81166006)(8676002)(101416001)(6116002)(3846002)(586003)(86362001)(575784001)(189998001)(19580405001)(19580395003)(66066001)(47776003)(6916009)(2950100002)(6666003)(7846002)(8666005)(7736002)(33646002)(76176999)(50986999)(110136003)(48376002)(305945005)(50466002)(36756003)(74482002)(229853001)(2351001)(42186005)(106356001)(105586002)(7059030)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0201MB2312;H:localhost.localdomain;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB6PR0201MB2312;23:gvGlFliHCgXRxnu1rwJPL9B07C8fS/Q7Ygpzlex?= =?us-ascii?Q?0PfnV+wJdlRFZXZQbmH4/ZFZvW6nLP6qER6aBrgN2RqsSuBAoonJY1mpTm4u?= =?us-ascii?Q?wT1hhohWs0PlZweB9C1qc5ldKw0R2qHGUkgYS60BWntntB1cgPO0LtyKwrCN?= =?us-ascii?Q?jZmoBRf5B6qRWrIUvt7QSe/6ZH/awh+HMT7TCmO0nVJiShT2eyZvit4tGyYd?= =?us-ascii?Q?+fXYKmjnPyQXy66Qe7E45nUZBThxkDFKgCA1zqher1ReylQoiFQWB7hwYkhZ?= =?us-ascii?Q?1Q/4vrMKobBHn5BfTAmkp3Y/4HfpUiKqS3uWYcYsf897149dPczqsUzgJDAR?= =?us-ascii?Q?vmXCFAYPzUYftt+6k/5qceIcjwMz0NidckTcwEHv+4ajv1LsFO3L8Jvvc+15?= =?us-ascii?Q?0e6/NGMvqLkWtbS5bGdqQSklQoEZeNe3lU3LzaVC+FTBvI7XhqR3LuObZ0+I?= =?us-ascii?Q?e7/ZkcbX1IxF0+452If6LEesb5x/Phc9aVwBxvQF7qD2FTdRuc3dwF4hWUSz?= =?us-ascii?Q?TWl++rY482QEPTqvYHhOlPVvUzRvYENwaC6fa9ez/Y+IdJxtF5hKJWsc4GgW?= =?us-ascii?Q?FUM070U02jZLFNLhtlA7pNEQ0VK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95lCcPsfs83s4FKAUw075XS8M1tgfV5eWGGSVyo4Y5EI4nJTRJLWpIXwDKkNp73Te7ZILzNjL0KxvcjW/qzEBZmaP7QVw==;5:4pdqMJkSW/4KpcVs/nLjQ7YqhDQKGw80FVAKoitSoQNHCbz1p04sdSZpzMjGADvpAJ5i5PB3A6bRGD2okqzIoZGa2iQmVJhgCptTQHlDTerXUiNu+QgAVrZipKbUpFBYB/zlUgzVAzdFCC7bgLZMwOQnyh2qOXSTNfliTBv+Phg=;24:b6+wVnTngm8apKvQU9Nxut6DtYcLQ0qwY+36Z+ub+aVsM3INTUzgaysM83TuAMQ5QXWSYvlqSX5vOHx8GKLCe2RRJNzGo29HMbgS4bEoaUc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;7:boIFxxLu4cBYpKIgBL+0mbnfsOURXLLc/h2zqoS7My4kpyO2iTxOCt/lILTcxWI28kL7xJ66GCN5Lwpz8UWkik+0NyG0pZbRh7DvDBAu8UBy36Ca+GPlguhacbnb6yWMmnmtOyjBWVdhtBUwgIiMjSwRfGYdbf/CuD4tEYvpn7Wp0i7QhZsvMDyCYtxI9a7Uo7mVCCIYeT9DBK4kABXOll7lX9zvNPqz2VmBnZ4ljc8B3tMAs8VyGZYN/L2RvhZD5eksVrseSAN4c5K8bLB2u7KkzsBx3EToKCwPWueUq+IgQlbtE5Hleu6LnQtjoRExP5D66E4RFA7eic5xJAqrXBOooLJy0akdWVJZLhgDwwI= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2016 22:41:11.0320 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2312 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2743 Lines: 86 Signed-off-by: Peter Rosin --- .../bindings/iio/adc/envelope-detector.txt | 54 ++++++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 60 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..27544bdd4478 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/envelope-detector.txt @@ -0,0 +1,54 @@ +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"; + #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 d7375f45ff0f..fca35d16037d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6119,6 +6119,12 @@ F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac 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