From patchwork Wed Feb 20 06:53:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10821397 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D6F7814E1 for ; Wed, 20 Feb 2019 06:54:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE3462C309 for ; Wed, 20 Feb 2019 06:54:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B13B52D256; Wed, 20 Feb 2019 06:54:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BA6C2D24C for ; Wed, 20 Feb 2019 06:54:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730488AbfBTGyC (ORCPT ); Wed, 20 Feb 2019 01:54:02 -0500 Received: from mail-eopbgr40062.outbound.protection.outlook.com ([40.107.4.62]:56736 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726210AbfBTGyC (ORCPT ); Wed, 20 Feb 2019 01:54:02 -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=x7vvJpUc8AzJ2+iBl+Ug3+Ov8umi01/juNghnVDL2U0=; b=UJyOOrK4FfnO5tIj1oiJjcpgf2YCrzXA6AH1W7gn6kWRHLf1vgjy8dgX7yBEtBnhcrI3T20yjvjf5Y56Wx9cJFksCg1INpmWahphGtM+xsi1AvaunA09yhoOqj4iRT3xkPOL2po2lvMJnTyTVPxuO2XRYwrvXheAuoOscj4SN0o= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3883.eurprd04.prod.outlook.com (52.134.71.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.19; Wed, 20 Feb 2019 06:53:58 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::14e8:6d2e:fe21:4fd5%3]) with mapi id 15.20.1601.023; Wed, 20 Feb 2019 06:53:58 +0000 From: Anson Huang To: "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" , Daniel Baluta , "horms+renesas@verge.net.au" , Andy Gross , "heiko@sntech.de" , "arnd@arndb.de" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "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 V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Topic: [PATCH V7 4/4] arm64: dts: imx: add i.MX8QXP thermal support Thread-Index: AQHUyOkNAaRgvbqSq0aZKEZTC700Lg== Date: Wed, 20 Feb 2019 06:53:58 +0000 Message-ID: <1550645332-2907-4-git-send-email-Anson.Huang@nxp.com> References: <1550645332-2907-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1550645332-2907-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: HK2PR04CA0050.apcprd04.prod.outlook.com (2603:1096:202:14::18) 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: e27d52e2-2d34-4a52-5121-08d697002fe2 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:DB3PR0402MB3883; x-ms-traffictypediagnostic: DB3PR0402MB3883: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?q?1=3BDB3PR0402MB3883=3B23=3A?= =?iso-8859-1?q?raHSPdV4Pv12RvAHwYMnJnzKrnt2hc9PA8q6NdDlMnRuQpefO+KJgvbPdEbT?= =?iso-8859-1?q?AnLkwevuOaJL08oTS5CKyfqH4zx0+BRlY27kjxR4o0+dbX3dFx+5T9wdyNKJ?= =?iso-8859-1?q?7rbwz2/Zf5ujF65nUofoB5IPhJXLb3ppdFCLB+WV94KLIOm80P92S36OsVen?= =?iso-8859-1?q?Cx7Ib7Po7LLVamtvgcKWFcp+CswAw5mNQA6QorwSWkx9ASInPHu8vGOHxEqf?= =?iso-8859-1?q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cEA5WceiLKrnnEdKWR+JJmRmDH5?= =?iso-8859-1?q?MBJ1dZweeNp7wGNweNH2rj/rQfazVpLo6hr+MeUHDro1XwC+mvVE3RbOWEoS?= =?iso-8859-1?q?rNpyUxRxyUBjzu6y3bM8se5RZq3g/ETgCA/nnTM1pAHu9HH1vw/izqzDHK7q?= =?iso-8859-1?q?b8t1vw2wPVEktgGwvGAK?= x-microsoft-antispam-prvs: x-forefront-prvs: 0954EE4910 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(39860400002)(366004)(346002)(396003)(376002)(199004)(189003)(81156014)(2906002)(81166006)(386003)(105586002)(50226002)(2201001)(2501003)(8936002)(5660300002)(102836004)(106356001)(8676002)(6506007)(476003)(2616005)(99286004)(86362001)(4326008)(52116002)(25786009)(3846002)(11346002)(6116002)(446003)(71190400001)(71200400001)(110136005)(486006)(76176011)(316002)(68736007)(6512007)(6436002)(256004)(14444005)(53936002)(7736002)(478600001)(66066001)(97736004)(186003)(14454004)(6486002)(26005)(305945005)(7416002)(36756003)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3883;H:DB3PR0402MB3916.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: voU1rMjrX0Pq62dMzV0zcMBD2HzZ4smKpB1/fOD7hP9X8wr4TeDeMlvAwpeApVZxdbeg1ekRqUEspfFOSh8YJ/loosk6DilAD9rZv9k+Ai5Sx9qfHRZ/AFgXtnS9e5vrZgrmxf33Ejtnct88QqV8+HAWjRig3lY90JhCIVgPG3L3OgOKIi/cZB1u6Rp1V2n3QSiI5uCCEHE4pdoEU68iufFEtv/E7AGSG/4mJKJ5atsZP+CLD2oln+Me+d3yLwfm+lXfu/LMMAkILuhsA6rVdb+uKKpjxT9Z4eiGEdDpPhBqt6R9q88AowHuBOv2zL6YhE+LCr7OKBC6GBg6u0Hkvep1k2W6mUvg42OaCsULqhje+1O6gjCw54pBk6Q+U0ZGVQIC2nCCBhtC4UbzA5/Ln9mtUNZuVBZIflsSS79X08E= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e27d52e2-2d34-4a52-5121-08d697002fe2 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Feb 2019 06:53:49.5580 (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: DB3PR0402MB3883 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- Changes since V6: - add fallback compatible string "fsl,imx-sc-thermal" according to i.MX SC thermal driver update. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 4c3dd95..24b03d6 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>; @@ -116,6 +117,12 @@ rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + tsens-num = <1>; + #thermal-sensor-cells = <1>; + }; }; timer { @@ -443,4 +450,25 @@ 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>; + imx,sensor-resource-id = <355>; + trips { + cpu_alert0: trip0 { + temperature = <107000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu_crit0: trip1 { + temperature = <127000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + }; + }; };