From patchwork Fri Apr 7 22:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 9670519 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 19AD0602B3 for ; Fri, 7 Apr 2017 22:01:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0977D28663 for ; Fri, 7 Apr 2017 22:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F25622866C; Fri, 7 Apr 2017 22:01:12 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 A56BF28663 for ; Fri, 7 Apr 2017 22:01:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756613AbdDGWBM (ORCPT ); Fri, 7 Apr 2017 18:01:12 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:35601 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070AbdDGWAj (ORCPT ); Fri, 7 Apr 2017 18:00:39 -0400 Received: by mail-pg0-f41.google.com with SMTP id 81so77759499pgh.2 for ; Fri, 07 Apr 2017 15:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ettus-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5BZlUxT6DpKDWQBBhlBLEzh5IG95/oDKZAlxK3LBSig=; b=GSUAbJsmTJM8g7jMCky5VFzgH3901kr1p5ZKlzJuLXYiq1Xy09NdIRbEOiDaGi+KeZ Qj9bwJj2S0WiQ271yWRFSrmNqm2qayYSkQQsKQTij8z5xEx/bSEBvR1+DTu1jnYSqAeD q8ityHX//pT6gCcLkuI76GcsgF0vsB+YvqJauWKnsm5csV/PMG8qrB/RvlT67dHFei+1 rxdVLtk3WhsSwVEJqtx+Yn8SleaFJrI3mK0l+ujLGRpG6rCH2bYhqAxJURCH3XWbpiC8 JEJCJ5pg4NjcVswmXVr0U3i4mtwg3vGe/67VmFO3/JQ7PCxDukF4eombzBlkjytaMsn6 wcLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5BZlUxT6DpKDWQBBhlBLEzh5IG95/oDKZAlxK3LBSig=; b=VXiNhbVKhvSxO1hBAaRv0SmMxYDLzfwglrAnPn/EdH1KLHdXJGXV5ebuHarf/9E1tv 3o4rkFCcIy3eGkAw4GbPuAWOfVuwevEUs+nNDPhd0KDhj3t/UF3SQGvd1YxuZj+SkU4p jHeMEi2EVVtGaozK/ykL2aZJWrJdk1LtaWdq0qnvtgN/t9lt7hLpfuVr43ZDmSviixFO ygjePCRncP5kgxi3nGPu3xPUZrwhL4jRPNuU5SXiIL5ehjTUPv1pv6/7O37jFFZo8gBQ 13rCZB5+ZNCZ6J0p5WdVgGXQalV9Wfh6xEygEv0BvRSyxxYmxQEuAiYydSrHYrHsPeuy Uw0g== X-Gm-Message-State: AFeK/H1CfLWUyAZsOaUqJU/opbqbDdRw9Ev/wJZh+3YdeBl+idgT+xvGmwVM6vvycmDUpjZW X-Received: by 10.84.163.75 with SMTP id n11mr51527349plg.186.1491602438408; Fri, 07 Apr 2017 15:00:38 -0700 (PDT) Received: from tyrael.amer.corp.natinst.com (207-114-172-147.static.twtelecom.net. [207.114.172.147]) by smtp.gmail.com with ESMTPSA id i185sm6285569pge.48.2017.04.07.15.00.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 15:00:37 -0700 (PDT) From: Moritz Fischer To: linux-hwmon@vger.kernel.org Cc: moritz.fischer@ettus.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, lee.jones@linaro.org, olof@lixom.net, linux@roeck-us.net, jdelvare@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, Moritz Fischer Subject: [PATCH 2/3] dt-bindings: hwmon: Add bindings for Google Chromium EC HWMON Date: Fri, 7 Apr 2017 15:00:09 -0700 Message-Id: <1491602410-31518-2-git-send-email-moritz.fischer@ettus.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491602410-31518-1-git-send-email-moritz.fischer@ettus.com> References: <1491602410-31518-1-git-send-email-moritz.fischer@ettus.com> 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 From: Moritz Fischer Add bindings for the Chromium EC HWMON. The Chromium EC HWMON allows monitoring of temperature sensors and fans attached to the EC. Signed-off-by: Moritz Fischer --- .../devicetree/bindings/hwmon/cros-ec-hwmon.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/cros-ec-hwmon.txt diff --git a/Documentation/devicetree/bindings/hwmon/cros-ec-hwmon.txt b/Documentation/devicetree/bindings/hwmon/cros-ec-hwmon.txt new file mode 100644 index 0000000..4c94869 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/cros-ec-hwmon.txt @@ -0,0 +1,25 @@ +Chromium Embedded Controller EC temperature and fan control +----------------------------------------------------------- + +Google's Chromium EC HWMON is a hwmon implemented byimplemented by the Chromium EC +firmware attached to the Embedded Controller (EC) and controlled via a host-command +interface. + +An EC HWMON node should be only found as a sub-node of the EC node (see +Documentation/devicetree/bindings/mfd/cros-ec.txt). + +Required properties: +- compatible: Must contain "google,cros-ec-hwmon" + +Example: + embedded-controller@1e { + reg = <0x1e>; + compatible = "google,cros-ec-i2c"; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&gpio0>; + + hwmon { + compatible = "google,cros-ec-hwmon"; + }; +}; +