From patchwork Mon Feb 15 23:25:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Baker X-Patchwork-Id: 8319881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3B16AC02AA for ; Mon, 15 Feb 2016 23:36:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6120F20390 for ; Mon, 15 Feb 2016 23:36:26 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7831120384 for ; Mon, 15 Feb 2016 23:36:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVSXf-0001iY-E5; Mon, 15 Feb 2016 23:26:55 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVSX5-0001Wk-Vb for linux-arm-kernel@bombadil.infradead.org; Mon, 15 Feb 2016 23:26:20 +0000 Received: from avasout06.plus.net ([212.159.14.18]) by casper.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1aVSX3-0001pX-N9 for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2016 23:26:18 +0000 Received: from debian.baker-net.org.uk ([212.159.113.184]) by avasout06 with smtp id JnRQ1s0073ymAd801nRR4c; Mon, 15 Feb 2016 23:25:28 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Rr04V3SK c=1 sm=1 tr=0 a=fkd5KTHJFGKPA0tsLFcInQ==:117 a=fkd5KTHJFGKPA0tsLFcInQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=jFJIQSaiL_oA:10 a=gJibsqi4AAAA:8 a=j_zPfX1OJUTp1oJmTkwA:9 a=Yqk7Lwv6jXKXJXa7:21 a=g3MFPwrIYnz-lFOP:21 Received: from wendolene.baker-net.org.uk (wendolene.baker-net.org.uk [192.168.0.6]) by debian.baker-net.org.uk (Postfix) with ESMTP id 61DDDCD41A8; Mon, 15 Feb 2016 23:25:24 +0000 (GMT) Received: by wendolene.baker-net.org.uk (Postfix, from userid 1000) id 084AA14F2033; Mon, 15 Feb 2016 23:25:17 +0000 (GMT) From: Adam Baker To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Jean Delvare , Guenter Roeck Subject: [PATCH v2 1/3] hwmon: Define binding for the nsa320-hwmon driver Date: Mon, 15 Feb 2016 23:25:02 +0000 Message-Id: <1455578705-10531-2-git-send-email-linux@baker-net.org.uk> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455578705-10531-1-git-send-email-linux@baker-net.org.uk> References: <1455578705-10531-1-git-send-email-linux@baker-net.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160215_232617_805642_F914D13A X-CRM114-Status: GOOD ( 17.33 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Ian Campbell , Adam Baker , lm-sensors@lm-sensors.org, Rob Herring , carl.wolfgang@googlemail.com, Kumar Gala , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RDNS_NONE,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define a binding for the hardware monitoring chip present in the Zyxel NSA-320 and some of the other Zyxel NAS devices. Signed-off-by: Adam Baker --- .../devicetree/bindings/hwmon/nsa320-mcu.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt diff --git a/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt b/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt new file mode 100644 index 0000000..7b346d4 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt @@ -0,0 +1,21 @@ +Bindings for the fan / temperature monitor microcontroller used on +the Zyxel NSA 320 and several subsequent models. + +Required properties: +- compatible : "zyxel,nsa320-mcu" +- data-gpios : The GPIO pin connected to the data line on the MCU +- clk-gpios : The GPIO pin connected to the clock line on the MCU +- act-gpios : The GPIO pin connected to the active line on the MCU + +Example: + + hwmon { + compatible = "zyxel,nsa320-mcu"; + pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>; + pinctrl-names = "default"; + + data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; +