From patchwork Wed Feb 27 08:46:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10831397 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 376501390 for ; Wed, 27 Feb 2019 08:46:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FC1F2C9AB for ; Wed, 27 Feb 2019 08:46:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 127D62C9F5; Wed, 27 Feb 2019 08:46:51 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9E9862C9AB for ; Wed, 27 Feb 2019 08:46:50 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=fDNKZ6EXAJ6YTNLihoZUDNDOzk/SkxMqkL2LVY+mr7A=; b=XzgnCnN/AL7cod 62ul1X88do74mOq+pOGxZSq3R3VHqgST/URqMU+wZR27wQXYZXSr7IQhXVf2dGS8beqMl+Co+jEMJ sktVvdLrMT5S8DHjhPj1jq8MG2KzsRrf/pPJ9c4exr8Lzr5oPgnPXwgIb+YRM0Jt9Hx+gfSgZaYFu rXtQHPvZb6RVqWfbLFDe0JzcJiWYoBMuxTVQhoZhAEVo35J0oKd5BPR8cwFVCPD9ImJ/cGGcAfFGC qbxR2Nxfuzufdls4G/DXzTTq7MjbQJLrNrPaLtFrRkxJF4kQZRuSbrWf2aU0KhUauFhblZ+PCWDqs J50R4qMy3UmTFPWdE//Q==; 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 1gyurW-0000uR-QZ; Wed, 27 Feb 2019 08:46:46 +0000 Received: from mail-vi1eur04on060e.outbound.protection.outlook.com ([2a01:111:f400:fe0e::60e] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyurT-0000rE-Ek for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2019 08:46:45 +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=Yy567eFidfxDK70YtUI0fD4kJQmgUXNVSv8cHNKZYL4=; b=AO6/+3ldjoUKZVu68lytL4tjpBDxWxbaI/HmAn3bPojUKZy5xIC/l2HqbXLQ1Ij30Dts3fCr01pjQlfofSW40oMdhL1Cxug3ir/HY8dqjaZRi6IZbTdndZCpJ2l5qj+6o2SxAJ5eu6pLEyyXanC/HFeVOWSn4iRk3o2exNs9S8o= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3643.eurprd04.prod.outlook.com (52.134.66.153) 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:22 +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:22 +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 V10 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Topic: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding Thread-Index: AQHUznjp1VM2Vv0vQ0qLNAgNlgUeAQ== Date: Wed, 27 Feb 2019 08:46:21 +0000 Message-ID: <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: 70a8abcb-8cca-4858-8ca7-08d69c900c52 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:DB3PR0402MB3643; x-ms-traffictypediagnostic: DB3PR0402MB3643: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DB3PR0402MB3643; 23:3a/Hb9yruw/eb7SI6hp1NdjqAaFO3k8IiG3/z?= =?iso-8859-1?q?55mJYkApoDLizZaaK?= =?iso-8859-1?q?8fEQei3FbD9ujMS7bVPG0SzwgXcYwWzLCWhHlkCQTX7+5hzfr3O5m+gsZKTT?= =?iso-8859-1?q?9UW3xjd7qAbzF9WNV/F1mbY7i2t+T2dt9pI++ijrJ0GJ8hjUL7dReOFEi+7n?= =?iso-8859-1?q?6fIFYBCgfnyP8e+ncvxPOQtBJapG27ejEDgUBMLK3i7RJAA2TUBn2CNBKjAY?= =?iso-8859-1?q?rdM2IQqQE8y+sq7TTi9gpFN3VuMEAenceQhkjAmKnod1k5Bb+6Tw/C/On1kn?= =?iso-8859-1?q?WllIrmHUEcEP+lDBJ1TfecHPMd853Aae5bNPc0e34WSH/OO43fSN0791Tz9T?= =?iso-8859-1?q?5Vtm2orUNPfTeDuqDs2tVnXdWgEXTlCRAjhsrgBjfsFM+OGS72E5XQmT8Jyf?= =?iso-8859-1?q?gflLTpogizNtZ4eVtwrnoKZxiGVBpSPOeX2rw6o/Mhm9QMwpU80ZslFdlHcH?= =?iso-8859-1?q?2FEwSE51utwh95AtrVfiRARTqrZh11Gq5hd8oICGsK7r5m18vo8iN1juNPAd?= =?iso-8859-1?q?XJU4z7lJFemKvIDXRb7rFtFiLGSYlUAKzQWvQR5hQGTDls1MOGx7XZZCH6nk?= =?iso-8859-1?q?D3PPf5bgq1TXQi9N63ehZNyu+iNM5sV8xAiGQPJ1BK2u9QpPEZWdc1sYV5Yb?= =?iso-8859-1?q?jO1gX8/lhrx+edUiybcHSAAkuj6dDd7I3qdEoMy7sUD0Ngdg3TbZsu7tmpNP?= =?iso-8859-1?q?hcpHptbB72Ud3bCcP/QcWUhzTe36u+cKRDczCPGN3qEXyOvgLdPOFbURlA17?= =?iso-8859-1?q?DN+LwFbZAqzDPyOSCqvcAromezAjaRHnucqHcpeFrmLJfRa0ghoMiV6RMwKO?= =?iso-8859-1?q?hoGQZOyMjnhZeKd+vm9o7W9ySSkhQDLxTq+n6/wG48TVG4RliCNcel7XRs5s?= =?iso-8859-1?q?mtgI/YgNRvWU32Bx2Dx1j8+lqo8dPaZF9ogPilN6Gzor5SvJmqFZQ+l87pRp?= =?iso-8859-1?q?65Vn9A/eIzPyaZ3TjOS/4zq8FR8HdbkWTqi/FrMDU6dydJsd4zOe8U5N7yAc?= =?iso-8859-1?q?i3gd7YNcx2nPyL3TWlDiHGCoikPB6/7oAEo8VkcDUAd8ncykyvpYwqGcaU3C?= =?iso-8859-1?q?hrucVllLHeXaQKLiSkqrYYMjrNRu3zweNsk6vrCj/MuEgPFj8+oI3fPX1DZx?= =?iso-8859-1?q?Ep9SmM0U7aQhTPLYtrW1HsF6O6mDanhLrINA3vaObRuLeml0rhe0dKScJy+F?= =?iso-8859-1?q?xD/J4czYJqbUhDoRZjtgaq?= x-microsoft-antispam-prvs: x-forefront-prvs: 0961DF5286 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(39860400002)(346002)(376002)(189003)(199004)(6512007)(99286004)(71200400001)(36756003)(71190400001)(305945005)(7736002)(6116002)(3846002)(105586002)(6486002)(50226002)(106356001)(53936002)(97736004)(68736007)(2201001)(86362001)(14454004)(81156014)(8676002)(5660300002)(25786009)(81166006)(8936002)(4326008)(52116002)(2501003)(478600001)(2906002)(26005)(186003)(102836004)(486006)(7416002)(476003)(66066001)(6436002)(386003)(6506007)(316002)(256004)(2616005)(110136005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3643; 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: uY3AaHOC4d7Qt7W8lLtGAXFrKAM2LTaRw3wtTUysAq0sEEldOs0YFoYKoQAT/XNMaRqRZhfcp5Y6Uh++eSyn5+rpTFu/Ld7aH47yA4hOdqJLKyCF78ksp3b0fKaHw4FMYbKUGiJNVfYiO8xG6GWRTUdgO3j8wrc/WGJW12x8qgWn/toRSNyVND6yViipWeZA3URl5DD6CO8a+FwZbfQJH2GUnWhGncYwxtB6LZXFfAEfY0wWBfOEXwLFOB2wv75n+kyWGanGhTg6WcejjqlH+BntA6+7hjt2aLch0Ymy+ZS8bntKaYgKTC36b+yD4MYniWUFf8D1jQ4yiuodGtQfTXtpjxBU+ZTA7cSlunvPy+Xv8agM8g92oi+QLzHzmCDBDgSax3S7rtjEdCoChgR4mTnKmavr4kjD6Aq+emC+dOU= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70a8abcb-8cca-4858-8ca7-08d69c900c52 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 08:46:12.7871 (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: DB3PR0402MB3643 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190227_004643_494260_5DD165B6 X-CRM114-Status: GOOD ( 11.26 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature from thermal sensors, this patch adds binding doc for i.MX system controller thermal driver. Signed-off-by: Anson Huang --- Changes since V9: - change #thermal-sensor-cells value in example to 1, since there are other thermal sensors inside system controller, it is just because there are still some issue, so system controller does NOT expose them for now, they could be exposed later, so it should be 1 from HW perspective. --- .../devicetree/bindings/arm/freescale/fsl,scu.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt index 72d481c..855270b 100644 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt +++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu.txt @@ -122,6 +122,21 @@ RTC bindings based on SCU Message Protocol Required properties: - compatible: should be "fsl,imx8qxp-sc-rtc"; +Thermal bindings based on SCU Message Protocol +------------------------------------------------------------ + +Required properties: +- compatible: Should be : + "fsl,imx8qxp-sc-thermal" + followed by "fsl,imx-sc-thermal"; + +- #thermal-sensor-cells: See Documentation/devicetree/bindings/thermal/thermal.txt + for a description. + +- imx,sensor-resource-id: A single integer for single thermal zone's resource ID or + an array of integers to specify each thermal zone's sensor + resource ID. + Example (imx8qxp): ------------- lsio_mu1: mailbox@5d1c0000 { @@ -168,6 +183,12 @@ firmware { rtc: rtc { compatible = "fsl,imx8qxp-sc-rtc"; }; + + tsens: thermal-sensor { + compatible = "fsl,imx8qxp-sc-thermal", "fsl,imx-sc-thermal"; + #thermal-sensor-cells = <1>; + imx,sensor-resource-id = ; + }; }; }; From patchwork Wed Feb 27 08:46:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10831407 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 9B1ED1880 for ; Wed, 27 Feb 2019 08:47:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83DBC2C9AB for ; Wed, 27 Feb 2019 08:47:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 780BA2C9F5; Wed, 27 Feb 2019 08:47:13 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DD4E42C9D4 for ; Wed, 27 Feb 2019 08:47:12 +0000 (UTC) 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=B01AE7SReb/IASgRkVyO0WX9k/kuQVR+yGqTlgHSO88=; b=EaElOh8vbopNOb BAhyLXLhpjDoCIbrsZAPvbBDCLGcfC4R0dW5L3Ubu1xpvEqnoK4Mmtg5OzBXLInzYGRyfFe/usNaA +b/sy9DuCRa/ZDBUaKbaR/ko/318W7tbWbx0D49rkoXckRNaQRkUMHNYRoAY88zesb3+4ZsdllZzC NvUoBJD1yvng1tALemiWANSX7sOjon2/xJWKP572zkimw2APkGs8X8xdig/LWBqDReDV/ab+itQo/ dVOCH0jyXOffp/RzyBE3q3oFnE0ir/Xmn7UQ2kfnZkLk5kaTU1SI7Uyc8t8UKMu+dNdKfOAmIX9Um kWvQxy5g7/AKLvAB/a7A==; 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 1gyurq-0001Df-R4; Wed, 27 Feb 2019 08:47:06 +0000 Received: from mail-vi1eur04on060e.outbound.protection.outlook.com ([2a01:111:f400:fe0e::60e] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyurV-0000rE-PE for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2019 08:46:47 +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=lFpg/8sHavncXPdEKtOnpsa9aNa/nU6OIDuOtkoLQaU=; b=PxeXCGQEAvPePytoXy65IFLCRcqN+vvba+BuG3H++kdKY0ybgO/7y9+jZ0B/+1o0/HHN/MkqAvhYj3igDCM4ah3/hAEUw+xhuhPf9nNMF9+x4bI5YeFcSWIfS2m9kaV8EB+pRjc6jdzmuZ2F+oL/Cw/qSGGHFT4FvZP9zZ2AfBk= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3643.eurprd04.prod.outlook.com (52.134.66.153) 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:31 +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:31 +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 V10 2/4] thermal: imx_sc: add i.MX system controller thermal support Thread-Topic: [PATCH V10 2/4] thermal: imx_sc: add i.MX system controller thermal support Thread-Index: AQHUznjvZmULGL+j60+dibYMxXvlrg== Date: Wed, 27 Feb 2019 08:46:31 +0000 Message-ID: <1551256894-21954-2-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: f1c4083b-7098-42e4-65b1-08d69c901207 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:DB3PR0402MB3643; x-ms-traffictypediagnostic: DB3PR0402MB3643: x-ld-processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; DB3PR0402MB3643; 23:dKUFpNR2HXIONLH5NkevJu+eOv1H4ZHYlyc+Z?= =?iso-8859-1?q?06hKCaziuCMj7Tbjb?= =?iso-8859-1?q?0vbyh0FfoAr0j0aFxCzrscrfEgmIrrvssz5JbLq8e5ztj82OuhvpCW0SjjCX?= =?iso-8859-1?q?ah7DJRhZIEjjfv0gOmuHLmq890DxKLE0dQqGaKLOZfYynRzfmPktFuzMM2OA?= =?iso-8859-1?q?GNlyBseuKyj9WbWtEsGhTKQ/scbdq4JFAy3TIcgn2ZOKEg7RRIsmky4ozRO+?= =?iso-8859-1?q?p6WST7pMPD3vBV3dpjNAKDRVzlBIVkI4Xr3oT220DFI5kA5312r74r07JaH+?= =?iso-8859-1?q?qqKGljeHaXng32xNRt6at7vxUsGwv/Byp4WqdCGFOfELVlPu45QfcatWRlbz?= =?iso-8859-1?q?fMZBsbac3M2H7tVkxvMcmExDtVe/gaWoXr9igeVTuOT/CQwIawOR5we0Nymp?= =?iso-8859-1?q?GLElSqNz6EmIf/WOU3UJ8fJxpzyACvCvhhlarmjqULDJ0PSHN6kWr/e1n5cm?= =?iso-8859-1?q?Zlj8WzXjx15WLLL6lhrTz7sjqX4TZ2k6FJ+kFzvZDth/xEUCdj8WS71wRsh1?= =?iso-8859-1?q?8wp+OLyl/nUh3STNI6cawSMW+XDyUngf8x0n9UF18GtBPKhqp3kPYQX3k5hn?= =?iso-8859-1?q?+RHYFxTxdid7zXGxP4Etx395M95Po8cFFJXrI06RFssmfCiuYaE27nuy9brA?= =?iso-8859-1?q?HxOSa+Ppvu6GjYjBeKQkE610kcigM2E9m8ObhcUcwZbjHgm/BdRJ8nfM4NZv?= =?iso-8859-1?q?JXclU+gSn9QeyhIXBa/AC2jXZxsr22ivZj8p22/+FHbsZZI8JfjU+7q45vXi?= =?iso-8859-1?q?lOYLTidKIQkmDVlt86T7Kwphnku6gBdfRmf+NfTEu04vatcVFQ3Pnmt+OcIG?= =?iso-8859-1?q?MubOISXRTeUL7xqSIc68836sQtcQ54N1XDasxBwArFdN5VB/5AqLMl3Y2v2v?= =?iso-8859-1?q?F96xzilBWTtWWZ5a8Lf5lNKtGpuSrK62gpPwOzSx+Pbau2Bxc0weqp1DoVJ+?= =?iso-8859-1?q?UVZuzsC3VooUoALkwviJ2aqpscbAMgfqBTpE3XxVT2au9aRgsJSW3QsICCNp?= =?iso-8859-1?q?pn2pZ2uC9Boy3BjK4mTev+XFZ93NgDGNSMOhxwKoeji5NA1s2VeCEAsxbYXA?= =?iso-8859-1?q?xoONy3+oWg1/OCLlYm/6Z8qs4vwtACWJK8kuYGeN0/R2slOJy34XEHjmGOfW?= =?iso-8859-1?q?bq3Hzoob7UJ+EvBG2ewYjMIDBagqh34KGkMZjn09VCxV1d+9lp4f9nU7UPCh?= =?iso-8859-1?q?UKTbfHfTchniXI67QKpZ6Wc+lMRAcDytXHAn4Vctf/n8iVg3B7mpvA+nxvBp?= =?iso-8859-1?q?z2ZPb21UnhQnlkeQ8qQK8vkOY7GzI6MUihUO05m2m/HGV7s7c6QqrChGeb+4?= =?iso-8859-1?q?JB1i6UPfW1YEUpsyuAYNOJjwJO8N3vLPHyL15u+PYkmbz+DFEGjA=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0961DF5286 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(366004)(136003)(396003)(39860400002)(346002)(376002)(189003)(199004)(6512007)(99286004)(71200400001)(36756003)(71190400001)(305945005)(7736002)(6116002)(3846002)(105586002)(6486002)(50226002)(106356001)(53936002)(97736004)(68736007)(2201001)(86362001)(14454004)(81156014)(76176011)(8676002)(5660300002)(25786009)(81166006)(8936002)(4326008)(52116002)(2501003)(478600001)(2906002)(26005)(186003)(102836004)(486006)(7416002)(476003)(66066001)(6436002)(386003)(6506007)(316002)(256004)(2616005)(11346002)(446003)(110136005)(921003)(1121003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0402MB3643; 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: XjPkb2XFa+8Ju0w077WIOW8LOjh1ihn4dfniJvnRQlMs0zhq1W2HHos1JpancKdvh8R0s7umaKj6HI4NCDks9YDbPNmc/3M65DWkS+r9eDqwrLOlDg+f+Orr8/qnD1Ia2HZ4NTVzHjrFQJoT//foMqPEtbgON+sxsZcc9OFGh8XLhddelNIyDx3TMkczmp/hGb/W3nHfrHoi67IC32ZJnO2s2f9O/EwLTdJQzbqewx0YJSBCr1124FoPYwxGxdSG2hE6l+DDF7xKtWAm79JZfo6KV3N571IFRbABrlFwXzqH2vBsaNoUVp+6s+VAm1ts+QhRrn1fYCWrB2V83MwkzdQ1O2txOzHyRr/pzVPKhoRCiYTnmZRfQQyKyNd7ciDJ/Zfk3opTAvy/lYE396OTZ+gqM/gILJzl0tkZI57FeFI= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f1c4083b-7098-42e4-65b1-08d69c901207 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 08:46:22.1398 (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: DB3PR0402MB3643 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190227_004645_818706_1A9ABAE0 X-CRM114-Status: GOOD ( 19.76 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system controller via MU (message unit) IPC to get each thermal sensor's temperature, it supports multiple sensors which are passed from device tree, please see the binding doc for details. Signed-off-by: Anson Huang --- No changes since V9. --- drivers/thermal/Kconfig | 11 ++++ drivers/thermal/Makefile | 1 + drivers/thermal/imx_sc_thermal.c | 139 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 drivers/thermal/imx_sc_thermal.c diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 58bb7d7..fec0ef5 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -223,6 +223,17 @@ config IMX_THERMAL cpufreq is used as the cooling device to throttle CPUs when the passive trip is crossed. +config IMX_SC_THERMAL + tristate "Temperature sensor driver for NXP i.MX SoCs with System Controller" + depends on (ARCH_MXC && IMX_SCU) || COMPILE_TEST + depends on OF + help + Support for Temperature Monitor (TEMPMON) found on NXP i.MX SoCs with + system controller inside, Linux kernel has to communicate with system + controller via MU (message unit) IPC to get temperature from thermal + sensor. It supports one critical trip point and one + passive trip point for each thermal sensor. + config MAX77620_THERMAL tristate "Temperature sensor driver for Maxim MAX77620 PMIC" depends on MFD_MAX77620 diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 486d682..4062627 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -40,6 +40,7 @@ obj-$(CONFIG_DB8500_THERMAL) += db8500_thermal.o obj-$(CONFIG_ARMADA_THERMAL) += armada_thermal.o obj-$(CONFIG_TANGO_THERMAL) += tango_thermal.o obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o +obj-$(CONFIG_IMX_SC_THERMAL) += imx_sc_thermal.o obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c new file mode 100644 index 0000000..e9a8207 --- /dev/null +++ b/drivers/thermal/imx_sc_thermal.c @@ -0,0 +1,139 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2018-2019 NXP. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "thermal_core.h" + +#define IMX_SC_MISC_FUNC_GET_TEMP 13 +#define IMX_SC_C_TEMP 0 + +static struct imx_sc_ipc *thermal_ipc_handle; + +struct imx_sc_sensor { + struct thermal_zone_device *tzd; + u32 resource_id; +}; + +struct req_get_temp { + u16 resource_id; + u8 type; +} __packed; + +struct resp_get_temp { + u16 celsius; + u8 tenths; +} __packed; + +struct imx_sc_msg_misc_get_temp { + struct imx_sc_rpc_msg hdr; + union { + struct req_get_temp req; + struct resp_get_temp resp; + } data; +} __packed; + +static int imx_sc_thermal_get_temp(void *data, int *temp) +{ + struct imx_sc_msg_misc_get_temp msg; + struct imx_sc_rpc_msg *hdr = &msg.hdr; + struct imx_sc_sensor *sensor = data; + int ret; + + msg.data.req.resource_id = sensor->resource_id; + msg.data.req.type = IMX_SC_C_TEMP; + + hdr->ver = IMX_SC_RPC_VERSION; + hdr->svc = IMX_SC_RPC_SVC_MISC; + hdr->func = IMX_SC_MISC_FUNC_GET_TEMP; + hdr->size = 2; + + ret = imx_scu_call_rpc(thermal_ipc_handle, &msg, true); + if (ret) { + pr_err("read temp sensor %d failed, ret %d\n", + sensor->resource_id, ret); + return ret; + } + + *temp = msg.data.resp.celsius * 1000 + msg.data.resp.tenths * 100; + + return 0; +} + +static const struct thermal_zone_of_device_ops imx_sc_thermal_ops = { + .get_temp = imx_sc_thermal_get_temp, +}; + +static int imx_sc_thermal_probe(struct platform_device *pdev) +{ + int ret, tsen_num, i; + + ret = imx_scu_get_handle(&thermal_ipc_handle); + if (ret) + return ret; + + tsen_num = of_property_count_elems_of_size(pdev->dev.of_node, + "imx,sensor-resource-id", + sizeof(u32)); + if (tsen_num <= 0) { + dev_err(&pdev->dev, + "failed to get valid sensor number: %d\n", tsen_num); + return -EINVAL; + } + + for (i = 0; i < tsen_num; i++) { + struct imx_sc_sensor *sensor = + devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL); + if (!sensor) + return -ENOMEM; + + ret = of_property_read_u32_index(pdev->dev.of_node, + "imx,sensor-resource-id", i, &sensor->resource_id); + if (ret) { + dev_err(&pdev->dev, + "failed to get valid sensor resource id: %d\n", + ret); + break; + } + + sensor->tzd = devm_thermal_zone_of_sensor_register(&pdev->dev, + i, + sensor, + &imx_sc_thermal_ops); + if (IS_ERR(sensor->tzd)) { + dev_err(&pdev->dev, "failed to register thermal zone\n"); + ret = PTR_ERR(sensor->tzd); + break; + } + } + + return ret; +} + +static const struct of_device_id imx_sc_thermal_table[] = { + { .compatible = "fsl,imx-sc-thermal", }, + {} +}; +MODULE_DEVICE_TABLE(of, imx_sc_thermal_table); + +static struct platform_driver imx_sc_thermal_driver = { + .probe = imx_sc_thermal_probe, + .driver = { + .name = "imx-sc-thermal", + .of_match_table = imx_sc_thermal_table, + }, +}; +module_platform_driver(imx_sc_thermal_driver); + +MODULE_AUTHOR("Anson Huang "); +MODULE_DESCRIPTION("Thermal driver for NXP i.MX SoCs with system controller"); +MODULE_LICENSE("GPL v2"); From patchwork Wed Feb 27 08:46:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10831409 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 712041669 for ; Wed, 27 Feb 2019 08:47:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57E9C2C9AB for ; Wed, 27 Feb 2019 08:47:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BF462C9F5; Wed, 27 Feb 2019 08:47:24 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 495272C9AB for ; Wed, 27 Feb 2019 08:47:23 +0000 (UTC) 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=k7dH7h6+AJd7AS8MPv+QXS7T/nHVg02Vtt0nQWeBWjE=; b=sV5hfonRM3lw+w Fejg6epQHaciNYcceyV6cJ5IlsmWefP65Yu8alDnovDpMjTDkAFS5G5LS/KRyv/ihE6Qk3ZVViDR1 /FbMXSTq1VRoq8qFn41W962n/2RXyy1Fxydv/nVwyhj7Vq6EkUvYEkvUsjDLcv9tLRqbWIMC03BZc 9K2O0r0emeoYVYMJBz7ENHjnNbefflcnSOYiBm2ifVYw7RoME4OHzj1L5nRNDWI5rhvwpfgCBlNZv lKuqOyVG5FlsqdteHzbGWerGWk7aukM2fHKswodoT26Xdd3ZoNanK2ddK0tzP2qQS8MVRkCvgfzOv +iSPUul8wGLtO8/e5Gfw==; 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 1gyus1-0001Rm-Jl; Wed, 27 Feb 2019 08:47:17 +0000 Received: from mail-eopbgr10061.outbound.protection.outlook.com ([40.107.1.61] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyurX-0000u7-RY for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2019 08:46:50 +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=Inv0zd1lGXPYjCKkHxkCG1cGUaq1baqCUxdg4l7brdM=; b=C+X7QVek5va9AaONbqdOVvwFaeAG2MxbWweGDvsM+SvYjIuJAxopQ0yZBTvTs8d+uVV7sLK2XHMOKNhIyPaIAfq8Sof2XBXBLsFo4YDPME871F5SbdEyILpdZ0SpOIa1en8W/sRzywhAA1u9WcfCv+lO8smn6ARFcJG72KjshzM= 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:41 +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:41 +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 V10 3/4] defconfig: arm64: add i.MX system controller thermal support Thread-Topic: [PATCH V10 3/4] defconfig: arm64: add i.MX system controller thermal support Thread-Index: AQHUznj1lMbmz4Y0XUuo8x2Mi1zctQ== Date: Wed, 27 Feb 2019 08:46:41 +0000 Message-ID: <1551256894-21954-3-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: d84e2d9a-4b61-4006-2258-08d69c9017d5 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:aIqUSMaZk8deCcLY2pZgGrLAvtBs+fqOMVMNK?= =?iso-8859-1?q?dOOISfTaBf8jzYdC9?= =?iso-8859-1?q?VH7fRI3L1tC3RLAYTB1F/7dHllGXvZUaZHYzeCdP/GpC8L8doMRoIhRYSMr4?= =?iso-8859-1?q?Y0aDfh6YPUkfo8XJVQmEUXv14ZVzzriRSLreIoPJVw288v1xn3S1fOIamI83?= =?iso-8859-1?q?zegMnwt17gFPq2fidtqEaO1ko944INaLln1TEbcDskl4EqUjbcyF8L+/QpZl?= =?iso-8859-1?q?wSl6fWui2amB0QWZk3Rse0SAmh5yEqiVJG44vxReTlGH8bTgGJuYmCeGSiYk?= =?iso-8859-1?q?AT9dmK9t+mYZJI/LsVJf3plIHhy1SX3/V3EWujWZBhoHgybWJt/mmfUn9LlS?= =?iso-8859-1?q?j5dKkwlyWzHGOIr4uPFa+fAPq61FGs+amhl5tXPcOjyTYiPpwDQV6FXkmEnX?= =?iso-8859-1?q?kVaDHbUgKLBfGh6YAEUvgzitjIr3/BU+uCxs6ygCvlaUQkYZj2igDXoxIGw3?= =?iso-8859-1?q?ow6c8xEieSpv3aT5QNLdz0jQEcwHrltz7A2jURZB5fDIA8iOQB7w5M5EoKMt?= =?iso-8859-1?q?e9uYw2aq0ixIC8uFkB7I+2RBufBj3HtTNFd1bHIx3Q2IOQ3eBEsYWpWKK0KE?= =?iso-8859-1?q?SEuivjIqKKAo5y4XISR/wZRSDX0UjsF/GpfxnABcnx6GcSCga6uYViXct/DE?= =?iso-8859-1?q?rtK+CCXkrOzSJ1yTtRkNM8HOR0V+UfRpmZAIeTcGvqw9i7ZPcP50Xgq3VvmK?= =?iso-8859-1?q?M3bXkjLJ8G8p0w+6/YAIN+cdDM4OpDuFjOfS5kpDAsqYvZU9/0SwFPJ3RUe1?= =?iso-8859-1?q?g2mU6BEhbP1Ok2IJgv9reZpdil+nYksUZko3/atvtd/t037uXbhMMCZSpdkI?= =?iso-8859-1?q?igJFKNFJsxqMtswIOM0gHFfONItjfzswlQC07e0Caeq51TJ+isQK8t8sGaZO?= =?iso-8859-1?q?XVXC1aPjgKeX4EJJ44Z/uzhWjxOflBXMJa554D5Ko55acRp1FAvbndKOll8V?= =?iso-8859-1?q?BkK2tdqKLQ2Q+PatJw7iw57frjN1Wl0np9iDM20DT6Yq93kf2cIUaD3mf6DK?= =?iso-8859-1?q?U5tXi0uwS8/clZXePn5m5OQkoedVRZ/goyAfj4qzlb7tbQKN5qgOIpXl2V7E?= =?iso-8859-1?q?ZCB/RDqE49cG8r9dywU+Hsv0sGNTN0M+HBx9meuBdwAaa9+nly5xhBqWfBwG?= =?iso-8859-1?q?D5vGbGzNRUFDaNIQeV3fnwbjyUeGQp4AGShlHM1ZVnHtOZv5GKJmQlNmV8mw?= =?iso-8859-1?q?nricoiRnT6c/q//1YEDVG6H9Kvp7wBGivrZFnMiVeIckP7k36Gi+mmuMh5Vh?= =?iso-8859-1?q?8bJMYCyQWMf/VlzE+vSdFVoYVW?= 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)(4744005)(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)(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: d9Lf7ZY1rqyg52RjvdOVYxlq8tS0CAd2F5E3sDdvUSFlL7JXrH5GaeB/0VxCCw0bG7Ft8WMZVHHNVfbDfM8Sm9MgfZEV2UkMGiSI1W7ZTsfyIkMa8pucstBKVaTeZ6wQZLiLjhPazCCLpw63s1MwvGeaQH0vuz7jjvZgCSHgdfRe9W8SGle/R9ahhW+9qGpauqfmb/GQHX1WKF2+UX2PZE6X1knst6VtdsE6wzpoCp+7v/+lLG02N6sTRrDpYPYnCydPLEEyvgfFiJxC6+CMDIt7BaNKoo2nACLy7ZijufKCgNGJXenNyCFci9bBWGPzRICRMAK7uhAH1A+y1Mw2zAwq/X9EDfA/zZ/AKfbgQk632xTt0fPL5V1FrIsBepw+P89gBSFmPRQ/UWdO57kiFOr+TPVheRCtvloL6CNIKe8= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d84e2d9a-4b61-4006-2258-08d69c9017d5 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Feb 2019 08:46:31.9698 (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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190227_004648_037096_35669B47 X-CRM114-Status: GOOD ( 10.88 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 2d9c390..52d503e 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -413,6 +413,7 @@ CONFIG_SENSORS_INA2XX=m CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y CONFIG_CPU_THERMAL=y CONFIG_THERMAL_EMULATION=y +CONFIG_IMX_SC_THERMAL=m CONFIG_ROCKCHIP_THERMAL=m CONFIG_RCAR_THERMAL=y CONFIG_RCAR_GEN3_THERMAL=y From patchwork Wed Feb 27 08:46:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10831411 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 7755B1669 for ; Wed, 27 Feb 2019 08:47:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E0152C9AB for ; Wed, 27 Feb 2019 08:47:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EB152C9F5; Wed, 27 Feb 2019 08:47:36 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E22BB2C9AB for ; Wed, 27 Feb 2019 08:47:35 +0000 (UTC) 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=20YcGjMHFRDFsNf5uwpfJZ2rKJuLZjMT2sJnDPRuAbQ=; b=I5dSgakUgA/Nom MNqGEw/RnGEkr0VDl7be1aqA2qePko4G/uPgIwOeQdNK0/52qe2uni8gsdi7Zkylf4OxZ/WQ6gh5O pUYInvojN51roYRoLvqrVYaulHCnIdwMsEX/hWTuXUoi59elq3/gFGwhjSsM3PajZMdkm/u9m+rHW FYzr83s6vdzpAIozEDVNxSuM7KkWYHZPGGDEN653bPHhdclu8ohfq/0nV59xylHWlVAUDISBqaBc5 ll8IIwNz5SnRKooIDVhihWEgePvxz+B+h15nV/U8Yb2RhzmGr+kr9kY+tSmYx+mA9VqE5iFrGJNJ6 qyw86v5Fy8/LevqMwsag==; 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 1gyusF-0001lP-Ky; Wed, 27 Feb 2019 08:47:31 +0000 Received: from mail-eopbgr30059.outbound.protection.outlook.com ([40.107.3.59] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyure-000134-NN for linux-arm-kernel@lists.infradead.org; Wed, 27 Feb 2019 08:46:57 +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=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" 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/?= =?iso-8859-1?q?2iOxYiiZRhveN43O5L5P1MAiGr27NsIqdbI+5EYbetaufx/sBELJGqFWVJSd?= =?iso-8859-1?q?9JX5ySi03dpaYAFY2on9iNiSr/CWz/fv8bQ+yqZfAglagLvlDVmbRy/sGLRo?= =?iso-8859-1?q?3S4UkwctcFjdFFeds7Fna85OUqyzcIYhxvlrtgl46qfJnf70gVO/F2xJTbI3?= =?iso-8859-1?q?XQnaCBfJxATs+lgdq9GlpxGXlkf788owpc3dH2+mnqG19wVpio3OU7Yz/azx?= =?iso-8859-1?q?H1mky6pENmKhqpDdGe/g4x3aPC4H5/vmAuVrpnTVtqevisVgzIZaQhZ5WHAt?= =?iso-8859-1?q?rZ0nSWAFg39QHMIlc0sOkcTxVo/kiTPi7YpnsX3uyo5cqnpSQJ8TwJrHQuLv?= =?iso-8859-1?q?sWJZIG0ax3uZyOnGVGe1MRkRMbNCeMddgoqIJuDaNLgrW+Mo9cvrqb/G6bpH?= =?iso-8859-1?q?we5lZNfKZOvc8H7UDz2MmMj64uJvuwLpiMMSyc/d2aMaPzEDQ3TGslkr5FRC?= =?iso-8859-1?q?leHjzZLtqcrIG2Tr+0/gSGx8VPIuF87X19Io8qhPtGlrkvoMe9c7S/0q3uvO?= =?iso-8859-1?q?C08g+IQjwAzn8G8R9obGlgI0tCh+TpcF09mnWalr4VienQiEvHNVY2Z+sg+X?= =?iso-8859-1?q?kuzf7KYbFnyyYhCdcZqd/sLeKF1arv8x1rOgfvcDMV/hYe6JH1m5Nb3FIkRe?= =?iso-8859-1?q?hv0RNjCqfmGaQ6Jql0kxZiIljbhIzfDzrB8O2uywpXtAT8GHB2y9aTNpBmWb?= =?iso-8859-1?q?FzW05OuNwW4o87YOMrwmIA0c6yNq0yvIDkPrApEtpfTimVpqP9Kb5729VjCq?= =?iso-8859-1?q?S/1vIbdBUi01wxiW1lZGbaKf0OiwSgDYLP96E8gsAm4uP2SMHuG447N6z5Gy?= =?iso-8859-1?q?PLNac/EtYSBN42dEXNXji6Dt0BOWvIePW9sKG5S7JcodrjEBJMDU3ZThcWo5?= =?iso-8859-1?q?nelDDCAxAsuc/dZUB4aWHJ+OM2SErDFwY40i8Hcc25enAYU7mxzCC1j4aQHO?= =?iso-8859-1?q?kv8UZFJ3dcMiviNTh5IkGGRavRUNE5COU4tg6pe7oPuMab36izqUeiafwt72?= =?iso-8859-1?q?/MUpSD3ZrZtbovku82ISjMZI8OtV6XF15mB/IetF+miHQoxNy+LuWQCl9k71?= =?iso-8859-1?q?/Z7x1A6zSn64eVUd4LnjTjpc0l3+GdXnQRGah3JP6mu0oiTQXeWL1cP+fgfP?= =?iso-8859-1?q?FTacelC24loy8HeUPWO9Kmv9Co+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= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190227_004654_930297_4CDDB0BE X-CRM114-Status: GOOD ( 12.05 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 still some issue, so system controller does NOT expose them for now, they could 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/dts/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 / { 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"; + #thermal-sensor-cells = <1>; + imx,sensor-resource-id = ; + }; }; timer { @@ -443,4 +450,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>; + }; + }; + }; + }; };