Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8046673imu; Thu, 15 Nov 2018 05:52:08 -0800 (PST) X-Google-Smtp-Source: AJdET5cJXZuDIZ1Upsw+I7Ony7EpNd3Om+lA74Wa1mutSKZD1MhoZBhfigGActtxtk9hGS1QCpB/ X-Received: by 2002:a63:960a:: with SMTP id c10mr5879359pge.106.1542289928907; Thu, 15 Nov 2018 05:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542289928; cv=none; d=google.com; s=arc-20160816; b=jdIIeFABaOkbQA2DIQI2rF4GQ6XMjR9IUbom0CVgMcH2QcDFsdsntdVz63oeL7PK6T lhF7ZFGiqtPyFkauwAsUmAszU66EVzskxkmPWoP97QtsrdY3QBS+8Qu0VtmLkv0k6dtR ibwfPQ4W0hJtw4p8DZllUXib0oAqAyQnZ6Y2+jf3jzrA43jgm7785V5IEqt7x0v1ZZVd 9lsqLF7IF2m4H6DyhYws7VMqYRbe8vAHBXB140Dw1Xoot2kDpvRfcVkmfxdU+luIjYCZ UZo7HGb0zBQ6l+WPByvh05vCy7OyenOsCm6M3d+Y3wAnPZZ8A+bqBlzTf6yquTuVHIy0 ioYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=6JlWPzTM2DgRCzQGc2WabXYftzfdaKJ1ohnd0tNx7HQ=; b=VlNa9laiIQ4VonwM3Pv6Jzavu0b4cHdZ50fA70VYcOb6ohZm47b+E7lSvPA6LkFaFD eDHnOobVdHOIj1BOGMOnSCx0/JDu0URD3waWr+g/xSxi+BxLTJL9B7vVdc0siMmVy7sl Peii+RPIGBd1upwZ3EeqitiOSispWNm4CuN+tb0fy2bNqEqt2l7WlHCPVrLjfNrRBPo3 noVoatOa8AnnvsZbWYyHQezxWzsMsEtUyAp7H+0qATvV3SMZGqIDnpVEiTNla20ytqMn fIgyWdIXNLh85HYHPAvq5T7Vjv1vEi7BnHOokCbAWkX24Sc0xq3Pns/KTceYUyQIk9W0 pgZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k30si24052255pgb.113.2018.11.15.05.51.54; Thu, 15 Nov 2018 05:52:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388359AbeKOX6U (ORCPT + 99 others); Thu, 15 Nov 2018 18:58:20 -0500 Received: from ms.tdt.de ([195.243.126.94]:34332 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729010AbeKOX6S (ORCPT ); Thu, 15 Nov 2018 18:58:18 -0500 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 9B8FC21A68; Thu, 15 Nov 2018 13:50:21 +0000 (UTC) From: Florian Eckert To: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Florian Eckert Subject: [PATCH v3 1/2] hwmon: (adcxx) add devictree bindings documentation Date: Thu, 15 Nov 2018 14:50:12 +0100 Message-Id: <20181115135013.30723-2-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181115135013.30723-1-fe@dev.tdt.de> References: <20181115135013.30723-1-fe@dev.tdt.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the devicetree bindings for the adcxx. Signed-off-by: Florian Eckert --- Documentation/devicetree/bindings/hwmon/adcxx.txt | 24 +++++++++++++++++++++++ 1 file changed, 24 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..a94a5fe21b6d --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adcxx.txt @@ -0,0 +1,24 @@ +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: + +- vref-supply + The external reference in microvolt for this device is set to this value. + If it does not exists the reference will be set to 3300000uV (3.3V). + +Example: + +adc@6 { + compatible = "national,adcxx2s"; + reg = <6 0>; + spi-max-frequency = <1000000>; + vref-supply = <&vref>; +}; -- 2.11.0