From patchwork Mon Aug 1 10:08:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Golle X-Patchwork-Id: 9254209 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 348CC6089F for ; Mon, 1 Aug 2016 10:12:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B7F22848F for ; Mon, 1 Aug 2016 10:12:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1010028498; Mon, 1 Aug 2016 10:12:07 +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 7A33328496 for ; Mon, 1 Aug 2016 10:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752295AbcHAKJj (ORCPT ); Mon, 1 Aug 2016 06:09:39 -0400 Received: from fudo.makrotopia.org ([185.142.180.71]:46493 "EHLO fudo.makrotopia.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbcHAKJW (ORCPT ); Mon, 1 Aug 2016 06:09:22 -0400 Received: from local by fudo.makrotopia.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bUA9b-0005ng-UH; Mon, 01 Aug 2016 12:09:00 +0200 Date: Mon, 1 Aug 2016 12:08:58 +0200 From: Daniel Golle To: Guenter Roeck , Axel Lin , Per =?iso-8859-1?Q?Dal=E9n?= Cc: devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: [PATCH 2/2] hwmon: (ltc4151) Add devicetree binding for ltc4151 Message-ID: <20160801100853.GA4250@makrotopia.org> References: <20160727144859.GA18846@rob-hp-laptop> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160727144859.GA18846@rob-hp-laptop> User-Agent: Mutt/1.6.2 (2016-07-01) 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 Signed-off-by: Daniel Golle --- v2: add description and -micro-ohms unit suffix to property Documentation/devicetree/bindings/hwmon/ltc4151.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ltc4151.txt diff --git a/Documentation/devicetree/bindings/hwmon/ltc4151.txt b/Documentation/devicetree/bindings/hwmon/ltc4151.txt new file mode 100644 index 0000000..d008a5e --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ltc4151.txt @@ -0,0 +1,18 @@ +LTC4151 High Voltage I2C Current and Voltage Monitor + +Required properties: +- compatible: Must be "lltc,ltc4151" +- reg: I2C address + +Optional properties: +- shunt-resistor-micro-ohms + Shunt resistor value in micro-Ohms + Defaults to <1000> if unset. + +Example: + +ltc4151@6e { + compatible = "lltc,ltc4151"; + reg = <0x6e>; + shunt-resistor-micro-ohms = <1500>; +};