From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C9F1C43381 for ; Thu, 21 Feb 2019 06:39:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F67920675 for ; Thu, 21 Feb 2019 06:39:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GnddRqwS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbfBUGjF (ORCPT ); Thu, 21 Feb 2019 01:39:05 -0500 Received: from mail-eopbgr50077.outbound.protection.outlook.com ([40.107.5.77]:14792 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725986AbfBUGjD (ORCPT ); Thu, 21 Feb 2019 01:39:03 -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=X/QPUIImObQcTA27E0/VuZ6dbxktCIr6Pzp/g16Sp9k=; b=GnddRqwSKCS9h5izFb5KcMCAks7s3UXxKu4i8OsuD4vgVDnmINTul7qk3rquEQD8n9FW6UTXb1dctEFj3wkYQC9AempvgnvTzBiPcFENSLHOehfZhppE5I566s2VYdj3jGh8Ol4nxIuuG/F3DtjbGofi3PZW6l1LN5nkrD0+5Qs= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3863.eurprd04.prod.outlook.com (52.133.29.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.18; Thu, 21 Feb 2019 06:38:57 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1%4]) with mapi id 15.20.1622.018; Thu, 21 Feb 2019 06:38:57 +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 V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUybAeSo37+zULAUSf8sC6yKNW+w== Date: Thu, 21 Feb 2019 06:38:57 +0000 Message-ID: <1550730831-14995-4-git-send-email-Anson.Huang@nxp.com> References: <1550730831-14995-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550730831-14995-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: HK0PR03CA0069.apcprd03.prod.outlook.com (2603:1096:203:52::33) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) 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: c06d5650-8a11-49f4-c64d-08d697c7413e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR0402MB3863; x-ms-traffictypediagnostic: AM6PR0402MB3863: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;AM6PR0402MB3863;23:dfRriVpXGNgblxuSkzkslAp9QD/otkBKLIM0m?= =?iso-8859-1?Q?zBLUeQZR2/2k1pmKYLQVmjCETHRjJ3GGUyO3ybJ3aX5hN35BeIffNfEwem?= =?iso-8859-1?Q?aZBQCCPjW8sylPUw6Le/5VICJvpCuEXQ6cPE2qojGbrx+vWQX6RGieGhuS?= =?iso-8859-1?Q?PKlnHrRTS7vpF9H+dZCM2RE5rY3TGzscNunlLznHEwEfXPN8mHRazhp9Vg?= =?iso-8859-1?Q?oxIpPSLjwhUe7HtyuLDvOtRigAYWJGUZN5UPX4nhMnKC4IcCwy0VKcgVsZ?= =?iso-8859-1?Q?wIj1joOjv+C1hw/bTrKXxmtDCA6YI+Wlfytili6TE7XZFUCwiLYZYv5KW9?= =?iso-8859-1?Q?Zy1W67QUUMcZX0e8O/rZBrB/d+lhHDAAXo3p7QbV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q?tuqc53f2SW2aEq6P76Pzs/vlxpVThGk/HXRsNo8FkrHqICnF/3yZS2obEc?= =?iso-8859-1?Q?v2L1QRiXQfIW8Eq0JFMQlvCWh?= x-microsoft-antispam-prvs: x-forefront-prvs: 09555FB1AD x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(376002)(346002)(396003)(199004)(189003)(478600001)(71200400001)(5660300002)(6486002)(97736004)(6512007)(2906002)(86362001)(36756003)(66066001)(2201001)(71190400001)(53936002)(4326008)(486006)(25786009)(68736007)(305945005)(14454004)(6436002)(316002)(386003)(8676002)(6116002)(3846002)(446003)(110136005)(186003)(7736002)(2616005)(76176011)(26005)(256004)(81166006)(102836004)(50226002)(7416002)(14444005)(476003)(2501003)(81156014)(8936002)(6506007)(52116002)(106356001)(99286004)(105586002)(11346002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3863;H:AM6PR0402MB3911.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: Z+aq3sGMUgSS81pm2/Zm4Ln5C0IfWSP6KkMj0PpoSLaZ7NRn577pB2xX9ffjlMCS1pLLOp2tRehomFkeVhZz48cGtqNxu1xP4d0M8qksqYQRbH/77t7k6t5kD4/UrRHGCZyau10pfqkNXIGvoML86LUlv2hoYDT9w0YZ81Yd2fp4c0OsfKigy8dxrMSjVKFo4zRTCU47dqUFsm9Qczu5HE4inTH7T83qg4iliSJZNOZf58LlPUXLP422aK7lgsC82a16k+5XoNBLUe/HVj+ghCyNRb5Ms7zTW7/y5giUiRdeMjxO0c9XrWdtWMHWr7xQ19AYXYYuO8S4HIGsFZXh493RkRJTyPbzDsoJqJglgK24pRsl7XBf9CTW4euedKn4DQQ/5otRGm/X5d/dmtgMXgWLSAz/GhTpHLzw+HwVdP0= 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: c06d5650-8a11-49f4-c64d-08d697c7413e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2019 06:38:48.5984 (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: AM6PR0402MB3863 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 V7: - move the "imx,sensor-resource-id" to scu tsens node; - correct #thermal-sensor-cells value to be 0 as there is ONLY one thermal= zone now; - add cooling map for passive mode. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 35 ++++++++++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index 4c3dd95..eccdf28 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>; @@ -34,6 +35,7 @@ reg =3D <0x0 0x0>; enable-method =3D "psci"; next-level-cache =3D <&A35_L2>; + #cooling-cells =3D <2>; }; =20 A35_1: cpu@1 { @@ -116,6 +118,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 <0>; + imx,sensor-resource-id =3D ; + }; }; =20 timer { @@ -443,4 +451,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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-eopbgr50077.outbound.protection.outlook.com ([40.107.5.77]:14792 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725986AbfBUGjD (ORCPT ); Thu, 21 Feb 2019 01:39:03 -0500 From: Anson Huang Subject: [PATCH V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support Date: Thu, 21 Feb 2019 06:38:57 +0000 Message-ID: <1550730831-14995-4-git-send-email-Anson.Huang@nxp.com> References: <1550730831-14995-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550730831-14995-1-git-send-email-Anson.Huang@nxp.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org 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 List-ID: Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V7: - move the "imx,sensor-resource-id" to scu tsens node; - correct #thermal-sensor-cells value to be 0 as there is ONLY one thermal= zone now; - add cooling map for passive mode. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 35 ++++++++++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index 4c3dd95..eccdf28 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>; @@ -34,6 +35,7 @@ reg =3D <0x0 0x0>; enable-method =3D "psci"; next-level-cache =3D <&A35_L2>; + #cooling-cells =3D <2>; }; =20 A35_1: cpu@1 { @@ -116,6 +118,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 <0>; + imx,sensor-resource-id =3D ; + }; }; =20 timer { @@ -443,4 +451,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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=BAD_ENC_HEADER,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E91AC43381 for ; Thu, 21 Feb 2019 06:39:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E28A20675 for ; Thu, 21 Feb 2019 06:39:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DZo8SvpB"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GnddRqwS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5E28A20675 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Nm0J/yDL5aSMQENZpjQeOi6OrJnUcggzCsAjT9bw2Fw=; b=DZo8SvpBATHEDV DzryKwry3gZki38d/5HYlS+1JzIbSMuFKQPjCvmvGi3IiwZ6JTul4FVv+9ojS14CBg61Pl48yDTMT ysWXPUTsZJORLFG+jUw0UySFYLExmJ3fIAeRqR00xgKrgKq29af70GC/93s50sK5va0gXJJdZkgnQ +Xvik7k3daXNm5RiEZDDhF1doIIoLPdtDB3b7Lf08QVSblv6Kpe5C9QtFT0V82qeC/69G3dpQTnWY vHTPu1t4vnXN9fjJKeetvG/ylIrFAubunVsCh6J1onV1C1M4Rd1LfY2rZSY3oVvjxE1NFxnl62NpE TQsm0Xd8djPHYGKKW+pA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwi0x-0000Bh-Et; Thu, 21 Feb 2019 06:39:23 +0000 Received: from mail-eopbgr50081.outbound.protection.outlook.com ([40.107.5.81] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwi0b-0008DN-5X for linux-arm-kernel@lists.infradead.org; Thu, 21 Feb 2019 06:39:09 +0000 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=X/QPUIImObQcTA27E0/VuZ6dbxktCIr6Pzp/g16Sp9k=; b=GnddRqwSKCS9h5izFb5KcMCAks7s3UXxKu4i8OsuD4vgVDnmINTul7qk3rquEQD8n9FW6UTXb1dctEFj3wkYQC9AempvgnvTzBiPcFENSLHOehfZhppE5I566s2VYdj3jGh8Ol4nxIuuG/F3DtjbGofi3PZW6l1LN5nkrD0+5Qs= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3863.eurprd04.prod.outlook.com (52.133.29.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.18; Thu, 21 Feb 2019 06:38:57 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::6c94:4ad8:e9f3:cf1%4]) with mapi id 15.20.1622.018; Thu, 21 Feb 2019 06:38:57 +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" Subject: [PATCH V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V8 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUybAeSo37+zULAUSf8sC6yKNW+w== Date: Thu, 21 Feb 2019 06:38:57 +0000 Message-ID: <1550730831-14995-4-git-send-email-Anson.Huang@nxp.com> References: <1550730831-14995-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550730831-14995-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: HK0PR03CA0069.apcprd03.prod.outlook.com (2603:1096:203:52::33) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) 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: c06d5650-8a11-49f4-c64d-08d697c7413e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR0402MB3863; x-ms-traffictypediagnostic: AM6PR0402MB3863: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM6PR0402MB3863; 23:dfRriVpXGNgblxuSkzkslAp9QD/otkBKLIM0m?= =?iso-8859-1?Q?zBLUeQZR2/2k1pmKYLQVmjCETHRjJ3GGUyO3ybJ3aX5hN35BeIffNfEwem?= =?iso-8859-1?Q?aZBQCCPjW8sylPUw6Le/5VICJvpCuEXQ6cPE2qojGbrx+vWQX6RGieGhuS?= =?iso-8859-1?Q?PKlnHrRTS7vpF9H+dZCM2RE5rY3TGzscNunlLznHEwEfXPN8mHRazhp9Vg?= =?iso-8859-1?Q?oxIpPSLjwhUe7HtyuLDvOtRigAYWJGUZN5UPX4nhMnKC4IcCwy0VKcgVsZ?= =?iso-8859-1?Q?wIj1joOjv+C1hw/bTrKXxmtDCA6YI+Wlfytili6TE7XZFUCwiLYZYv5KW9?= =?iso-8859-1?Q?Z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GsrIo9NaGjcd3z1FzUfmimTDwS?= =?iso-8859-1?Q?tuqc53f2SW2aEq6P76Pzs/vlxpVThGk/HXRsNo8FkrHqICnF/3yZS2obEc?= =?iso-8859-1?Q?v2L1QRiXQfIW8Eq0JFMQlvCWh?= x-microsoft-antispam-prvs: x-forefront-prvs: 09555FB1AD x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(136003)(376002)(346002)(396003)(199004)(189003)(478600001)(71200400001)(5660300002)(6486002)(97736004)(6512007)(2906002)(86362001)(36756003)(66066001)(2201001)(71190400001)(53936002)(4326008)(486006)(25786009)(68736007)(305945005)(14454004)(6436002)(316002)(386003)(8676002)(6116002)(3846002)(446003)(110136005)(186003)(7736002)(2616005)(76176011)(26005)(256004)(81166006)(102836004)(50226002)(7416002)(14444005)(476003)(2501003)(81156014)(8936002)(6506007)(52116002)(106356001)(99286004)(105586002)(11346002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3863; H:AM6PR0402MB3911.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: Z+aq3sGMUgSS81pm2/Zm4Ln5C0IfWSP6KkMj0PpoSLaZ7NRn577pB2xX9ffjlMCS1pLLOp2tRehomFkeVhZz48cGtqNxu1xP4d0M8qksqYQRbH/77t7k6t5kD4/UrRHGCZyau10pfqkNXIGvoML86LUlv2hoYDT9w0YZ81Yd2fp4c0OsfKigy8dxrMSjVKFo4zRTCU47dqUFsm9Qczu5HE4inTH7T83qg4iliSJZNOZf58LlPUXLP422aK7lgsC82a16k+5XoNBLUe/HVj+ghCyNRb5Ms7zTW7/y5giUiRdeMjxO0c9XrWdtWMHWr7xQ19AYXYYuO8S4HIGsFZXh493RkRJTyPbzDsoJqJglgK24pRsl7XBf9CTW4euedKn4DQQ/5otRGm/X5d/dmtgMXgWLSAz/GhTpHLzw+HwVdP0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c06d5650-8a11-49f4-c64d-08d697c7413e X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2019 06:38:48.5984 (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: AM6PR0402MB3863 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190220_223901_566931_0DA98ED0 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dl-linux-imx Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V7: - move the "imx,sensor-resource-id" to scu tsens node; - correct #thermal-sensor-cells value to be 0 as there is ONLY one thermal zone now; - add cooling map for passive mode. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 4c3dd95..eccdf28 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 / { interrupt-parent = <&gic>; @@ -34,6 +35,7 @@ reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&A35_L2>; + #cooling-cells = <2>; }; A35_1: cpu@1 { @@ -116,6 +118,12 @@ rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells = <0>; + imx,sensor-resource-id = ; + }; }; timer { @@ -443,4 +451,31 @@ power-domains = <&pd IMX_SC_R_GPIO_7>; }; }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens 0>; + trips { + cpu_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; }; -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel