Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757176AbcJ3SAF (ORCPT ); Sun, 30 Oct 2016 14:00:05 -0400 Received: from mail-db5eur01on0107.outbound.protection.outlook.com ([104.47.2.107]:53312 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752844AbcJ3SAC (ORCPT ); Sun, 30 Oct 2016 14:00:02 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Subject: Re: [PATCH v3 6/8] iio: dpot-dac: DAC driver based on a digital potentiometer To: Jonathan Cameron , References: <1477262381-7800-1-git-send-email-peda@axentia.se> <1477262381-7800-7-git-send-email-peda@axentia.se> <301ab064-cd90-d99d-a05a-8a50ba759c62@kernel.org> CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , , From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <765d8fd2-4753-d3c7-32e0-e6cec9b9002d@axentia.se> Date: Sun, 30 Oct 2016 15:24:48 +0100 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: <301ab064-cd90-d99d-a05a-8a50ba759c62@kernel.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB3PR01CA0061.eurprd01.prod.exchangelabs.com (10.242.133.164) To HE1PR0201MB2315.eurprd02.prod.outlook.com (10.168.145.150) X-MS-Office365-Filtering-Correlation-Id: 45c9bb06-ee31-43db-61d4-08d400d084d7 X-Microsoft-Exchange-Diagnostics: 1;HE1PR0201MB2315;2:S57hXPJSJrWhkcTzTV649ecI5FVqnnCADzIEizOREhNqgTWDOKLvHVFR61cu8Q7ZuxUjfvnF/A6GdK6iUxXj95hQlRqM16T5y6AbcRtENlkqeF79Zncb9xu/Wis2Z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S23OJur/P/pJoLJPEWXzSFSWtnMNb4MSJUIHNaEbDEVstNo3DVLt9r+tkYNMUY8HGp/gg67f2QpgtaA/R3dzmgBodn24TctMlO28ltDnHguJkVUPX35D01MOhgKiAT8iWi2siAZ7U560evUmZPQ3zaXRj/y6/WI6wfVCfx4tzEiRmPMww5kg+j3xmYP5ErCm0YJLU8wb7Kq5T77lb03Clc4gFtH3HT3jmL6aFJVG69aXWmESQ6SCa/Xlb2UAYaeeeErX8OWvrPpNsNGm0hwnkWcHxTW4hVUBowNnlf+TzC98LXLZ4f0lAf3gMyrFFTRYtNuHjlt100qXzEGNhz/6ho94VhmZeNGTp6KV0w6f0wJFO0CGuuZg3JMmwHH+hZAokiTa4eO3CyCYiOzdE4QCsHQeSrp+WOKU8XuI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6043046)(6042046);SRVR:HE1PR0201MB2315;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0201MB2315; X-Forefront-PRVS: 01110342A5 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(199003)(377424004)(24454002)(189002)(101416001)(76176999)(5001770100001)(2906002)(8666005)(8676002)(65956001)(117156001)(66066001)(65806001)(189998001)(64126003)(74482002)(81166006)(33646002)(81156014)(4326007)(105586002)(2950100002)(7846002)(19580405001)(31696002)(19580395003)(50986999)(106356001)(97736004)(54356999)(7736002)(23746002)(305945005)(31686004)(42186005)(86362001)(4001150100001)(4001350100001)(65826007)(230700001)(77096005)(92566002)(50466002)(5660300001)(36756003)(6116002)(47776003)(68736007)(586003)(6666003)(83506001)(3846002)(7059030)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0201MB2315;H:[192.168.0.125];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;HE1PR0201MB2315;23:ExVYPNSnYvZAmOZHD4sJ5Hqj1HmelJtfXi4?= =?Windows-1252?Q?5vkZET7bFDz/q3MB+jtc3MtUpn1sim9c059zyiR1r60VcQpueIl8w2cT?= =?Windows-1252?Q?969OCibRlA6AhVp+La4qibwtNp5kxaQJZxeUkXleG8zgbkXRnK9XtvuN?= =?Windows-1252?Q?qCl1EWV6BKyMttc7U4ec/dU5cTJFcj30EKzR9mdVuKpVtMc4daSRc5Zh?= =?Windows-1252?Q?kNfNVNCX0TLzDgH+zraGGj/yGPcVvEy/V8OBFiqjuX7NWDc9N8Jh/fIw?= =?Windows-1252?Q?wUXnJwHugrA6fvYdhUlVG5S7DlMKBOWnUltWu+IxgQKnCLak6pd+MNpz?= =?Windows-1252?Q?mgsKSTpekfBNYDfg5LoYov0FZXzffQGJqDNgoJtHePObmnvXurjl2bwN?= =?Windows-1252?Q?wUsF7mnYxY79BmzWhbF7wIOLlqhpRGELM3G6lt+cQT1aoPkot4C+S379?= =?Windows-1252?Q?ZDKwGP1P8S4jU+DdIGIqWTvGv4kNll+FOXDwJ1cNp0iehDZ9+vcVc7A5?= =?Windows-1252?Q?GbJq5gY0kVZt/bbifKltuF5hqA2NiCkT+uCUte6rJMGzTQJGC+wLBHJ5?= =?Windows-1252?Q?Exeza+PRKWRGxp9NLF+avl2ZLXG9N0avuM/hyolgjPufUML3Plsfjs0S?= =?Windows-1252?Q?Wfg3vpGSlILe8tG1ZhgnqTGhbyO7wwoW8Y/+oHmp5aMsCkEbbcUrihs+?= =?Windows-1252?Q?hMdfIsf6gja9ZDuEml+PsoL+ySrJrLOdDWQegOIikDV2Mwq9+AruGh5y?= =?Windows-1252?Q?qqr9TcTB84ATVwZzBQPOrDCP3ytwHg9yn2jKytmphHE6qoc4enJUwor7?= =?Windows-1252?Q?cGzz8XwV1kCRDFt4oZWHyeYwkbXdC1cO2heT3kjEbj5g2Tc0GLW1ezkP?= =?Windows-1252?Q?CSKrbRh77DyS1FNOe7TM3BOsdP5os900wgodrGXzLGsS0ZwoXaGMypzZ?= =?Windows-1252?Q?HljHXAUG5UZ5fJxxxR/vk0D5iWtxijlCjPqCC0VtO03mKx2MwOJd8Rx2?= =?Windows-1252?Q?Vwoon3b0teI4IM0Yrwz7BtUVkMoxcWeCyWH9eQIEPbUo9AUMn6Poa97A?= =?Windows-1252?Q?Rl4FhkFVZpC7WNPaAAPh38kHgNJC34ynJcS9+Ftc3M9MJ2MLEEozzfWk?= =?Windows-1252?Q?46nqoW/Qj1vtF8oofPnWcKzf+xM+IrhtjXTSrS7yI6b2NhJXFNh4Wbss?= =?Windows-1252?Q?9qSxGLgXom+6bzbM4Q6/qcMXYzTeGUwtfwKTbA9XGX3LBS3bS00Vlv2d?= =?Windows-1252?Q?JzHpKSj7VKTPpvnN0udL4yX7mw3KkpRXuMdECgDlkNRhEnVaX+9urjE5?= =?Windows-1252?Q?8bakFUKXA9ZvHQd90tFRFz2CjzbS1L3JUDsBJ8V3dElsboYZYoFoyCCF?= =?Windows-1252?Q?ZtfBNzWokc0NmduaDsrcTXIOdIOpSw5+EgL67WWoifFKc+cI+RhU5jFf?= =?Windows-1252?Q?cJU452tHE5HMSG3j2IHTzONqrcm3gDJhzvX6iKkoK90jSYcpZqAzvKor?= =?Windows-1252?Q?+yPeIe4/6UHrolo8TKgbHAfy+AfF+UsN6H2EsWt76N/o98nmESw=3D?= =?Windows-1252?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;HE1PR0201MB2315;6:A/lUihd3CJ6bQqcvJzgTbj34I8yHhz8yuVlmSfk67n3FYK+Q6lLlHxjzqZuvDUclW0ozqhn0qqVBw02e1QEFZFJhN98LuiD0oV/jR/ADpfh+bXEhC2EAazpJmSRMAsXmCAo1X1/WBk5TobhNmDjYXSfpwZEDhvusIrqkg1dxJRIfWszNOWJCCUK76L6B32OGffkK7CCgGIi3fdUqklVrtS0MYZZMjarEa74ksJKmfkKmA1LjGr+P/fSZZhlrQCrSD+uEM7Mn8QkUjDOjMub5wn+1ONnO52WQDl0pbzUDL9u5+hSzoBu1wSRd6HOiCSFb2cTN/1Lhd7nFIg3GPDTTpg==;5:1wrR/3M51cXXmYsPEy+ZB6osDIzsQmX3XBDGNUdO6QRapHbELLRffT9pI6ZoXZ9oxFVWbno7qcqPWeJM7AMHHbaJQcbwzJOtaUdkuXrKkwWONx2V6Rzb284pq/Vp0K5lnaUlY5tIvZmtaggexhaGgA==;24:9mSnxFuXJMMS1is/y5/x6ekAB/wLsP41pEL5Nic9DKleZIi6Z9GmL9Bgb8sEm1peOkGqT7g5scj5DOi+CY2JchfRlSp3r2036T2N66+eeG0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0201MB2315;7:0QrnWiLHP/bf3ndmu5xdOkcPz8smXqXVOXuzl3YqMFfrVqOJNEYhMRBKLUZG5PXr+Ioz9H23ob8D/8iZxECjmtsw4+fcjhJFFWB+KmUj7cberJYvuJ0UoPRjYHahnTjicqac7t7v8FQ+4yprFnD1ImXSjpakZP4OBC9m6/UCYATRFseUCggHP/8sze1Z8gTbb2sDBCC4zewuc1Lvn/tJoj6JAOUXCoeSla2bazeOh4UpXNFcur7DNex/gBp15CBPoAIJ8N9vLKkr345c6oZrMFL8olqrctCZEMqho6B6bV1//5BccRAThOYqxHNUvFm3mjoZoF95VjBDgirdmy4U+dxgpQSrnUgqCkJqcIoILgQ= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2016 14:24:53.3445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2315 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 33 On 2016-10-30 14:33, Jonathan Cameron wrote: > On 23/10/16 23:39, Peter Rosin wrote: >> It is assumed that the dpot is used as a voltage divider between the >> current dpot wiper setting and the maximum resistance of the dpot. The >> divided voltage is provided by a vref regulator. >> >> .------. >> .-----------. | | >> | vref |--' .---. >> | regulator |--. | | >> '-----------' | | d | >> | | p | >> | | o | wiper >> | | t |<---------+ >> | | | >> | '---' dac output voltage >> | | >> '------+------------+ >> >> Signed-off-by: Peter Rosin > Only a trivial suggestion to drop the devinfo about max ohms now it's > exposed (effectively) via the dpot driver. (really minor though so don't bother > respinning for that!) *snip* Right, I'm making that change locally so that it's not forgotten, and feel free to squash that dropped line before pushing it out if you like, in case there's no respin... Cheers, Peter