From patchwork Mon May 29 09:15:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 100644 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp246650qge; Mon, 29 May 2017 02:17:23 -0700 (PDT) X-Received: by 10.84.231.139 with SMTP id g11mr60659257plk.71.1496049443247; Mon, 29 May 2017 02:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496049443; cv=none; d=google.com; s=arc-20160816; b=Oc9H5sn3LZ7dAkrIq0Taq+R/M3CktjCghnlxmTmDxo0p3nUPQN7butRDsHBl1sT8RT dnN/rNC0HMzLcRku/17rZJuJ1M3HCHcVuMZiCFyaNgIX8VVZiFxYM2+80KkAM3RU55Bj PANCPVy1um0nJM7TAVKwbccvDp5U+YhLwAps5DEtcpV7X/Pu3TwqM5cK79ry8/K/JSEe Z1NNLJqJrT6XT2wKSUPa5KrSl5OsSy+A9T1E0q/5GbFerSJ3AB8RamR9SnbdBok2u1LF 4jxF2solL2Jtgu0u+aws8sdmzZ8I/PaCWEBc8pwZ7dZGksiApYnHG+aeD9A228SX2w32 /B0Q== 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=fXMAm4YxZqXJcQFLoAvPz1I4A7nN+ftdZfgnbtvU2oo=; b=I7mNAtJIR2WzCPyn1WPC8ePEefP6p+KM0sgsxpcKoymBcZpRVJYbFBXxyvY8hMEkjd mympEHvOhpOKa0cYvkh7KaD6v/G6oYoM3WOkCITZfQM2VTNUdgUg5ch+eeQqhocNi7FL xXqfXtGS6jC1HBMDcBF1lQa4WPhiH4xQQJ2EpB3an06RSA0uAC8OiC/zh5rUI+khhIYz ZLwbjs/4wYOLCVQjVLvsJ3+9cujb8M6ulMewPHZFTs3yFqGAvKCqVNz5qh+t8THMeN+7 6GHKUeucdweQq6619TSmMz+pv5lPcud24akweOMnGaDF+Nmkgt43v4I2rQQxiYc4HTJj djjA== 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.22; Mon, 29 May 2017 02:17:23 -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 S1751410AbdE2JRF (ORCPT + 25 others); Mon, 29 May 2017 05:17:05 -0400 Received: from mx.socionext.com ([202.248.49.38]:16069 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751237AbdE2JRC (ORCPT ); Mon, 29 May 2017 05:17:02 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 29 May 2017 18:16:59 +0900 Received: from mail.mfilter.local (unknown [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id C2ECD180B47; 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 3F4161A0E7B; Mon, 29 May 2017 18:16:59 +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 3/4] ARM: dts: uniphier: add nodes of thermal monitor and thermal zone for PXs2 Date: Mon, 29 May 2017 18:15:44 +0900 Message-Id: <1496049345-14649-4-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 nodes of thermal monitor and thermal zone for UniPhier PXs2 SoC. The thermal monitor is included in sysctrl. Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pxs2-gentil.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/uniphier-pxs2-vodka.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/uniphier-pxs2.dtsi | 6 ++++++ 3 files changed, 48 insertions(+) -- 2.7.4 diff --git a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts index 373818a..89ccb88 100644 --- a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts +++ b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts @@ -70,6 +70,27 @@ i2c5 = &i2c5; i2c6 = &i2c6; }; + + 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"; + }; + }; + }; + }; }; &serial2 { diff --git a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts index 51a3eac..0201584 100644 --- a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts +++ b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts @@ -68,6 +68,27 @@ i2c5 = &i2c5; i2c6 = &i2c6; }; + + 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"; + }; + }; + }; + }; }; &serial2 { diff --git a/arch/arm/boot/dts/uniphier-pxs2.dtsi b/arch/arm/boot/dts/uniphier-pxs2.dtsi index e9e031d..072e3b4 100644 --- a/arch/arm/boot/dts/uniphier-pxs2.dtsi +++ b/arch/arm/boot/dts/uniphier-pxs2.dtsi @@ -387,6 +387,12 @@ compatible = "socionext,uniphier-pxs2-reset"; #reset-cells = <1>; }; + + pvtctl: pvtctl { + compatible = "socionext,uniphier-pxs2-thermal"; + interrupts = <0 3 1>; + #thermal-sensor-cells = <0>; + }; }; }; };