Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756949AbcJWWlP (ORCPT ); Sun, 23 Oct 2016 18:41:15 -0400 Received: from mail-db5eur01on0103.outbound.protection.outlook.com ([104.47.2.103]:11184 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756861AbcJWWk4 (ORCPT ); Sun, 23 Oct 2016 18:40:56 -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 5/8] dt-bindings: iio: document dpot-dac bindings Date: Mon, 24 Oct 2016 00:39:38 +0200 Message-ID: <1477262381-7800-6-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: 48442626-d57b-4546-a7c8-08d3fb95a609 X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;2:g4d/1dRZcYAdHpk6rBsQvcQyprCOBv5ILVMGFrGucug5xDB17hbH0tDui5sPHFVILck5N17ESwBvWl/r8BrLhbzxj/vO/Da8iGmkvNrMgcp2g3TOKpe6/os9anGUJfhNaouqwQS059pt1zD3e2/mdJ1SjRlRtl6rVWRkGHxbnR2eZxJfHfcCe5uiTyLqBvR3rPGABlfiFoEq2esMPESwIQ==;3:PJGQGZhPVHbp56YMHW1undUIShthU2ONiHlVjncjM0MI1ZUOJ4GC0ehpM9QGcdS1xF7GclE9RIvnQVXQttDmeNiY7iE+2GpbZ+kCFsxGB/NNNvISdGE8i2sQ3OiFgf7DOxsIi8kGje43DoqbdovRfA==;25:Db5ePaDq9U1gqv60WcaXwklwMcC3ADArtLPcIIoAqYwhhFO9YY4hCFY3eWwkrzivAKlqDfvMHvq/zG/bXTFdAam9KBX7WjfhtgN6Dew9qwFis8jzA0K2Gl33//QZT7nFnqjsM5+AQLxN2hlX3Za+nBpGMuboL6QP/Cuduu6y+jkxKSVopRlLw2QxMWI6jUMpzcu2GgwLom0ABuSlxhWuoK4ckStMNtoUITXUEtmu0UfkpuAeC8a91MKGoEZDxCuTdsZTnTA4K4L49ttlEFkaDYyUheEymdT4dfe3XMfKUqEDLb/GVGHMcbb63k7hAhs00IlNNSoj4ErAUij55Uqxu4Zf5kQTn+l5dv5ST4JlyZ6DTMbFpYnGGWu78AA6OMwqqCp14rpHphFWTzEHAFGHglBEeOiFf+IWbkufwP0yEgKeQN1HFuBynQyjidev41Hh X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0201MB2312; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;31:tWY6371EvD02R6dHUXnt4Zo2fikI01PasP1Ym8tsy+3ebvRTEydwNAKIaUG0z41BLAZHIZ+cjqnHEj7503NRYhSUe0+630vcp2h6iNnlSJd3hFYIoVm2vEeEAcWWYQ1bQ55avAiwFaHuKerYeOqnjBYi5Jt2tPSy624IMghQDSoQLbkcxq5wIbHBY/7qzlaZKKnET47IiGp3G/Q51BwQI552uSNQutKI/bhqcb+O8dAsL1448vtn98wHnQ2A99CkDyRC47Qxaji0LUdujPZqlg==;4:LAssscwaOQQapGg8784nN9SiHk8eALJzZnydqAfqt7/XlTXZvnrnkCx8fSR48SWf8azS1zZ5t53vRuFB7XCimEqLva1RCeoCilTyoP8Rz+lKtydCLekFVDNP35NdHOo5K4mIBfZ1Vp5PMaF2sok0qRBHZyrCN0/P+lm2kwcWGAFbmDrZwdVUuOva3V2j2inSaMIyVXS6e8oWHr3LSsUlYNd+UAIuc626Lv4ydxIDlD+5UP5N/93JrAFOHJnz6DJ8SBPgD+sTUVGGruVFFgJKDdv4f/A4NCIs8r2lHKU0GJMEq6Hzi7JNSzkiigi983HmviuPo70xzIVS5YP7mvUVhDDfoTQlpD22jBNreIpyDnejhHGnfrRN1ifPTyCGkOz33ATdVsJ8HO/+tPPQzujwhy1lHava+9BWCKwU/wb30X0yQwKoFvaeA0F+YE1W0vYgaYlh6xNk5nOnaemA3ptNVwA/wgajN0VYL5mz/i1FDe+Vq2H1HDiu+8xaGxmLQ9/7cDmsjzRQZNUNnmkyu49IuQ== 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)(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:Rm2XOZdAOlRdaj4G4gdhJDQqz86sRLfPn2mnwnc?= =?us-ascii?Q?zl6+hVFJpVjYrW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yMObyHvUwi?= =?us-ascii?Q?VXELhYQUiH/uw7g0YNXDowY1KpwcOrHMadr73c8rJyFdNidxq09Vv/SOB7PR?= =?us-ascii?Q?i9zf/i4FTAe6p6jTSvxqU34peEsmM1W9MvfTUo2iZw+NxURm3rYPmiS6X3ve?= =?us-ascii?Q?WTYB6bkWrJsIaZqdjqsqV1Jubo17DoiTwmh2nhZ2Kwrc9nJqS5RpDFwzvHAm?= =?us-ascii?Q?qyywYY3YezpOMlAejS+io4/1We8E6H3N0t/xqrR6s0Cipkug5W8tnfFDVyLF?= =?us-ascii?Q?SzURshdQqP/ECGVg=3D?= X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;6:L6Vw7h4KIXwLPEpoSuVXHQpECVG7OIIeTUgG5f28CCF52ydBpGAU0MAXwaBLdewXSnNigvipygTa15VEsODths8FvoPPMASw3fPJ6BtoYj6hlVcduxlgQpYOjnx870eLDsnnrJUxNwHVjlVAMLDMpB0kLU7NR+SbVogsn59C8IZZG6o2DFOQRYADuetY96pD82U8j++3JWLG4dobCfP27KVnj6zxEbGxyZC6c+6aDt01chS/Xb076AH8EIb0mqPg7kLvCBmrATBl2HhruYOEwr1bpsh4qV1u8WWOnhiedr3n8EsPWN4BmVvHFCsN9fB+Y4+7bwXBgkyWKLMUo3FJ8g==;5:+RxUDh1T1fbIL2MMJGNnjK1TsOAy99iQ97F2S/Kllzoc6i6I+N9OOT24vUhNIDrh6IOPT0SU60lf4iu0ZOvAlacVeqEF1mAy6NJYfEiKuVvHoy/O6qGXogc223soxm1ukjjy6NkCQe6xkTNvRt1/ObJiUspV92qRr7T4x7ngk3A=;24:jvopSY0MY0LNqk6FSJgKOWKKshB9bEuYSVnDSHDR3rSapTtmdTo/Ddq4WWCgrMSEVja5AJbAv6aoDYlbdGs9SPG7cgyp/z67uyW2qc0ldAU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0201MB2312;7:WNWDxnrPC3OosJd1dpqAVpCTICO1BeHrNdzou9qvXDdrf4I8ciAUoZUeZFJ8Nnokw9FOxad2DD2Wr1Uwi/ieNCd8bB2n8kXR6qoZgn8dRzR7VXJlTSPVtXkRAIqDa4NNTEZoBwYV+dYk1Rmp/LcLxT9OR/OrCz49uCVzy3Dmd9YdfuTP1X0cViwUqv60P6FDdBsdipkG/JeCT+C8VSz5PVbD8AMl/0QiQNzARuo5YVOQZHzEQpaICxaWsXduGqphERWsneMxS4GbO1xh+DBDV/N8Y8FQYYaIs+YVNuOt6qyW4hjPtPlEovdfWinYZpq6LtUVAL8CR2EgJg+snuLVyKqmCTWJjgiCOOhbfuUt7gg= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2016 22:40:53.2722 (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: 2255 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..fdf47a01bfef --- /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 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 7c65585e1230..6218010128dc 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