Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3059285imc; Sat, 23 Feb 2019 18:51:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IbbPxKz1BuvUTlQPkfUTIzazWX/K8Ng47gVSq7cxIpMjnJQBIvTppDgdDMBu0egln5UvRj6 X-Received: by 2002:a63:c307:: with SMTP id c7mr11377846pgd.386.1550976719927; Sat, 23 Feb 2019 18:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550976719; cv=none; d=google.com; s=arc-20160816; b=dfA+B+bn8eZtIyv4aPSwoCuDKRKOLsLPVQqiaJAj/z+uiGV0s3raaN7/+7pf/okUJ5 d76H/X9LG5D/cWeGzRrexgxtAbU/QRqq9ZN7axKHYb/ODBnQabDo8DtR2XdoOeNA0DO2 kVxR/hSrL5FDfDszQQwBUmqmSo/sDgpibTAGHVrdC2TlN4kjzEPzyuRmrVa+R0es+XTe NxnKkf0YuX0zI5Oa5Gad6Sz0JeK8vudw3iQwprzEsQ8GZarM4N3vTm4G2FNr46vBGcmW JTGEDx0JIASkmwAbgeM1+r+2urVAtaxg1eWY4xxIzYOfJRiUda8bB98Io/HGZZkDzlM8 tS6A== 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=jECv9KS8lurSuS/XHs7jTu3QMY3Yt3F9cWt1RKtLK/Q=; b=OBnvxdZ/Xp4Ie+0K2lmccZ3o88eWyu86+xwWMxbfhnysToJGr14pj+AGTNQ5nQ/tw6 eEpmmjmQ3T+bFC/Df/OIJLamdnVsDGgHZVVwXfzQ81PiTFg1Rj2DeKlgACdqGxshi7yd 4xz6ThUoQdvNbXnDf9anYMU4k9+UFW1YKb7HnXfDY+oXUhpF4V0uw2u1Wu9C0qNTTx8r 2ItuWUzhI9Zoye/dbTflHwg6B8hqHfmFnvOYuvQ8lULZOhEo5dD16t6gIFuyl95m4Op0 Bk8VlCr97P+IzjSa0hDQWLima8KOQG6tWyfS9bKKH4yL/5rjwjE5+U8m/Hodk9ZyBk4W B67g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=PlvbBo79; 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 m3si1129357pgq.343.2019.02.23.18.51.44; Sat, 23 Feb 2019 18:51:59 -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=PlvbBo79; 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 S1728162AbfBXCuk (ORCPT + 99 others); Sat, 23 Feb 2019 21:50:40 -0500 Received: from mail-eopbgr80079.outbound.protection.outlook.com ([40.107.8.79]:51747 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728150AbfBXCui (ORCPT ); Sat, 23 Feb 2019 21:50:38 -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=jECv9KS8lurSuS/XHs7jTu3QMY3Yt3F9cWt1RKtLK/Q=; b=PlvbBo794nc3r29D5yiyX+5SHO8wt3fOquaeNgs4VxIUOWNe42uYKvXpCpomPTMXG6Iegp405iTZ98AUCh9ez3bQeQHVUk8EE+p+DweruRxhUZtAYvk2037oH/GrM8fW9i4168HZ/bWeQLQkYrql5EgNMqTqTOYY38m1vXhBHDk= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3931.eurprd04.prod.outlook.com (52.134.65.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.20; Sun, 24 Feb 2019 02:50:32 +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; Sun, 24 Feb 2019 02:50:32 +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 V9 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V9 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUy+u1czRhHiwCAUylWKsapUD+8A== Date: Sun, 24 Feb 2019 02:50:32 +0000 Message-ID: <1550976319-20216-4-git-send-email-Anson.Huang@nxp.com> References: <1550976319-20216-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550976319-20216-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: HK2PR02CA0145.apcprd02.prod.outlook.com (2603:1096:202:16::29) 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: 4a14dbd6-1ce1-4cd3-4d53-08d69a02d7cb 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:DB3PR0402MB3931; x-ms-traffictypediagnostic: DB3PR0402MB3931: x-ms-exchange-purlcount: 1 x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1;DB3PR0402MB3931;23:KxI04JIME1ibqilJnWLaOF0OAegLdqfddRyW+?= =?iso-8859-1?Q?YXsEIyxmBGIOLAlA98oobPVOrLW9D1w2eDf0bjJ9QeHfBsMsKDtAps2GPX?= =?iso-8859-1?Q?MBlEKayOOp/qeQw2KMB7LV7w5oOferTBmR6W/QVYdq8VvrRk9BBCp62hzt?= =?iso-8859-1?Q?vy0ayjYd9IRURbiXUQLmvwZ/E22X2YbWcAbEHAvwxO/zx1LAQRMUOWou3s?= =?iso-8859-1?Q?PZDBWmHimCWrSBhh1Rw/+yG6+RCzO5mKKhGOzN+JAbAzNfnvm+OT4Nqcn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ykN78SMzTggQQFatDtY2zBXSd+x?= =?iso-8859-1?Q?5NlYVEuHuUMpRyZFpzXDF0VDDy6+TYS6UYRcpaCzji23X4UBgrwv5v39LY?= =?iso-8859-1?Q?xBYGiGoKEhdSi86IPjInMR7RSuKwoy55FUtOgdwCiyAUw6mEfnyEErYMeD?= =?iso-8859-1?Q?/WIgEPdFEW0Tc34eiR2PaOVk3yeuJSnX51cUELQMGrXmi1WD02KugSbQ0A?= =?iso-8859-1?Q?o7SJiTtatg=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09583628E0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(366004)(39850400004)(396003)(136003)(189003)(199004)(71200400001)(71190400001)(36756003)(26005)(6116002)(6506007)(6436002)(6486002)(3846002)(97736004)(316002)(386003)(86362001)(7416002)(5660300002)(14444005)(102836004)(110136005)(68736007)(2201001)(25786009)(81156014)(7736002)(256004)(186003)(81166006)(8676002)(305945005)(4326008)(446003)(76176011)(2501003)(14454004)(2616005)(476003)(486006)(966005)(53936002)(66066001)(105586002)(50226002)(52116002)(2906002)(478600001)(11346002)(6306002)(99286004)(8936002)(6512007)(106356001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3931;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: r1n/1tjpIbN6ZKdk10SBWHEL5GSYI/mUHUOVuxWwmMHKQ7/cniJ+F46KUiouvoyTilovsUjte/GZdWQBfu5JRfW6amoaGQpQsklJMNeSF65YJk7tmnnuGO93LZOnXYbSZfUKi33lFxeRmXR+Px2lcvDXpfPeFPXXhFoCzrARPtqn8UK/QYNYObSOmGXoCHrzdG9oFBglfeuba0mSnL9tEcabE515krKl3An4e2fmqGha+X2Vqq8KvqlkOiMd6oXub63sd4gqrpbZImv2glteuAUvR7Hgx4lqLGuXi6CuwJUC4HG4dyKqr7qdmFG56ULkKQZEAEymtDIJzuMZd7FPbY0FM+p0E/qcG3uOi+llxoQgcu3qISRqZEztR8wtUz8KLh08wCwpgmYOm7e9/UUxWNhAKLoNiPTUJEK96F8jwI4= 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: 4a14dbd6-1ce1-4cd3-4d53-08d69a02d7cb X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2019 02:50:23.4989 (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: DB3PR0402MB3931 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 V8: - remove "#cooling-cells" since it is already included in cpu-freq opp tab= le patch: https://patchwork.kernel.org/patch/10825081/ --- 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..85c90e0 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 <0>; + 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