From patchwork Fri Jul 7 01:54:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 107182 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2831498qge; Thu, 6 Jul 2017 18:54:58 -0700 (PDT) X-Received: by 10.99.121.133 with SMTP id u127mr28637270pgc.31.1499392498708; Thu, 06 Jul 2017 18:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499392498; cv=none; d=google.com; s=arc-20160816; b=v3JAv1EMNidHVqElrKZGoHnbegrd/hdQCmWE9EVCFAIWIWSRwrbYkAMoRVMNSzR91F VHOrlQGJwI3O/LgNbq6PEyXcFAoCpyDFBdvWP2UaZbRNoDaFuX5vhLyZh0m+bJ6hsAyP 6vZwxlXq7CA9funECWRzTVAYF0tVpuTx5RZmQEqi/eyxseA0XcOCl0fcvjZoVrWW4wiW /TecO9SgUwJ7OPrkp0towNHE/7Eh9gP4lYbFhyA+Ob7NTAy5ZnGK9aKBoK9zxYuZ0SRf kKF2DDdIxnzqDTj4DqM8TeHazeJHTAqOVPC4G9vKNBOd+XNCO0kXpXRsTSxdiYi8yk0y XQTQ== 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:arc-authentication-results; bh=eYdNrsYjfdIhy8WPfRaOKqzv6eqeFio01vihOsCs4+I=; b=R9ujzto+GIYmz+xtJOKKXOAWpTxTy0B/tYHYXGFjjINf4d+xzMFxG17DalY/uVZ2T7 ziXZlEys4oPBccIrOqeOpKzYqgpvzAcHUWNw0WYPRuLzDDyLw9JQLAD8OQxLaPdAEmT9 YyCgBX81MJW8sEIBtiucSHKap8Z8Sf9CQMyP55zAUS5brZutG27FTrHkCXfhHN3EYx+D LCFiaPo3SJ9aJ+Hi7bws13G8XsR3mvelFwiU3vt0aGIcYmbA/dxIIZ16G26jC1kqwXqb NnZq9RB9pUCo2k+qt9sQmBBgyth6QMKvmC2oxsC2GMErOqKk2rCw7SsReHw6B+6D1+xL biPA== 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 h8si1284591plk.406.2017.07.06.18.54.58; Thu, 06 Jul 2017 18:54:58 -0700 (PDT) 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 S1753313AbdGGByw (ORCPT + 25 others); Thu, 6 Jul 2017 21:54:52 -0400 Received: from mx.socionext.com ([202.248.49.38]:37170 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbdGGByu (ORCPT ); Thu, 6 Jul 2017 21:54:50 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 07 Jul 2017 10:54:49 +0900 Received: from mail.mfilter.local (unknown [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 968E76007B; Fri, 7 Jul 2017 10:54:49 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Fri, 7 Jul 2017 10:54:49 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 400D21A0E7B; Fri, 7 Jul 2017 10:54:49 +0900 (JST) From: Kunihiko Hayashi To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, yamada.masahiro@socionext.com, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, Kunihiko Hayashi Subject: [PATCH v4 1/2] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor Date: Fri, 7 Jul 2017 10:54:34 +0900 Message-Id: <1499392475-17304-2-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499392475-17304-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1499392475-17304-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding documentation for thermal monitor implemented on Socionext UniPhier SoCs. Signed-off-by: Kunihiko Hayashi Acked-by: Rob Herring --- .../bindings/thermal/uniphier-thermal.txt | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/uniphier-thermal.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/thermal/uniphier-thermal.txt b/Documentation/devicetree/bindings/thermal/uniphier-thermal.txt new file mode 100644 index 0000000..686c0b4 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/uniphier-thermal.txt @@ -0,0 +1,64 @@ +* UniPhier Thermal bindings + +This describes the devicetree bindings for thermal monitor supported by +PVT(Process, Voltage and Temperature) monitoring unit implemented on Socionext +UniPhier SoCs. + +Required properties: +- compatible : + - "socionext,uniphier-pxs2-thermal" : For UniPhier PXs2 SoC + - "socionext,uniphier-ld20-thermal" : For UniPhier LD20 SoC +- interrupts : IRQ for the temperature alarm +- #thermal-sensor-cells : Should be 0. See ./thermal.txt for details. + +Optional properties: +- socionext,tmod-calibration: A pair of calibrated values referred from PVT, + in case that the values aren't set on SoC, + like a reference board. + +Example: + + sysctrl@61840000 { + compatible = "socionext,uniphier-ld20-sysctrl", + "simple-mfd", "syscon"; + reg = <0x61840000 0x10000>; + ... + pvtctl: pvtctl { + compatible = "socionext,uniphier-ld20-thermal"; + interrupts = <0 3 1>; + #thermal-sensor-cells = <0>; + }; + ... + }; + + thermal-zones { + cpu_thermal { + polling-delay-passive = <250>; /* 250ms */ + polling-delay = <1000>; /* 1000ms */ + thermal-sensors = <&pvtctl>; + + trips { + cpu_crit: cpu_crit { + temperature = <110000>; /* 110C */ + hysteresis = <2000>; + type = "critical"; + }; + cpu_alert: cpu_alert { + temperature = <100000>; /* 100C */ + hysteresis = <2000>; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&cpu_alert>; + cooling-device = <&cpu0 (-1) (-1)>; + }; + map1 { + trip = <&cpu_alert>; + cooling-device = <&cpu2 (-1) (-1)>; + }; + }; + }; + };