From patchwork Thu Nov 13 18:19:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 410537 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 6C5811400F1 for ; Fri, 14 Nov 2014 05:21:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932767AbaKMSVe (ORCPT ); Thu, 13 Nov 2014 13:21:34 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:55613 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932648AbaKMSVd (ORCPT ); Thu, 13 Nov 2014 13:21:33 -0500 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 653F29CAED4BF; Thu, 13 Nov 2014 18:21:27 +0000 (GMT) Received: from hhmail02.hh.imgtec.org (10.100.10.20) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 13 Nov 2014 18:21:30 +0000 Received: from arch.hh.imgtec.org (10.100.200.222) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.210.2; Thu, 13 Nov 2014 18:21:29 +0000 From: Ezequiel Garcia To: Andrew Bresticker , James Hartley , Lars-Peter Clausen , "Jonathan Cameron" CC: , , , , , , , , Phani Movva , "Ezequiel Garcia" Subject: [PATCH v4 2/3] DT: iio: adc: Add CC_10001 binding documentation Date: Thu, 13 Nov 2014 15:19:32 -0300 Message-ID: <1415902772-20407-1-git-send-email-ezequiel.garcia@imgtec.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1415888044-16635-3-git-send-email-ezequiel.garcia@imgtec.com> References: <1415888044-16635-3-git-send-email-ezequiel.garcia@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [10.100.200.222] Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Phani Movva Add the devicetree binding document for Cosmic Circuits 10001 ADC device. Signed-off-by: Phani Movva Signed-off-by: Naidu Tellapati [Ezequiel: minor style cleaning] Signed-off-by: Ezequiel Garcia --- .../devicetree/bindings/iio/adc/cc10001_adc.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt diff --git a/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt b/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt new file mode 100644 index 0000000..b7ba558 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/cc10001_adc.txt @@ -0,0 +1,22 @@ +* Cosmic Circuits - Analog to Digital Converter (CC-10001-ADC) + +Required properties: + - compatible: Should be "cosmic,10001-adc" + - reg: Should contain adc registers location and length. + - clock-names: Should contain "adc". + - clocks: Should contain a clock specifier for each entry in clock-names + - vref-supply: The regulator supply ADC reference voltage. + +Optional properties: + - cosmic,adc-reserved-channels: Bitmask of reserved channels, + i.e. channels that cannot be used by the OS. + +Example: +adc: adc@18101600 { + compatible = "cosmic,10001-adc"; + reg = <0x18101600 0x24>; + cosmic,adc-reserved-channels = <0x2>; + clocks = <&adc_clk>; + clock-names = "adc"; + vref-supply = <®_1v8>; +};