Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2133525imb; Sun, 3 Mar 2019 19:28:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IZBhrk0eUvsU872hOAzcY6KhAgfJPsURcY/LlLyQAa5QP/4lc2VhWgPUxqEHC+KMpoe/4w3 X-Received: by 2002:a62:ee0e:: with SMTP id e14mr17964249pfi.201.1551670103256; Sun, 03 Mar 2019 19:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551670103; cv=none; d=google.com; s=arc-20160816; b=VLr9fYhvkRPLiCMx097CRMFOj2YaDKRme91z2Sqte8+NcwFfuFqqLbchi5Sz1YUqXt cFqtMkEMW2H2vXTBY60Bkeyd0lUL1mC08Wtpwfw+Zfu3lGHFfaed9oLcQU+qLJcdA8fw xhjPreJSGQPLVCkCBQL9j1+FRXFuaCnYf6S2FnQ/tICruSfptMB/j7qI3d+Io2ncxg6u L/U45RxTf5dniMswLjr/pJJXd2OJLeCjaNi/L8W3J51KooZDLgK5WXv2YmwbFqfeQQet iIar/YMNaaKqfTcqsWIGWxmYarOtq5eXJExRnLo7GhAf1N9VjI6T4H1cqC/K5SWlzwBp j/ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=d2Im2Fjw6qTenVRxvDbLLky1O1lAfEkQ1GD2HphwMvg=; b=Majsb/cGEOKWIS6p6K2v/zfNbwc236al5vwu5r3Miu3KiAEB7MsT6dgQ3wZejmHqnt +ywAS1lm52QJae2ONNoCW+bcOeZmf/VHorLeIPoLr7jPev/sVTNJtMYQn3oIp0BkZ+jW /tAiboFLtKFh3ZWUus9q+2tOA7mC1AWirJNDfI4MUfq85sKJHGbb2HF0Bo9C4lrx7q0U hg67ZCpwQpqR7P+GWSjYHr19fUtGiE7oGkUe3/nSSz8vB/+IN3Jp76u+w5Nks/4b6d3x HR+7AYjfYctGR6Xb8ugeCqfkHJ2DkRvcmcfBHkOg1FrmX56E8lxwlPvF9zulzK4n4n4e cwfg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si4325085pll.175.2019.03.03.19.28.07; Sun, 03 Mar 2019 19:28:23 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbfCDD1r (ORCPT + 99 others); Sun, 3 Mar 2019 22:27:47 -0500 Received: from inva020.nxp.com ([92.121.34.13]:51544 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbfCDD1r (ORCPT ); Sun, 3 Mar 2019 22:27:47 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3D60D1A01DD; Mon, 4 Mar 2019 04:27:45 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id B84391A0014; Mon, 4 Mar 2019 04:27:39 +0100 (CET) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id ADB77402DE; Mon, 4 Mar 2019 11:27:32 +0800 (SGT) From: Yuantian Tang To: shawnguo@kernel.org Cc: leoyang.li@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, Yuantian Tang Subject: [PATCH v2] arm64: dts: ls1088a: add one more thermal zone node Date: Mon, 4 Mar 2019 11:21:11 +0800 Message-Id: <20190304032111.21770-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.14.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang --- v2: - Add more information about sensors to description PS: In order to keep consistency to the first thermal-zone node, there will be "WARNING: line over 80 characters" warnings. arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 43 +++++++++++++++++++++-- 1 files changed, 39 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index 661137f..9f52bc9 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -129,19 +129,19 @@ }; thermal-zones { - cpu_thermal: cpu-thermal { + ccu { polling-delay-passive = <1000>; polling-delay = <5000>; thermal-sensors = <&tmu 0>; trips { - cpu_alert: cpu-alert { + ccu_alert: ccu-alert { temperature = <85000>; hysteresis = <2000>; type = "passive"; }; - cpu_crit: cpu-crit { + ccu_crit: ccu-crit { temperature = <95000>; hysteresis = <2000>; type = "critical"; @@ -150,7 +150,42 @@ cooling-maps { map0 { - trip = <&cpu_alert>; + trip = <&ccu_alert>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + plt { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 1>; + + trips { + plt_alert: plt-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + plt_crit: plt-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&plt_alert>; cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, -- 1.7.1