From patchwork Thu Aug 17 11:17:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Eckert X-Patchwork-Id: 9905735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6E0EE6038C for ; Thu, 17 Aug 2017 11:27:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 480DC28AA1 for ; Thu, 17 Aug 2017 11:27:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD4128AE6; Thu, 17 Aug 2017 11:27:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B5F528AA1 for ; Thu, 17 Aug 2017 11:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751626AbdHQL1M (ORCPT ); Thu, 17 Aug 2017 07:27:12 -0400 Received: from ms.tdt.de ([195.243.126.94]:52718 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751644AbdHQL1L (ORCPT ); Thu, 17 Aug 2017 07:27:11 -0400 Received: from feckert01.dev.tdt.de (unknown [10.1.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 799D521759; Thu, 17 Aug 2017 11:17:13 +0000 (UTC) From: Florian Eckert To: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org Subject: [PATCH 1/2] hwmon: (adcxx) add devictree bindings documentation Date: Thu, 17 Aug 2017 13:17:04 +0200 Message-Id: <20170817111705.24419-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document the devicetree bindings for the adcxx. Signed-off-by: Florian Eckert --- Documentation/devicetree/bindings/hwmon/adcxx.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adcxx.txt diff --git a/Documentation/devicetree/bindings/hwmon/adcxx.txt b/Documentation/devicetree/bindings/hwmon/adcxx.txt new file mode 100644 index 000000000000..7b2a31b95723 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adcxx.txt @@ -0,0 +1,23 @@ +adcxx properties + +Required properties: +- compatible: Must be one of the following: + - "national,adcxx1s" for adcxx1s + - "national,adcxx2s" for adcxx2s + - "national,adcxx4s" for adcxx4s + - "national,adcxx8s" for adcxx8s +- reg: SPI address for chip + +Optional properties: + +- reference-voltage-millivolt + Reference voltage in millivolt (mV) + +Example: + +adc@6 { + compatible = "national,adcxx2s"; + reg = <6 0>; + spi-max-frequency = <1000000>; + reference-voltage-millivolt = <3247>; /* 3.247 V */ +};