Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756322AbcJWLeR (ORCPT ); Sun, 23 Oct 2016 07:34:17 -0400 Received: from mail-db5eur01on0095.outbound.protection.outlook.com ([104.47.2.95]:18656 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753308AbcJWLeO (ORCPT ); Sun, 23 Oct 2016 07:34:14 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Subject: Re: [PATCH v2 6/7] dt-bindings: iio: document envelope-detector bindings To: References: <1477176226-10566-1-git-send-email-peda@axentia.se> <1477176226-10566-7-git-send-email-peda@axentia.se> CC: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , , From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Sun, 23 Oct 2016 11:01:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1477176226-10566-7-git-send-email-peda@axentia.se> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB3PR01CA0052.eurprd01.prod.exchangelabs.com (10.242.133.155) To VI1PR0201MB2318.eurprd02.prod.outlook.com (10.168.63.20) X-MS-Office365-Filtering-Correlation-Id: 27c4a124-95ca-491c-4140-08d3fb232a3c X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2318;2:JTMtmc0C41x07w8tzUMp5auxypSdcTuPZCXU/mYbyBsS1ZCbyuhQqeUNIMaKb67apySl9tTavI9J4ROqd4cWwhh48nsa2GpfPQ49wrE0hUwe7MHP/bzPIqy1Y4bplxBHcdF+eRfDq3mzT5vSAuCmr/Rbxu+uzmvykeiAvNEF204rauV3q5VJ3a8RTt+/Xl0fK1n1d0g6Guaz7dbbt40IGg==;3:R5aI0OzraN81khGuysp3kiNH/PxdR5QqCVr/rhURoGWAq5Hwb228JA+3Fwjp+OCI8n4WSzLJnXA1OMq4iFh242rRhoYUCbA9ghskkJMHSZ1VyHPMK5LrT6m3qB1SqenBVYUfj3cFh5k4liakWkUByg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0201MB2318; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2318;25:XLoM2lhdyPwevuXx7BumOXKUddpT2WwPzDMTk7pxdLazOWyatdd3PrX7SReHPJEYUi354gAmRYh+d9xaDobWZD4Uc2cGB7SlkemQQFtZPIgha6hp3htxlsESArxvt+WK9srNf4w35ylOssgIQNE/UXwZ3FX3FYZ/X2HW/8lcgdxaPTyxXFixZx/ELofIQNAKlT8xoUklDgRn4WC6LAsmcJj+uDg2Jqle3o3XW5YUdINCiAoyuc6IU9vhQ55gf5q+RjvVeXabT5G9DerDwlUZH25AGkbWbvK1dxYxhgbPTpzZ/eDq/r17K2rBhEsS3JHzN9rKMFTI2bHFFS+H0KupZrQGuECx16DURvG2IMIRXP+m811o8Rh0vzWY9qb7eLNmbwZTJVXD5+l5z009E6dBrYZhMQwQQvrHYwU3GlmS0mXh7r+Ua8ncqpSZrLfLguc7VNW4QTFWWs2QfdCJFkO93MIjc7HUHD4VldskfFrEDUTxacDrgxfLQ/Gu1DFI/hqU9GOntMWdkjRJWyTwKWZPUlAkp4LqqlmdB2aJDizooVKRr9czessE/b1Nd+HLFGGcTEjStvpACbpzdbik7DYHICLna6pYJkNhllPz2/bT+itmngLd8r2B3+fOjzCuTf4JqE9jvInBF15YAqvGz0FKOoXjgThXOhk5/cNNfgCux1v+waMlcXdjXjrlHpyYP0RNImzRRzCPSMlCO7S9eS4kba+fZvP4woO2YOdo4IOXlPcuBmxlHPmmTouD4fR+XCkJ X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2318;31:FDYd7YRjGtFK9rldN/KZyvBbeWFMw9jREn5n1lPMN4leUbhevbI3Ghx33fsL448XlRhxRKIurNf1tcWSSO8kYBznwlC++BT1tHvnYMciEfDC2w/MiIAkMrg+1MGfRCSBfRhKZbQ3B8bBxgEFKcWyDXOIx7k7WX7T4D5IbR6dykP/exXSB5C2ZlLOepqF8mLcbdgl23abOR8Y6VPs50rm/Pys62j8aCeMgoz/zoUvm0//pLkwtvt8XiO8QjDKTolrbdPrej1suCX5LxhfX5faxg==;4:UyB31LV9P14KkdlT4fpQDsPK7rpSciAMoYtx83NM6vHHyqBUu9LF2zpCamWNVgg+mrPKH9P8TKd3ZTBhTpqk/Ejf3I0JS4FLiNd+gGRp2JxnxwhY6rCQn6O1xU9cP4UybFZXbq8hVPE80Gxsk7eUVZArk720ap4LhxD5knG0G1N0usAd3HvhJEiQC9T3U9kW31yTL2+Motq+DOVJVFLifJaljIOz0ZLbxwICfoXW/c3aSpgBcmwCgTZZKClUBTdl2SaiuOWYqCLDhb1tgVC8DmZ+lgcNwZPTQMfIf+OnagAd+Txn3Dg/E4D9QtICapgZ63KKwg3/X1ofkiC+ltsM5bF4pIeCzpNUT9keW7BD9W7COYSpCsHd90b/v/HTtEbYhE4S6WW85rJ8mBjANzg4FX9FczwNfozSPhs5xJzBX260jpZrzUnJFltGUg+520HbqgTN+EzibmY1gTlHOwFPksg0cb8yCxysyhxVw6/DwflaznVBg+haUYwFOERdTcl2wxz4I1j/BOvANSZu71Tm5A== 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)(3002001)(10201501046)(6043046)(6042046);SRVR:VI1PR0201MB2318;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0201MB2318; X-Forefront-PRVS: 0104247462 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(377424004)(189002)(24454002)(199003)(4001150100001)(4001350100001)(97736004)(83506001)(23746002)(74482002)(230700001)(33646002)(64126003)(117156001)(6666003)(2950100002)(6916009)(7846002)(106356001)(50466002)(105586002)(8666005)(4326007)(586003)(2351001)(92566002)(36756003)(65956001)(65806001)(47776003)(7736002)(305945005)(42186005)(2906002)(31686004)(6116002)(3846002)(54356999)(76176999)(50986999)(31696002)(68736007)(8676002)(110136003)(81166006)(101416001)(5660300001)(81156014)(19580395003)(19580405001)(189998001)(86362001)(65826007)(77096005)(66066001)(7059030)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0201MB2318;H:[192.168.0.125];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;VI1PR0201MB2318;23:HWFoga56p1Y2iqwFWELDpMilxu1hA/YDI3G?= =?Windows-1252?Q?1Y7ZoAvc87W9n3o2eo6EV0fKIrvIP6qdd1f2zmSGd5PNj/d2bxuv6hH1?= =?Windows-1252?Q?oDUcHymDJbCPEmxb74+lcKcfX5hetSjTMzz8hywiEf02dS4y0C6Jyb8d?= =?Windows-1252?Q?r8YaXPmnBPqKNjYsO99wnloWZV53hFgRp7g3bt1HjSeZoeGGbPoSUKkw?= =?Windows-1252?Q?f1B3k91CK78Y2TurDHcWFMe8dmyL2IaqQ4wzX07+bq8i1eKthFrOGAsv?= =?Windows-1252?Q?yOaPerEzzI080g1qcJGh/8HvpxehzuY4XJMgBOYqiqq2nrB9WjrESzDx?= =?Windows-1252?Q?DlHCQGo7HPXRprWawcO1XESJGiKvNC9MX+yR+qHQf3/pT9VyBHiXRt8J?= =?Windows-1252?Q?kG3tL0rMCrUNWKPyyVInkHvtPxmeIeTtQaZakzRNE1dYalokCExupR3q?= =?Windows-1252?Q?nN5aZFnTyjij7MBPyn6oNdK52V9P/JlTuKzNf9po6S3B6myv6TsdGugZ?= =?Windows-1252?Q?KwLGFMqoXGOY66mxMW3qmOPqkOE/0Af/OLVKfqOnrxXzrp6KvU6hVdSC?= =?Windows-1252?Q?ei1lUzU2rAxlIxasrDkeS9tySSbxUkvHFhT1ISYPPX3NEWFGE8uplMXQ?= =?Windows-1252?Q?ZsLVvAwRzFJs114tSbWO3wzNsZCFopyn7Lx/AsODTWDIlcWQBmbjoiP8?= =?Windows-1252?Q?ireQfFYIduteoHh2tIOnvtUA41iD+rtNAOV3uji5MG6vy729/kTU4RPv?= =?Windows-1252?Q?2kpFxDBOsBhaUt2DYu3x1bf6DpqxJZoK5971OsTc4ouwxC6WLKMBvrNU?= =?Windows-1252?Q?gv6VmHw674hcMkkXQdwhmNJa7W/f8avJrBvKxxRs56s0x1uicSR1jCa4?= =?Windows-1252?Q?oNN6XamBk95H8HGprkoxwYFfJEHFhtFfvtsCVxGx2ZDY8gVbFE9HRbcf?= =?Windows-1252?Q?dFm0v4jBAZ449D5nUdRJ/vAxyW6qGCp6k2c3GIO+CKRcpPlYbalbH9f8?= =?Windows-1252?Q?yGVZUcD32Lk3J3jUXjZ0w522r+1sVsunyyCZyF53Y8+yrLvpciJu5JMz?= =?Windows-1252?Q?DawJUw5+5oGfIGqR+UBcsAmCQlhYHm0LQYURzAZ7b+hHe7x54LAjetdy?= =?Windows-1252?Q?wiIWm2Cgetwg6yZtmDj6L6sbSFqGG5ZPbknUiveEuHwQ6HScVIxNksHK?= =?Windows-1252?Q?Ip3yoEmWHewIF6t2Hgyg/nxKGC1AxSU2xImDq1QknePqaR8SqwrtJd/N?= =?Windows-1252?Q?cE5Kc3n7+DXHzFIVkC+eXgo5sGQHEJzA+E/+nP3hFnkjxdI6XdRXj7pI?= =?Windows-1252?Q?p3OPdjhVpmvD8nk/ZUW04UeEVImXSPcJSjEAa4an1XJXLho7bub1dPn5?= =?Windows-1252?Q?ail/Hhl4KRqhk49r00UQHk7j7dMLp87P2xKBMOLWo00pT04lGJXNpSf9?= =?Windows-1252?Q?uaC7aumlRDJ+3AlCOWEJjLHz1SfMYkiaGNHN9RewPXdh7sGNn/xdl0kL?= =?Windows-1252?Q?efd8iDK8Y5w90Bff/y7ly2Gogh+grpDsGZ7S7nYm4fTYLotlo7Fepksh?= =?Windows-1252?Q?7MhzrldVs7MRXbMo=3D?= X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2318;6:FGveE1nhZeeLO2KFn5slgKjhKmJPEtywJiwd6Mbg+OEWcupOfjswPnZj1qgJRiGAQoU8J+A+qn7UqKLOetHBnYxTMcZxnQyUEf+Gnv4g0JAoBDhWTXa7G7ICMf+wbu59aWPZaT7SQfznT23Kr3QzZ1GxhB87uQ/WTYkFhzt88hL2v2I3uRUn5xKRTdNoKCHgvPVeTV4NP25UX4I672SuZA3LAnDUDF+4sqSQ5H4r5NOVmfbzXrXy2q5HouJ7K5x8AIyj69twAC/VSN7yySbF4CKQs1J0nO8YSj4g7CUsXg5ab44qiWuAlFPFzyR3u7+Iav9ewr6Pq5Uq1c+xgLfG+g==;5:hc6v/73uLpub97HC3WqbE/TU9O+HACxqIfxnjTM1/gQO0NqhaMUWSMlkU7dAhVXuRfVfkrRL58tyDZvwdDaNmZL8v4WslBbIlmOpkaKv76BXlDliUUUOh6lL+vNO7A6nXFM9/aPDWFD9TM0sUE/CHg==;24:OdY/kPCjCHmui3wuXZdgm+FOb34rzuESvCqqlrI8MaS16jBhPa7BGkNPXJhR/zNA06CQvybP0XhXg/ClJMsd5Cnr66dMkPoLcF5KTCQ1XXQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2318;7:XIcwNZXK/xuzwFF5rju9fR8NAPl0i3Zwwlk+p0cGcgizB62UQaILbsxPiFnvax72HKpwzYfAyvKzWStoOKSP4ryg+grMUB4etNWZ2Rm+51ZVtkQOTwneT+qGVolRw/5UfxwwT2ccquamjvuwIL7k7rPGIMINJe1tMBy8Zexi9yObUz70BpzZspGac68Vgg/BVAWtjlB5SMPGaaKG6vimB3jm4mQ2FqmH90uoyxexT1gDRQ0qIXXGZ2vpIW6reYTZ31xbSCmrf1Al8GLJdnVJWIKcaRVgU+qu5Jt0RNOfijT4MqcoqTPZThiY8/qK0pfcf5xPJ0zrDe4UOwi7nyFX5VmOmDbt0styhWCpweaO92w= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2016 09:01:22.6679 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2318 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3025 Lines: 93 On 2016-10-23 00:43, Peter Rosin wrote: > 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>; Just noticed that this line isn't needed anymore. I'll kill it for v3. Cheers, Peter > + #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 >