From patchwork Mon May 29 09:15:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 100647 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp246661qge; Mon, 29 May 2017 02:17:24 -0700 (PDT) X-Received: by 10.84.143.36 with SMTP id 33mr73229778ply.45.1496049444489; Mon, 29 May 2017 02:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496049444; cv=none; d=google.com; s=arc-20160816; b=hOgC95xCUm/svKCwh5S0K0eiLOc5QEEbxMCGO5jAY4nGl1szs0kEGsEL5hnzU1I+ZW sd+FxtU2/FgxVtgTdu0Pc23Gav6CgJPtf1Td45ngUb0SFdrNIXQkVR/1kyLJdd0dLajs afsyU6nAfoD7us/SOV50I/agD9SLewMtf2oxrWWRwGeeZIOgA579n7EA2w/ptPSJ3WwZ IT4T8iUAbOcSnQMJaFn9xiZKcNjunZXOS2nvwFuRnF8HnMEkkCbXP/IZO0UZg2lw8uGx jiOZ+ih1uG/+6l1K5XS2DUAd2AJWdYh8rm6fPD9fSpUwoDakVSJFVYGu/LQVhGu4KhrK 88aw== 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=5/jZ8Y/GebsKN7Bwsm7TX+ADtk8ROqVp6fpDMv0vj9M=; b=JKIEiL68/sTDFqhbOp9Jguu/ZA7ep1DsSgwhzUqMRsRKJIGRc0UqH5v5W0QcHy9rvE 7yLHkcUFlyfQyZ/sdB7ii6sdIvXR0wIGH1fUl0g4Fxeni0L0rm7/5lj/f/kRBc8/8b1J J7r8FIQVLYY4tz4z/5UXpEZw6DcRuSbgxLhK4CPeBRESSZSuQMKmQzkMRvXIiiIKUQRF MRpusbsfsJLlMmj7icJgx3rkEw0Nu2quasc7LQVp4XzfTU2mG1Q6VeJvgSTUw9tUcuKD wrJ4LqcjLQ31fkoqegAlfu841GTTgU0FILub7KZ9K+XJ1+gIXIxQA0NzZP2NKzX3qYL0 fNNQ== 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 o33si40454254pld.317.2017.05.29.02.17.24; Mon, 29 May 2017 02:17:24 -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 S1751436AbdE2JRP (ORCPT + 25 others); Mon, 29 May 2017 05:17:15 -0400 Received: from mx.socionext.com ([202.248.49.38]:16071 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbdE2JRN (ORCPT ); Mon, 29 May 2017 05:17:13 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 29 May 2017 18:16:59 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id C0E6861166; Mon, 29 May 2017 18:16:59 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Mon, 29 May 2017 18:16:59 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id E85501A1208; Mon, 29 May 2017 18:16:58 +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, devicetree@vger.kernel.org, yamada.masahiro@socionext.com, masami.hiramatsu@linaro.org, jaswinder.singh@linaro.org, Kunihiko Hayashi Subject: [PATCH 2/4] dt-bindings: thermal: add binding documentation for UniPhier thermal monitor Date: Mon, 29 May 2017 18:15:43 +0900 Message-Id: <1496049345-14649-3-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496049345-14649-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1496049345-14649-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 --- .../bindings/thermal/uniphier-thermal.txt | 54 ++++++++++++++++++++++ 1 file changed, 54 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..72834e1 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/uniphier-thermal.txt @@ -0,0 +1,54 @@ +* 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 +- reg : Offset address of the thermal registers from sysctrl +- 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 = <95000>; /* 95C */ + hysteresis = <2000>; + type = "critical"; + }; + cpu_alert: cpu_alert { + temperature = <85000>; /* 85C */ + hysteresis = <2000>; + type = "passive"; + }; + }; + }; + };