From patchwork Tue Jan 6 15:29:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 425705 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 4C122140082 for ; Wed, 7 Jan 2015 02:31:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755685AbbAFPb1 (ORCPT ); Tue, 6 Jan 2015 10:31:27 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:38795 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755262AbbAFPb1 (ORCPT ); Tue, 6 Jan 2015 10:31:27 -0500 Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 67CE759427A37; Tue, 6 Jan 2015 15:31:22 +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; Tue, 6 Jan 2015 15:31:25 +0000 Received: from arch.hh.imgtec.org (10.100.200.54) by hhmail02.hh.imgtec.org (10.100.10.20) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 6 Jan 2015 15:31:24 +0000 From: Ezequiel Garcia To: Jonathan Cameron , James Hartley , Andrew Bresticker , , , CC: , , , , , Phani Movva , Naidu Tellapati , Ezequiel Garcia Subject: [PATCH v6 2/3] DT: iio: adc: Add CC_10001 binding documentation Date: Tue, 6 Jan 2015 12:29:02 -0300 Message-ID: <1420558143-26276-3-git-send-email-ezequiel.garcia@imgtec.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1420558143-26276-1-git-send-email-ezequiel.garcia@imgtec.com> References: <1420558143-26276-1-git-send-email-ezequiel.garcia@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [10.100.200.54] 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 Acked-by: Rob Herring --- .../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>; +};