Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4008099imc; Sun, 24 Feb 2019 19:08:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IZy8YkX/3U5PIn0vO8EfPgQGixg7Hg1RG6/YmGfjzhnMDul5PLm1WBO0y7Jd2YmSyIKjlgp X-Received: by 2002:a63:61c9:: with SMTP id v192mr17074512pgb.120.1551064080491; Sun, 24 Feb 2019 19:08:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551064080; cv=none; d=google.com; s=arc-20160816; b=ibIuCcuE0TLVTXqN56ArMyqoo/VJQplS0Y68ldzJG5uUdAaWArwjIOSMM1KHTf7sbB Z2oMEpUpUzy/iIZIXp5u3kQ/egyGe2A4Qjn2Q0TvyYxPl5ILPPdFwisBMV/kCBILYUn5 xY2mhDS2QhCXgm7jdGeg2PNdqla0EqtqRai8AgzXUT1lQVDI/+9/lZ9RdSTJ2fBjXREI obFT+HBdGK00yAOLgdplVScepkHHQEvwRnvmsXoBRJrrqFI66Lmn3KU3yT4LZSOEsPwK l79nSGZH76WvtUGzSCBxLfbIVmXvmvKPtm1jBco/LEMBd4rxUQZJy9djI6npcO7G9tDQ DCDA== 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=n8a/YxlUNf78qqEJj/rnwocR2dLTNtCEgBvAP0ddHxw=; b=hmGnBnDMSELzWmentFwM3amSTXkteP1J8DShrr51VFqYCMR88YYkxTuiH1Z2h/t8hj 9xn4oOj5QkRCGwVWtqAJ/qLoT215qhyl+D9O/+ZEIrufUFrPF9oIn2wuweLzxmhpZDH+ RpgssBuwY4qE2krBksCLpj7BnNZtZE6cwF9xrOOIqq83deh7kGwg+BaL6oj4P/Q3mqVY V7/w7JRloKyutMlIfG4rB8OhQDb8U0APWbQQe4dE9nMrL+wNkBrahxLCyKC5Gz3Wi3l7 8Y+CGjVo5/MLX3evrr45TRwEctBA+h17pZQaDwEtOc7awIsPczfiLHczwHUo7TF/VvMY zgoA== 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 i11si6499064plb.188.2019.02.24.19.07.32; Sun, 24 Feb 2019 19:08:00 -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 S1728277AbfBYDHC (ORCPT + 99 others); Sun, 24 Feb 2019 22:07:02 -0500 Received: from inva021.nxp.com ([92.121.34.21]:37974 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfBYDHB (ORCPT ); Sun, 24 Feb 2019 22:07:01 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2C16720012F; Mon, 25 Feb 2019 04:06:59 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 9F02D200139; Mon, 25 Feb 2019 04:06:53 +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 12974402F2; Mon, 25 Feb 2019 11:06:47 +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] arm64: dts: ls1088a: add one more thermal zone node Date: Mon, 25 Feb 2019 11:00:49 +0800 Message-Id: <20190225030049.20401-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. This patch adds the second node to dts to enable it. Signed-off-by: Yuantian Tang --- 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