From patchwork Wed Aug 24 08:13:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Looijmans X-Patchwork-Id: 9297067 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 BFD7C607EE for ; Wed, 24 Aug 2016 08:17:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B48FD28E6E for ; Wed, 24 Aug 2016 08:17:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A7DDF28E70; Wed, 24 Aug 2016 08:17:09 +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 A60B428E6E for ; Wed, 24 Aug 2016 08:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbcHXIQ3 (ORCPT ); Wed, 24 Aug 2016 04:16:29 -0400 Received: from atl4mhfb03.myregisteredsite.com ([209.17.115.119]:50154 "EHLO atl4mhfb03.myregisteredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753962AbcHXIQQ (ORCPT ); Wed, 24 Aug 2016 04:16:16 -0400 Received: from atl4mhob19.myregisteredsite.com (atl4mhob19.myregisteredsite.com [209.17.115.112]) by atl4mhfb03.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id u7O8EbsI017451 for ; Wed, 24 Aug 2016 04:14:38 -0400 Received: from mailpod.hostingplatform.com ([10.30.71.210]) by atl4mhob19.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id u7O8DY7q048340 for ; Wed, 24 Aug 2016 04:13:34 -0400 Received: (qmail 10759 invoked by uid 0); 24 Aug 2016 08:13:35 -0000 X-TCPREMOTEIP: 37.74.225.130 X-Authenticated-UID: mike@milosoftware.com Received: from unknown (HELO mikebuntu.TOPIC.LOCAL) (mike@milosoftware.com@37.74.225.130) by 0 with ESMTPA; 24 Aug 2016 08:13:34 -0000 From: Mike Looijmans To: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org Cc: linux@roeck-us.net, linux-kernel@vger.kernel.org, Mike Looijmans Subject: [PATCH 2/2] hwmon: (max6650) Add initial rpm target devicetree documentation Date: Wed, 24 Aug 2016 10:13:27 +0200 Message-Id: <1472026407-3448-2-git-send-email-mike.looijmans@topic.nl> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472026407-3448-1-git-send-email-mike.looijmans@topic.nl> References: <1472026407-3448-1-git-send-email-mike.looijmans@topic.nl> In-Reply-To: <5f14ba10-60dd-0e0a-dcd0-f8bbbed33510@roeck-us.net> 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 Add devicetree property for early initialization of the fan controller to prevent overheating, for example when resetting the board while the fan was completely turned off. Signed-off-by: Mike Looijmans Acked-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/max6650.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/max6650.txt b/Documentation/devicetree/bindings/hwmon/max6650.txt index d6c10e3..f6bd87d 100644 --- a/Documentation/devicetree/bindings/hwmon/max6650.txt +++ b/Documentation/devicetree/bindings/hwmon/max6650.txt @@ -13,6 +13,10 @@ Optional properties, default is to retain the chip's current setting: - maxim,fan-prescale : Pre-scaling value, as per datasheet [1]. Lower values allow more fine-grained control of slower fans. Valid: 1, 2, 4, 8, 16. +- maxim,fan-target-rpm: Initial requested fan rotation speed. If specified, the + driver selects closed-loop mode and the requested speed. + This ensures the fan is already running before userspace + takes over. Example: fan-max6650: max6650@1b { @@ -20,4 +24,5 @@ Example: compatible = "maxim,max6650"; maxim,fan-microvolt = <12000000>; maxim,fan-prescale = <4>; + maxim,fan-target-rpm = <1200>; };