Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965272AbcJWBTD (ORCPT ); Sat, 22 Oct 2016 21:19:03 -0400 Received: from mail-ve1eur01on0102.outbound.protection.outlook.com ([104.47.1.102]:47200 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756170AbcJWBSJ (ORCPT ); Sat, 22 Oct 2016 21:18:09 -0400 X-Greylist: delayed 7240 seconds by postgrey-1.27 at vger.kernel.org; Sat, 22 Oct 2016 21:18:05 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 4/7] dt-bindings: iio: document dpot-dac bindings Date: Sun, 23 Oct 2016 00:43:43 +0200 Message-ID: <1477176226-10566-5-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: 6d150f2e-b804-4390-bb84-08d3facd0bb3 X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;2:0U3MM8ZCJpEEKcb6Oveb+Sir1ZAtAngM57AXAZ+1RGhHaZYIE0kWaydFDN9AjwNKaRnBMnXx+oqhglDcvkZnrLt2pfR4885wzyZiJOiMvsiigtQaIm/bnnL8kbsMACgO2Kc1N1jXh06zEE8nRFq+AWII9Jc9xhjgS1EhXHrj3N2+zXHHTqM3oXstw1r63plANuh37YSsjPxzAfauVpO6Kg==;3:5brCY6AtvLIx0HFLFvGDP6rFWo4lya8GshpviiHQPgIDnGjVnmaY7EeIeodHAKAo161l2GIHYR760ap9mxpFUmGqrW2kKq53PtAhnn8nQg1ggN2uw6wRhCsKytUmXIz3ARO3yF34aCPyNJUFxynDHg==;25:O3sWIOWsFcHJVIcqWduionfbVJAPAmXLGD0C8fTtw5ZY4RwFK76r4mbdoT6yB8Gps2ykedanEihZ+wDSe1XCwx8kVH2OO/YloxoA3bsyPU61lJnW18th48+Dz4K0wZY8ryiNu/0S3/7/05JfNUh73ZgoPP6IohhaiUApdED/ZqQnicYT7TH6pRpG1vjRCbkvVUyiuq7mJYXKTEhJLNCuCTURiJL9XoBkh43TJfUDGrSeCPZq04QgwkooyAnSpOit9fD2OH9Y9/P61ebfpZdaLtf5uCAlX76VESQ2+Wqz0X+s9vpWWAZTpSDVJGhwy/q12Ygyp07wG0E2axQgFD8wxazymUnGXeAyRedeklcTKxYTz9err27KluIqQRp+PI7PfwMgo66enNYi/S0NvDm0oq5QcnHwOHgY4nhltPIraTBzXi/yzyHJwWIc/ZsmrrTX X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0201MB2317; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;31:Q8EItVRMTd0CDl7lNgYTYWc4gMf8//eXjF4VdfiY1C6u8m18f3SMGDN2I4NIRC1hxLL5JtBGbmFpMF8MnWhymEzqCPgOB2M2ZAECczotIetnKIxmt0xfehWx0eTA3ajkcUhy6QpC8RGSaj1Xef5d/Xk8w1DU2NYHYl/spNV9iilNbzApP3h3ysadpm3dS46az5TD6Ud/m27fZkDYJ8qfzOBhulKPivWuNoGRkL7CKdNl1TdSgOPpgKJZOWj8JS8m;4:cmkWrLQd3zlNm+x3vjEFPc+8amhq92kbZYi1zgEJk0emtgf6wz+wp1z2brJ+O2n9yDJTjBrqCN7XXYEGR0iMz2SLN37+wm95gQILZLH2HgU+gK3XjLsejVszhuvTSUeZHrisx5yYVgxqCck68nmVF5XpGJOEcZzGeyocfduz4JmfdWy/sJn2891Ug6i41NFQDo9vFBpkHqYjgWCTw9Ea9XcCaCAbwvYIZXHZ91Ol6TKWddG7GhSh8tAlsTZA/sON0rZN1CLqPnhJUcXNyIv4wI8ggcT3DUDN9hfMn9JKo5CneTwRQkb2RAX6NGeGZn4uZc8bnNYZbKdAo3fF93GA4a1AOQ1FGdxT7mAETikPTbApVQ4rp/LOKzAaLLkzwUeiJEpeqc0l6TItql6AYapsDWv986mBhelOZFiwM+zfaBlf4Cp1BkQoF8aEkqfpMgvK+IqpCkMg1denuw5ODEw31GaA9si+Ii4O7dyigknAMuOS+OBlKnZqPYIO5A6mBTN9Khne41lC0ImWtqs8fhfZBw== 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:j8BcSck30RM3XiftO9k8eVetu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uFXZ6bO2ZUbScVc33SKqyyK/gqRqdy/9S6ZpK?= =?us-ascii?Q?DiWDMlaCde/X+aa0uth7YTlhzIb5i+oR0whwFpWIfqc5xZpQxpAxy8918Rv0?= =?us-ascii?Q?Q3oui8UxlTs8UebyeEen3zOFsYuOXvXb5GNliZzuTUR0D4GGescDZHacKS49?= =?us-ascii?Q?96IbBDNayzFN60PWieob7yaqmODcEZvjNyP5uYnm+TU8PWw6Nf25+1gm1A2w?= =?us-ascii?Q?fJEYDVVMm893mvvaqxjNbwlvWIHdmFLCSePStOVk3ChVvDk2tOmakyaTtM+U?= =?us-ascii?Q?wxnNf3DlH/eNz5gI=3D?= X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;6:lVgkQp4zEuuSlbmr/SGbkYpMXQCb/VyMpeW5cQMye1hQs9qwpr8s62XOsqlqG1osU1wtlsyivV+kaGIlipsAX06gOQGPOyAUDH4aexnZzXV06EtnU3FwYjV13Y+U5eu6z2l5npqlGpNeIjssoVfrjL1gxEH4NzH7Z6yZbZD7v+Llx50qxN5hxCDSQ8JxHilQHi+SxD4Xg0IWPY4S/g0v7tkXmXG/EUTKrTNjYFv5h+PHYOZlRgjYPAeKzyJrAKSEbpUqmdKeqbMbjQWBVG55E1wkriTKQAbqbPnq9ZGBHDowyWAkCkjb7pIEnit6tyIOjLu5Qui2HubV5BAlXxKKhA==;5:3DFPNdbSLSjT2agQ9uqoIqKyLiUgkf5BaTCR8MG0VdsZBUxUD0CTrXbLHy2OhoaRgnom6jjzyyuMHx/qJJi2YGYjhzPydJ5Xcgiz22OPHCHEwbuz87hfGPmqvepRI4uBi24MYPAh99t3VsM9MAsUuw==;24:wu3/QNPWv7hxIAdetEkZwdidNv3GIbVCHKLStllzrBc6jjDEFp6K2rjE6PxDynYHSUHsvRabgua4ofSgX4Tw4HATGK3IRWaQ3zMqmuxoG20= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR0201MB2317;7:60Ee2CvBFNY7JzVkI+54JprjGl1hO5g6V4cwyKnZ/6o9P58rLjsw2uDm5LaedjIEbU6jIlKBLY9A2ntOSK3YEUopAY1CpUoRgTmY9/bQEbVE0D2laSh2VnhuYhPnXk8wRvvNHauAH3yWVVwQK88M6CL8t0AgfBrWeVzc9mEC8KLP/murZ4CeqL1GIzEvLfJ35FxOhVTSZNdh4Xschf6t+6BNXMyppAQNzUBv4JnwEuvg9pZB3dDuONgEYgaomAaKGxkzbNPOuuZfCVM6qIPXC28OoIOYKKuUHwV2zntkl0TkbJ/tsQl71z102zvLhwsqLtjJ2xRmUlW/BhRcnTEc8a2Vh8bk5474FtSHzTCzAUI= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2016 22:44:54.5607 (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: 2259 Lines: 73 Signed-off-by: Peter Rosin --- .../devicetree/bindings/iio/dac/dpot-dac.txt | 41 ++++++++++++++++++++++ MAINTAINERS | 6 ++++ 2 files changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/dpot-dac.txt diff --git a/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt new file mode 100644 index 000000000000..4fd5d63cc2d6 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/dpot-dac.txt @@ -0,0 +1,41 @@ +Bindings for DAC emulation using a digital potentiometer + +It is assumed the 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 + | | + '------+------------+ + +Required properties: +- compatible: Should be "dpot-dac" +- vref-supply: The regulator supplying the voltage divider. +- io-channels: Channel node of the dpot to be used for the voltage division. +- io-channel-names: Should be "dpot". + +Example: + + &i2c { + dpot: mcp4651-503@28 { + compatible = "microchip,mcp4651-503"; + reg = <0x28>; + #io-channel-cells = <1>; + }; + }; + + dac { + compatible = "dpot-dac"; + vref-supply = <®_3v3>; + io-channels = <&dpot 0>; + io-channel-names = "dpot"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 1cd38a7e0064..c68b72088945 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6111,6 +6111,12 @@ L: linux-media@vger.kernel.org S: Maintained F: drivers/media/rc/iguanair.c +IIO DIGITAL POTENTIOMETER DAC +M: Peter Rosin +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt + IIO SUBSYSTEM AND DRIVERS M: Jonathan Cameron R: Hartmut Knaack -- 2.1.4