Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1539718img; Wed, 27 Feb 2019 00:48:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IafiyDR+4182hg3379pNrhqjnjP58i71M4O80abMqH+TPHk22Nn8Ula2EJKnFq/w5jaM2Mk X-Received: by 2002:a65:5003:: with SMTP id f3mr1914700pgo.39.1551257281936; Wed, 27 Feb 2019 00:48:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551257281; cv=none; d=google.com; s=arc-20160816; b=YJyng7ZyZhU3vGbNZ9UsVOREZEB2ZBCJdFX9D5m0PjGjroVYNJ0rJf4p91Y/TLkF0n 5VhUcyR1+YSIPAWi581rHrfgxMAOr4WlFoO9LX250aTaWfmJKd0B1MHZdyTdpZ0A9PNm +YN6nWTf9+24O+nLB+56ueH4AK54N8AuB74EoiVUjhsCwtELkJER+vnCKClkOnlsk4TO X55ZUa9L9wYpWzftqF+2tfxSRRvzbd+BrWS9BSlcCTjbtnY8Om7QvCzhXnTSh4kpQT1i 67gIyH15gjairFpWaprj52loLwh2ydVFC6EOdNLD46NjvTDc5MDYQ1SqIpBX5uFeEo9e I0wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=vetKU/AqsyjUiXtFYjcYONIhoQOgqBXQXRVGtwqmp8w=; b=yDgC5Ia3quPpuwlyAhTWIC+LI2ZsFKiiIknLsKAUucYnpHZPtFu9/9x/5Jxhej6PT0 WXGr4OPFBlAkRg5hByP46RvG3yJi4ej3JMVSvL1jqfQj+Fsz25I3fZDaO98wRXKOn/M5 kt2gPYmp/jPDHeO8hfvdE/QcwTc6OQwbxSIgybJQYihoRXjLKtTE3NqowhvDGnAUJ4g2 nA+depF3rsfIMNm8FsX4Pl8jLQW9/0GUbc/dIuMzg7vd8vL9yMssoxxVtKgkEx8BNa5K miC9vzeK/alUbNl0EkFWLPPtqyV0UXnXA/pKTZWuAZZH+Gwz0wWs09fkJrtUg4NR4wJP B6Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=cuDIQH6n; 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=pass (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 q20si14550345plr.136.2019.02.27.00.47.47; Wed, 27 Feb 2019 00:48:01 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=cuDIQH6n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729488AbfB0Iq6 (ORCPT + 99 others); Wed, 27 Feb 2019 03:46:58 -0500 Received: from mail-eopbgr30057.outbound.protection.outlook.com ([40.107.3.57]:42641 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726724AbfB0Iq5 (ORCPT ); Wed, 27 Feb 2019 03:46:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vetKU/AqsyjUiXtFYjcYONIhoQOgqBXQXRVGtwqmp8w=; b=cuDIQH6nJ08x2LD1YhyR9IAzK+nrmkFw/o1OlUEzDGwmo8wJbo/pjk9OsVZGzLWi492pGc3c1nMq65UXHfRrp1RsdmOYvffDtBzr0dO3EhTPMQbp6arHHXu6gNjegCGuR6wxE47WLpbbNXRhgaUZH9Xc1XVOpQRfIFFsNF0nHNI= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3674.eurprd04.prod.outlook.com (52.134.66.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.16; Wed, 27 Feb 2019 08:46:50 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::1cb4:3e1c:fc85:7ed7%2]) with mapi id 15.20.1643.019; Wed, 27 Feb 2019 08:46:50 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Aisheng Dong , "ulf.hansson@linaro.org" , "sboyd@kernel.org" , Daniel Baluta , Andy Gross , "horms+renesas@verge.net.au" , "heiko@sntech.de" , "arnd@arndb.de" , "maxime.ripard@bootlin.com" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "olof@lixom.net" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V10 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V10 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUznj7JB4ZUup+qUCXdi8fZygXvA== Date: Wed, 27 Feb 2019 08:46:50 +0000 Message-ID: <1551256894-21954-4-git-send-email-Anson.Huang@nxp.com> References: <1551256894-21954-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1551256894-21954-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR0401CA0021.apcprd04.prod.outlook.com (2603:1096:202:2::31) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e4d82740-b0c5-4a9c-90a4-08d69c901d6f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3674; x-ms-traffictypediagnostic: DB3PR0402MB3674: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3674;23:ZEUZZfV8iCjemWaZoyF6PnFej3/eTUQfDJIGL?= =?iso-8859-1?Q?0ZRlVmZgygIP/Qta/2iOxYiiZRhveN43O5L5P1MAiGr27NsIqdbI+5EYbe?= =?iso-8859-1?Q?taufx/sBELJGqFWVJSd9JX5ySi03dpaYAFY2on9iNiSr/CWz/fv8bQ+yqZ?= =?iso-8859-1?Q?fAglagLvlDVmbRy/sGLRo3S4UkwctcFjdFFeds7Fna85OUqyzcIYhxvlrt?= =?iso-8859-1?Q?gl46qfJnf70gVO/F2xJTbI3XQnaCBfJxATs+lgdq9GlpxGXlkf788owpc3?= =?iso-8859-1?Q?dH2+mnqG19wVpio3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7x1?= =?iso-8859-1?Q?A6zSn64eVUd4LnjTjpc0l3+GdXnQRGah3JP6mu0oiTQXeWL1cP+fgfPFTa?= =?iso-8859-1?Q?celC24loy8HeUPWO9Kmv9Co+dohfz5A0MqBPrgNedWXCfIqbcz3//sV5u+?= =?iso-8859-1?Q?WNtnRvBHoM1PaDVhka2PgNqxc?= x-microsoft-antispam-prvs: x-forefront-prvs: 0961DF5286 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(396003)(346002)(376002)(189003)(199004)(25786009)(102836004)(2906002)(81166006)(8676002)(4326008)(3846002)(6116002)(478600001)(81156014)(14454004)(8936002)(68736007)(6506007)(6436002)(186003)(2501003)(386003)(71200400001)(71190400001)(26005)(5660300002)(6512007)(6486002)(36756003)(86362001)(52116002)(316002)(7736002)(110136005)(66066001)(2201001)(305945005)(2616005)(14444005)(97736004)(7416002)(11346002)(105586002)(99286004)(50226002)(106356001)(486006)(476003)(256004)(76176011)(446003)(53936002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3674;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BmEqXDc0+OPmkOhZQJcr7GTeVc2pmwWBYSt4Zql/H9kBxUIxKX5ysfC5V8xKPD9PHKnHm7mm8I36aZ/SHj3f6WyaKo4vAIWWcDkNLjHwcQwebsofzl/Qyhf//rRJ0ycKIsbyAFwVaCIbvkHfULIYLQjR/9IiNlAQkldEPOF3JyBCK/5XSyMCg1yZRy5q0fgjF5wm9zuoLeW2TFOOArCpXnZLrGaL1nhIRV8acV/eS7vYbsZDTN/xmNnaYkTlZ2R6iBo2cff6EgA8bwnkmzrNqNS+MJj3t2hcXGNg86RczdTr4jOP2uZtNMJJa3pqQGfIv66cLygs36VaUY76NH1WYYfhLgBODd4vZ5n+qV0PPQBuGr8H2ScxUBTlaaDSKvcsKg7wwtTRAW2+sDUjCJPxrdNDePAmLTGhobffRTbZt7M= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4d82740-b0c5-4a9c-90a4-08d69c901d6f X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 08:46:41.6727 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3674 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V9: - change #thermal-sensor-cells value in to 1, since there are other thermal sensors inside system controller, it is just because there are s= till some issue, so system controller does NOT expose them for now, they coul= d be exposed later, so it should be 1 from HW perspective. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 34 ++++++++++++++++++++++++++= ++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index 4c3dd95..f532cba 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -10,6 +10,7 @@ #include #include #include +#include =20 / { interrupt-parent =3D <&gic>; @@ -116,6 +117,12 @@ rtc: rtc { compatible =3D "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible =3D "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells =3D <1>; + imx,sensor-resource-id =3D ; + }; }; =20 timer { @@ -443,4 +450,31 @@ power-domains =3D <&pd IMX_SC_R_GPIO_7>; }; }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive =3D <250>; + polling-delay =3D <2000>; + thermal-sensors =3D <&tsens 0>; + trips { + cpu_alert0: trip0 { + temperature =3D <107000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + cpu_crit0: trip1 { + temperature =3D <127000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + cooling-maps { + map0 { + trip =3D <&cpu_alert0>; + cooling-device =3D + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; }; --=20 2.7.4