From patchwork Tue Oct 13 09:37:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 529656 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 651AC1400A0 for ; Tue, 13 Oct 2015 20:53:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752152AbbJMJxj (ORCPT ); Tue, 13 Oct 2015 05:53:39 -0400 Received: from mail-bl2on0056.outbound.protection.outlook.com ([65.55.169.56]:48960 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752076AbbJMJxi (ORCPT ); Tue, 13 Oct 2015 05:53:38 -0400 X-Greylist: delayed 922 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Oct 2015 05:53:37 EDT Received: from BY2PR03CA011.namprd03.prod.outlook.com (10.255.93.28) by BY2PR03MB362.namprd03.prod.outlook.com (10.242.237.15) with Microsoft SMTP Server (TLS) id 15.1.293.16; Tue, 13 Oct 2015 09:38:13 +0000 Received: from BN1AFFO11FD053.protection.gbl (10.255.93.4) by BY2PR03CA011.outlook.office365.com (10.255.93.28) with Microsoft SMTP Server (TLS) id 15.1.300.14 via Frontend Transport; Tue, 13 Oct 2015 09:38:13 +0000 Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; hellion.org.uk; dkim=none (message not signed) header.d=none;hellion.org.uk; dmarc=bestguesspass action=none header.from=analog.com; Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BN1AFFO11FD053.mail.protection.outlook.com (10.58.53.68) with Microsoft SMTP Server (TLS) id 15.1.293.9 via Frontend Transport; Tue, 13 Oct 2015 09:38:13 +0000 Received: from NWD2HUBCAS8.ad.analog.com (nwd2hubcas8.ad.analog.com [10.64.69.108]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id t9DDKudM006184 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 13 Oct 2015 09:20:56 -0400 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS8.ad.analog.com (10.64.69.108) with Microsoft SMTP Server id 14.3.210.2; Tue, 13 Oct 2015 05:38:11 -0400 Received: from carl.ad.analog.com ([10.44.2.243]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id t9D9c8cc023971; Tue, 13 Oct 2015 05:38:08 -0400 From: Paul Cercueil To: Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Michael Hennerich , Antonio Fiol , "Dmitry Eremin-Solenikov" , Rob Herring , Pawel Moll , Mark Rutland , "Ian Campbell" , Kumar Gala , , , , Paul Cercueil Subject: [PATCHv2 1/2] Documentation: ad5592r: Added devicetree bindings documentation Date: Tue, 13 Oct 2015 11:37:59 +0200 Message-ID: <1444729080-9937-1-git-send-email-paul.cercueil@analog.com> X-Mailer: git-send-email 2.6.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD053; 1:Jpcxhbj1xSdZ2NNs7XSai6Dc+k5bERQXaswy654pyV9wM1XKmAjIcd4qUf8fI80DSc91xJxMatXcklPGwygJELH6Fq3Cd76GM0l7W4e4H38QaBB+6ZNWAQT+Z/UbmiU9sBssnG3frXbK2iRj1iVI46MnMwE5qQRGjDuEiwmilwMYqjmopOT8NWlsFEi+SwWg4a8VB+ZKjnr7rFs0FC25Ios+Bqp1PsVcFQYEwylgkuZXf+EVoI30M+KSey31trGN1k7MT8FsJ7Nf8YqaYRuaU4ZubnMPy2k42zfasQ/DR4hhjFgoYz9NlBsEpky21D1xz2yc3Xv86r/S7D0xqRxEZbV3bOLiuSxMGK6WVphbcPju953g/h5567n/7tSMwJ9L6Os8WsPmLdalWHjgLY73hpERmNWMGgE+1xLy20hYwDk= X-Forefront-Antispam-Report: CIP:137.71.25.57; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(110136002)(36756003)(575784001)(77096005)(189998001)(5001970100001)(107886002)(86362001)(50226001)(5007970100001)(87936001)(5003600100002)(5003940100001)(6806005)(11100500001)(92566002)(48376002)(50986999)(5008740100001)(33646002)(64706001)(50466002)(19580405001)(46102003)(106466001)(19580395003)(47776003)(229853001)(7059030)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB362; H:nwd2mta2.analog.com; FPR:; SPF:Pass; PTR:nwd2mail11.analog.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB362; 2:8V7p36+PDlSgTovDTZHzG6pBCRWeccJ8SwBq9HP4mGxP5MSJGMk7emrPbcIc2n2RXCm/zI7EQ6DpQ/o4eA8ry3cqlhjhQFutwHyasxEBke+GZ5I1i6FrrVBykY6g/F1VvDNEnTuf3AyaQdmisSc3EXzkDNjZXtE6n97rttIyILo=; 3:IwpR6LkNPXyq/ncJSc8Y0zBupSImMkdCoadcQldptiFTba9+L4e8gSlTD3+wI4ayB2V+PNp5kkfwSXYkuOzfpTHrBnExnj2WJLWx6B7ZkH3nw+A3yjV13Mz3zRjdPNNtycFZeL8LduKkW8Itd3IPluSyMaPP0X6lpmcuc5nY1xgljtibVqVfeJcHRSyGywdXeYjyuXzZtIzlYP4HwzYzkGOn9ffGyeIIfHofo/CWHPEnSUGWOYri4PWMfyw5zDF/; 25:S/SjIZ9aa9PLyfgAizzsHovOra8RCv8vSkzOGeJWiJ/Z1fAeCgKZF0V5VDP5MGFeLTn3lJ73mOYa0pFGUtreTZZy4I4UJ+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K6hvESp9ccZyX7xL7b2wJdbEesvEJp+AcFZ9OTGzlRgl3SEKG1RppT8OSyM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9192018764339); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:BY2PR03MB362; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB362; X-Forefront-PRVS: 07283408BE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB362; 23:jgx2WPsCaqDlsEafmynj6oEI+GE4wAf3UIK3vRYL++?= =?us-ascii?Q?w4ibALhFM12W60bVYIG9cai+JVvuI9NM7/6X14hzQNxR9IKTsgkWMX9KRUZw?= =?us-ascii?Q?hzsYgxCqqlxEvZQWD32WxQmvkRXmY6JXPrUymWtx7oEffT94pTckZ5djW0B5?= =?us-ascii?Q?2gH8/5tjm/ZHa3DAi8tdBpLcKTNMWs44gNoIPKxudDzEyGUvOv5b4LMkr85O?= =?us-ascii?Q?6BE0DkWaH+hwPC70x7sUTKWk1svF7ss0tfebBB5rxc6/A+v1ZYvjOI7+a0D7?= =?us-ascii?Q?lJVIhXv0dDkrctVGZE0j/9c0yvt3qV1VIoEpUGOSkatY9+h8JNGFphIMgoPg?= =?us-ascii?Q?XBZan5DdvDO76tptAEF9vl2tnXHSIGkdNcrKEZl15GnczcoFK6HitLUEMJWe?= =?us-ascii?Q?/u5e/eNWsaKr0EYhvuGM4pPfzvwUkkGKKqEnKIlETPOPEdAgt6q44kbwdwNU?= =?us-ascii?Q?TL5lJDeUVRf7gPTYnBoG4kF2gcv5ICI3FfAqmZ8X7yz+18gFY10Jkd35gxCJ?= =?us-ascii?Q?e8UKWfscbRbVOZxvU4FDqA9TWrx2Y3sYv2d5fTFGaagmaso0QNg3f+VbQlox?= =?us-ascii?Q?i3iE9/fL+ctOBT1hVFIrb0OogDoNRlLq534NS2+jW60TtIjtIn0/ezN9PlXI?= =?us-ascii?Q?SGxBzMS7mDNOdxBAHC7vadP+EG3F/f7isBdWvXvclNv/SdJqypQ3mLrKtrFV?= =?us-ascii?Q?TAdf0VxZ3u+ofTC2yi7ieKLhpchb2qgjPWwt+NHoSWPkfJrZXvHRKHA958Ho?= =?us-ascii?Q?TtfdHp3eb02qczHfgTNFAbJIyi3KZI0Y9EaT6rrWSW4JnDe7YDcV+2wmUVS/?= =?us-ascii?Q?E2xIoJc1DX7OryW+rF8v4QyChULeFunbDpbnT2hFsoS7AxJmu9i/xqR9Ytv5?= =?us-ascii?Q?NmdfORva5l5fD6Yd2U2YaMnAE/NrnV0i6Ry5NlcOsUoakAGjBjqY+wCbXHGc?= =?us-ascii?Q?7SzIxD45s3NfqdrgLiEHdrk26Tu0DuStd3IBfzAK+72zJdYP6mfllS/amy5J?= =?us-ascii?Q?g=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB362; 5:m8eL2OxAH5WhNQMAWcLeJw7uZsMvfhzFq2MVKaNLr6HsO5m0a1tcGV3EhB/9gXr2Zsq+U8hSawqHeIJDZ5eNZBLBUVE3gbYdA49/dCDlYXvfNgZiPbsNzfjrNFB5kviax8yBsG2z79FBPrPrZXS0Ag==; 24:fmu+S72GKBFBpj/mj8zta24kqpxg7y+yLtGua5VdzzCiTEvXj+TjfXGIIS0CKZ1yTqgYKD0s74MF7YfLMS7+UYoauKUBG8u+AzFBRmBHD1E=; 20:B8n8cYV6MfDhrrh49I8UkvpWmQ9JbdEuKPytWQedfkNAAEaNx2rSD5iO6gjrL0eyUO3lk3LfM/wD52F6SObgAw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2015 09:38:13.3905 (UTC) X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a; Ip=[137.71.25.57]; Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB362 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Paul Cercueil --- .../devicetree/bindings/iio/dac/ad5592r.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/dac/ad5592r.txt v2: Fix indentation issue diff --git a/Documentation/devicetree/bindings/iio/dac/ad5592r.txt b/Documentation/devicetree/bindings/iio/dac/ad5592r.txt new file mode 100644 index 0000000..12b8d0e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/dac/ad5592r.txt @@ -0,0 +1,43 @@ +Analog Devices AD5592R/AD5593R DAC/ADC device driver + +Required properties for the AD5592R: + - compatible: Must be "adi,ad5592r" + - reg: SPI chip select number for the device + - spi-max-frequency: Max SPI frequency to use (< 30000000) + - spi-cpol: The AD5592R requires inverse clock polarity (CPOL) mode + +Required properties for the AD5593R: + - compatible: Must be "adi,ad5593r" + - reg: I2C address of the device + +Required properties for all supported chips: + - channel-modes: An array of eight 8-bit values (one per channel) + describing the mode of each channel. Macros specifying the valid values + can be found in . + The following values are currently supported: + * CH_MODE_UNUSED (the pin is pulled down) + * CH_MODE_DAC + * CH_MODE_ADC + * CH_MODE_GPIO_TRISTATE + +Example: + + #include + + ad5592r@0 { + compatible = "adi,ad5592r"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + + channel-modes = /bits/ 8 < + CH_MODE_DAC + CH_MODE_ADC + CH_MODE_ADC + CH_MODE_UNUSED + CH_MODE_UNUSED + CH_MODE_UNUSED + CH_MODE_UNUSED + CH_MODE_UNUSED + >; + };