Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3638119ybh; Mon, 5 Aug 2019 22:46:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyo67OGWiHWUbcPlXP0XTUY/qG7ShLxUyLYNgnwWvrRSVRYiEobS4YYGUnO34JtDMjhm0AH X-Received: by 2002:a17:902:bcc4:: with SMTP id o4mr1428036pls.90.1565070414385; Mon, 05 Aug 2019 22:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565070414; cv=none; d=google.com; s=arc-20160816; b=jvKqL2s79tVtKKjv8/sHQxbEgzvg99Kk5y5BTaNHIUv+FKRKCx4AgmfWdyhq70CdFI qDFHfbGBFjXn0io5Tyu2ssxSBHZPIyuXs6t/q1CAB15jU/Fo9SDI77axfsxh2Y63jNJE KwNLpj8I9Ng8HqW2Xqk2Na8E+8sBwQHISDi2uCI/5TFuylkjkpOCf8wqwT7uWthWM7M2 IBcaY2/kFGbJu219xh0ISl1UplmZRZIMUj9FpyCejt/NufTvpSD+7yx6SkiCqWeyXa9f JleV4vIDDVcKxN3o7yCskXA9IGXFo/lLp0AgZRcdLEg9Df7V3DFBEw4hfZGPPFKk9XPs 1EbA== 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=6Jsg8khXMoECq5r6SPduEblWMo9CxGgulwnfC91iHJo=; b=adSLiSaoUkrKZap6VGJ7KunR9ulSpZnOI9zQca0ivrAySI8RJ9612yZnt6oQEnsCh1 vSJEhOwgAr5wrjLoTMDl7X05jmNYp8JUIVE7BzRpT0bGoR9UgcwNYHCYI2dAGdX4eIVH GhZGl2VxNOdujA3SM1qOA+yBHl0KSTFMLDZj3p4hKeuKjXJPebkl98l95w/J41cHIDUJ 75wIh8wNOdubVBBRhoEeB2bDc0V6gzS4Jsp9LUCgMz8pyLyNnwIThJNbfFDawp1MdlKg mUpmcQJirpkFxPeweQ6QuVePGfAsYpdO8gh7tzfIZyoj2k4aOPwXmjpKBq2s6H/fEKBb RTCg== 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 gn5si43713451plb.170.2019.08.05.22.46.39; Mon, 05 Aug 2019 22:46:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731685AbfHFFot (ORCPT + 99 others); Tue, 6 Aug 2019 01:44:49 -0400 Received: from inva020.nxp.com ([92.121.34.13]:41494 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbfHFFot (ORCPT ); Tue, 6 Aug 2019 01:44:49 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 5D0FF1A01B4; Tue, 6 Aug 2019 07:44:46 +0200 (CEST) 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 A86651A00C1; Tue, 6 Aug 2019 07:44:41 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EE818402B5; Tue, 6 Aug 2019 13:44:35 +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, Yuantian Tang Subject: [PATCH v2] arm64: dts: ls1028a: Add Thermal Monitor Unit node Date: Tue, 6 Aug 2019 13:35:07 +0800 Message-Id: <20190806053507.37069-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.9.5 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 The Thermal Monitoring Unit (TMU) monitors and reports the temperature from 2 remote temperature measurement sites located on ls1028a chip. Add TMU dts node to enable this feature. Signed-off-by: Yuantian Tang Acked-by: Eduardo Valentin --- v2: - remove multiple sensors support .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index aef5b06a98d5..20d7e7db5dcb 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -29,6 +29,7 @@ clocks = <&clockgen 1 0>; next-level-cache = <&l2>; cpu-idle-states = <&CPU_PW20>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -39,6 +40,7 @@ clocks = <&clockgen 1 0>; next-level-cache = <&l2>; cpu-idle-states = <&CPU_PW20>; + #cooling-cells = <2>; }; l2: l2-cache { @@ -503,6 +505,89 @@ status = "disabled"; }; + tmu: tmu@1f00000 { + compatible = "fsl,qoriq-tmu"; + reg = <0x0 0x1f80000 0x0 0x10000>; + interrupts = <0 23 0x4>; + fsl,tmu-range = <0xb0000 0xa0026 0x80048 0x70061>; + fsl,tmu-calibration = <0x00000000 0x00000024 + 0x00000001 0x0000002b + 0x00000002 0x00000031 + 0x00000003 0x00000038 + 0x00000004 0x0000003f + 0x00000005 0x00000045 + 0x00000006 0x0000004c + 0x00000007 0x00000053 + 0x00000008 0x00000059 + 0x00000009 0x00000060 + 0x0000000a 0x00000066 + 0x0000000b 0x0000006d + + 0x00010000 0x0000001c + 0x00010001 0x00000024 + 0x00010002 0x0000002c + 0x00010003 0x00000035 + 0x00010004 0x0000003d + 0x00010005 0x00000045 + 0x00010006 0x0000004d + 0x00010007 0x00000045 + 0x00010008 0x0000005e + 0x00010009 0x00000066 + 0x0001000a 0x0000006e + + 0x00020000 0x00000018 + 0x00020001 0x00000022 + 0x00020002 0x0000002d + 0x00020003 0x00000038 + 0x00020004 0x00000043 + 0x00020005 0x0000004d + 0x00020006 0x00000058 + 0x00020007 0x00000063 + 0x00020008 0x0000006e + + 0x00030000 0x00000010 + 0x00030001 0x0000001c + 0x00030002 0x00000029 + 0x00030003 0x00000036 + 0x00030004 0x00000042 + 0x00030005 0x0000004f + 0x00030006 0x0000005b + 0x00030007 0x00000068>; + little-endian; + #thermal-sensor-cells = <1>; + }; + + thermal-zones { + core-cluster { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&tmu 0>; + + trips { + core_cluster_alert: core-cluster-alert { + temperature = <85000>; + hysteresis = <2000>; + type = "passive"; + }; + + core_cluster_crit: core-cluster-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&core_cluster_alert>; + cooling-device = + <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + pcie@1f0000000 { /* Integrated Endpoint Root Complex */ compatible = "pci-host-ecam-generic"; reg = <0x01 0xf0000000 0x0 0x100000>; -- 2.17.1