From patchwork Mon Sep 2 10:19:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13786995 Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011048.outbound.protection.outlook.com [52.101.70.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CF50184542 for ; Mon, 2 Sep 2024 10:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.70.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725271855; cv=fail; b=B+YMcIYwPzsmfjJYxTTjSBvQ9jFM19n0vQkUnhIF7c9dJJ1kcRZEMJlfB3gdofsIQmkhjxDE5QCsi8a3/zDlmMuIUfpHZZFrlpo5QM2TX8xSJBsQ6QJOXlNBJMdbMC/iFTISQiybOB5pNEnZ50aV+lfn/DEtAy0A5G4vMDnCsJM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725271855; c=relaxed/simple; bh=nvP/Z+rCPMhlTH5S/iqBfLUS2swaGru+WNFCuHfvKuw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=IyZQl8JQOGNeaZSPv/HvKMk3hzP0lmWp26y4MXVAdKmYoxmh2Of0M7cU2Vym2TCCMo2ZyV+dwwon2ORXZwZYXUPQ1w2q2suU2rhQ9B8NfNOKnZua3i2UZeyVCExFuludyVxegBaPQy0fNHJ8LQ2JsqFplPKO0OhZ0b8KnPd5Aec= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=uCMbSUHW; arc=fail smtp.client-ip=52.101.70.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="uCMbSUHW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LPRLZiU1GRd9Ta9ZgOaf4M0nNTMxw6nbdsF25K6nvyuL2Zym8Eo2oeb8Irf4SBl8s7e+4xH8DiJX3Oxfd6K5/3rlV5gWhPGDtqzJYImxV4kF1uhplCb5e2OD9vXbPlxLoxDUfguSIc7PpS5wLcK14qWi9g9+O84qgjj2TxJhKwbv086om1UAP/F7RVYJF5xZLTF9z+jnRfXCcTTXRN258WTEtoYbFmePykPUp0e5OqBXpPhDEMDXnm8lrPC6PFK7iiZVtzAZdIIhlPlcbubPwB9oftUTG+wg+UtmCe7FEbz/aynUIxSssl/8Kvh1uYdPFAxU5y3QMhQSrZ+jS79KDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QFYdnIftNb6EmSTKPe2WBvrftuWHy+K2KeZBsTQltr4=; b=mpSt1J+XvESo5v5gW4Wmv4gUOABigb1yLcTHBK/giHPNdDhDOf5LTVMJyjoNlOOVD7Wmkv2GhKrGy/WU6ge7yueh6Pazp5+A4lYsmnvl/1Uzgb2CbyhOYf7VaGXSMwDwUzbgoRK84YU54rzJlSNHmTwiy/pxLaEkpdnmPVNWSu1ENGMb8cyOVhmAITIBnEhtm7DIkup5qxB4tMImW+UedLkJL/WlXgu0zOxvGAfkwGRgCS9IMLTh5sIsi1ytyeWt4H/jrm8bpHYU+QfC2QVVhYt/mGE2i+xYhU6+Fpb4dtrlMd3R5xf6E4Sa1QRsxrPd/BHSUtjWzf/x56bmoCabZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QFYdnIftNb6EmSTKPe2WBvrftuWHy+K2KeZBsTQltr4=; b=uCMbSUHWm0hfE8jzpvsq2p+zJ1ByOO5PgxkyZWV9h8Yc7pHVQxr8ljZMVM49nQIFTcCwPFbdppY6+faOTsRakM2m2cvq/bTKrCg5BY90yZXvep6w2iL7Ue/O/v34Z9JPhTaheejyqJfx8gYDBNgSw72LS3EdhXrwDJFMF2e4en9rJt/ZaWE4EpfSJaOeijbasdOEiAb+VwT4STxPlyY4xUg8v3FUXDLiLTm3epuo0DsQy6dS2eWgAyK9/NddGfsSKqA5VtzEf38frAtiuZ46gpSzSQpWCteatAatjjxsheQmuYHpNFcneqKVAabHlC7AAImaquA+Xs9WREN5NQQUHg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by PA1PR04MB10099.eurprd04.prod.outlook.com (2603:10a6:102:45d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Mon, 2 Sep 2024 10:10:50 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.7918.020; Mon, 2 Sep 2024 10:10:50 +0000 From: "Peng Fan (OSS)" Date: Mon, 02 Sep 2024 18:19:26 +0800 Subject: [PATCH 4/7] arm64: dts: freescale: imx95: add anamix temperature thermal zone and cooling node Message-Id: <20240902-imx95-dts-new-v1-4-a1f798f4f746@nxp.com> References: <20240902-imx95-dts-new-v1-0-a1f798f4f746@nxp.com> In-Reply-To: <20240902-imx95-dts-new-v1-0-a1f798f4f746@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725272373; l=1453; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=eaohBRB2Fb4PfzYBAS7o5j/hhfFB2BYaokXf8EKWkPE=; b=UaIXvy8XGcU+wIN9FB8zwr5h82fuW4JPXPmBgUarinFzwsOLq8WzwJMguutpeaJX1iYj+wp6g GBAbVrRwrDIBR1aW+J0/Ax4fe507pCH4rw+Rp9uW/eqIkyglhuX/aA3 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SGXP274CA0021.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::33) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|PA1PR04MB10099:EE_ X-MS-Office365-Filtering-Correlation-Id: 92092129-e17e-4aa4-1c98-08dccb378553 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?VoAS/8UhQvVFpbBIHUUbBgcSRHoxmnC?= =?utf-8?q?L9jy9e+WF0yvHq2ameCTIiR++1FzStakFM4M4GifmeCDHwsfJHXA7IhoaBHlp+lG9?= =?utf-8?q?KSDyhdhweF2tmUjBK4qA2nh9P1/QcwFQTkBwbkSZSulMGje8wXy3aaLaw7I5RRcAk?= =?utf-8?q?mRjDqCnf9FnjTdXbG26qgS5i/hmI+YY7/fWOp5AGWm1KM2dedzn8JSvA3gXsLSSuz?= =?utf-8?q?Dc2Wct9lfKXMLNa12A4YYHi+BDP562XvAjiSLEO7EB6256CyTJYIE5nxevYi+2+DO?= =?utf-8?q?FAq+68V6M2fYMcGllnDcLvOQZoG2el/xdRvLhzS/ARTy+QoYMguDlF7Mjcphkq6Z8?= =?utf-8?q?O54pO84MIPDDuRK2cNJHONhrPN+mCa0lSnk8+mf3duCQXAAqQGPsHLeocpFCOeLka?= =?utf-8?q?BKLYcFlQFMyola8HEkvZxGdYHhWdY0sId0imbkhwsTolPIbpjEX6VD+e3YHR4d3OP?= =?utf-8?q?EDAQix5otmN4BAknWlG+tcD/M8gWKZDMt19tIWcpjjcS4MiXCEmtp9Pk1ikn+Xopb?= =?utf-8?q?WYa9YI7BBGXS8lxsCPI3ky6BTvnm0Obu/RuvmoYvj04aygaVQHcn0l7sL46BtSM9H?= =?utf-8?q?uAc7RbbLhZxAcwYkGCTtd0dloXBTrergyzq49gamP9ZBGOSk0/O1T69Y7NbFY3h4n?= =?utf-8?q?ZKkJYXvgSxEsNQVvWBrKsVmn5wFa/ncWks/kgffIGTPDY9q2KrAdnQVLjMWr+CfkS?= =?utf-8?q?kT8IkvqhK9CoySkTfG6o6ZAWXLKWlprM3jhrL+Y2mWj4td8ZbdtucJl1ItRH1v9SD?= =?utf-8?q?Cb3UakgjGhGoaNZauCxyE/dHG0rvA59VR+nmdMOHpV6rRjxTL8d9cJmC1Js1hCfOy?= =?utf-8?q?DKQP5kw4qO/buPqR30P6usq2QX45dW58Ehf2lri9ECcQk5vHy0a5rt0PpSfSjJPgh?= =?utf-8?q?jjGnyjiSvckRXGnZPbECSXjBdsRuHMiY/Wz4KgXXkE7+1OA3Ue1qX5UMztl0F3WMP?= =?utf-8?q?99OAmcigTF0PMLRiEuoJ3XfvF7ChSOar99p9IJHnOg/HjTkNIIOy7IL//EzKK3AjO?= =?utf-8?q?B1KCHKlT66Wau5H5nXXp8zUYAs23D5v8hNAUt+XKK34GiNgslwafJGNBz5Wz6tvxS?= =?utf-8?q?iF9hLyWHjwslB11ZsyUL3wgrj5ZqOJq/A9w2byNjmLONDX/eBivAE5T1jEfUxf+p6?= =?utf-8?q?dMJ2S2JCBQywPkcWAtt9mlq5L1Ua14dfDnaAYCCls5Dl2YPLENY9Q+73hKs2WY+BE?= =?utf-8?q?dD2BxOn2b8bNk/s4cgDzrPTrFwDGDgRpP4AJfbHuHvB/KZS5ehGUzyLsnsUj9JyxR?= =?utf-8?q?VPLveRv9703lJUp/2rQz+FxxDj3tosAHW1DxgnbN0gcLO5f/mCacQjaH/yWi5uiZB?= =?utf-8?q?7Q8hDDEHpUX4t6DKFJjYBsasSVmqjtQYxQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NRqZHsxidHKFRcqEj8bbzeHqA8t9?= =?utf-8?q?tv9L3ZrVXadSJucA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u15WpwjRuZ0Yzk45QftmW7rDjG/uU8vylqhKNrZluL9kea/a7m7?= =?utf-8?q?e6I0apeeNXWeYSw/tWvFXXt8ZZCwOHJ6S95T0mDKRajq3VgcqEIPd3XpOo+fRMdGL?= =?utf-8?q?tu2KzxRZVgjPjJcyvRj5yo1lKrSCXdtJ8Q/mdKal/2PajkcN11Etcbd4csoBH0EoH?= =?utf-8?q?q2nawfIglZrMcX5cw/qzzYyWHj6cPBB+1I3kiMUJimigWxGie1yyorJuAsW2N9K6R?= =?utf-8?q?MAnslXOstCYBLg06bwMSJVhxI/UxfW4XK7hV08V0Oj/0hym5/rYin08BLOnp2ibH3?= =?utf-8?q?UzCUEM9viPrhrmkQf8UnPVZ5DOKdr6M7oy2jJXzSrEG5McKBjmbNeg0Kt3HigvPeg?= =?utf-8?q?6Ep55o2zPjjRVrNEz0/+sKXTi+MW2iP7QTgGPeg3Sr2tHAyyWViR2FMMe1JtnNIAa?= =?utf-8?q?np2DM9iSckOOD/6xmBw8YnXQo/aWVdHhVKY7YIZpoaA9CTHuvGXq8R11Y3PymA4Og?= =?utf-8?q?9IblUzbbqhiREbP9UZCda1YrURQOmZoAV4yqkicX97TXSe4V5JDKkM3kageELG5oZ?= =?utf-8?q?L1BpL7h1ObFpMQU9TbaBF4V14MGjmvYJpU4csgm+5oT3uiwfIqXHckyH7nl/GjdJW?= =?utf-8?q?qGQSJ8aZhdrQ?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92092129-e17e-4aa4-1c98-08dccb378553 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 10:10:50.1230 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XRXzfGQA2Zzr7yaLEATsAdvUHXPzp7HksZMXSNolDxmwbW91tvbuBoIXM83mJWlM2UkLvEwJHe8pIiM+0+QzGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10099 From: Peng Fan i.MX95 has two on-chip temperature sensors, one is inside anamix block. This is to add the anamix temperature thermal zone and its cooling device. Signed-off-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx95.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi index 2cba7a889030..d031b9548aaf 100644 --- a/arch/arm64/boot/dts/freescale/imx95.dtsi +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi @@ -372,6 +372,38 @@ map0 { }; }; }; + + ana-thermal { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&scmi_sensor 0>; + trips { + ana_alert: trip0 { + temperature = <105000>; + hysteresis = <2000>; + type = "passive"; + }; + + ana_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&ana_alert>; + cooling-device = + <&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A55_5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; }; psci {