Message ID | 20241212-imx91tmu-v3-0-85e756b29437@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2042.outbound.protection.outlook.com [40.107.21.42]) (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 83E18187FEC for <imx@lists.linux.dev>; Thu, 12 Dec 2024 21:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734037232; cv=fail; b=eh2Boqzqh1PzEbW50bVWGTcWMqF8PN2ZXMSm4EGVw2owOrii33I8aUBMTFRgkV1LCD9rjDIqbk0Q3+AnL1YxVQaoIE9b8k/PVpolHcZx1tpv5lphjcp5ijDL+iRgpKjekZCKkN0SMuiBAy1P0LF8HegF178jxVyO2m8zKg+wuvI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734037232; c=relaxed/simple; bh=EDKvmxd5IyI/TmIpI8gga9zx6nKXYkqwB8iYGkX3HOE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=WbAdC0p+ieVlB1/W2mKSgg+LyuFSYhHysaICBFnj64zaUpwXDmnHHRAaE2faq7JTCxAYjOxEbUWFlsGu1eFC6UkdrJYHNXVDtMsp7JfXIVn4wOZLs7y7jTS4KtmDHHmRAQmOC+B2D30SIX2uhbdRxljYLDraFaACw8QG4D/0L+M= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=l+YL9s9E; arc=fail smtp.client-ip=40.107.21.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="l+YL9s9E" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JfyF++CzWwJEhXQ+qsh/YNjcLmu7sdL7xMzO5S+xgK9yxCm4DRa+ig3CM88F1sLIuqCPIcRRiDUPNrfCj5SSv0AdGE8x0setZHSBtv4NjILkFWhllI5s9pgFp2c/mEOasoDrEf00ISGVZhpjigbNSMegNijUOTXzP5MaOzPmpvBmJJZR4Pqk8eECVz3TjA4TF0f1XQDkw6q/SP/IalQf2TH0Eg8RykSgWWvVk4XGG/tHPPgbU+JhnOMgxXpDriahjJHSqNFdzbnlTjDBvU0N3oEog8wJ9EXkN45INBSRmSlSc99AsY4U3aD23G5ebMxU1ClA4npEVfgdRPwjsRBXAw== 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=Zk/ktrBE9344DCN24CHnPNVT0V2mBR0ugmzx1qOfEZA=; b=oEqiWJ1HyCk677XPVwC0VgEL8/3kaS6zurne53Wa6uw7pDTr9dSuLWB8LrSl04dxj/DLuoOhGOBEFKt6+vGBB8DZ+obWteU/3Q0NkcFlgwnSojW1GDxrT86f1tXyhJJHBxesm4eue/dEhot94gF2GxjZ23L6RV45M3cukTVqxAWORUl4rX60RjESm8uuZ4fUkafKOuaZwM8PkaiKkhS8w8wo42qh3UeOreLcWFXTRvcm0eutj26Ytw5WUHCypCJC1VKVhRQ2yVYoZHXNhH7f2ZbjUnZvAYgeavpbmOZxBNTBPtNtwxgrIOxZjweJcxc+URhC3kNuhvpt3Jj2ldTQmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=Zk/ktrBE9344DCN24CHnPNVT0V2mBR0ugmzx1qOfEZA=; b=l+YL9s9EaHpIdnMcN3JaMtZR4fJIMjXci/fbojeRIfqWj8aWDPrksNig9r9KMg14IDjNHAy3TWkdjp6JwomFzaQL6yaq5mI7lUKc0PaA6uDnylQNQReT+ZSbfooys++4Lbve1aURk3u9hO06YI8aG49BEauqMc21TBhN7CSe4z7NqfWnyhlvFplVwKx2Z43YA6LhUZEM5NGltKx+SxxV6dxDT8nVxMYO5N9Azw1gva6gAk2wf903SrVKLDkrOKeLWBsbWXlfLamt7Uq7sPpvdu50LpUjVlvuV1hMEoh2qgQYaCFBsN319naPaUHtAHSRTWr2DiQOtbWhiOS+FDmMUA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB8269.eurprd04.prod.outlook.com (2603:10a6:102:1c4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.17; Thu, 12 Dec 2024 21:00:23 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8230.010; Thu, 12 Dec 2024 21:00:23 +0000 From: Frank Li <Frank.Li@nxp.com> Subject: [PATCH v3 0/2] thermal: imx91: Add support for i.MX91 thermal monitoring unit Date: Thu, 12 Dec 2024 15:59:58 -0500 Message-Id: <20241212-imx91tmu-v3-0-85e756b29437@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAM9OW2cC/22MvQ6DIBRGX8XcuTRwkYid+h5NBwJY7+BPwBIbw 7sXXerQ8Xz5ztkg+kA+wq3aIPhEkaaxgLxUYHszvjwjVxiQYy2Qt4yGtRXL8GamQ9NYXqPTDsp 9Dr6j9Ug9noV7issUPkc5iX39E0mCcdZo1VolddNJcR/X+WqnAfZEwpMm+EnDoiku0RhXO639T 8s5fwERaB9A1QAAAA== To: "Rafael J. Wysocki" <rafael@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Zhang Rui <rui.zhang@intel.com>, Lukasz Luba <lukasz.luba@arm.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Pengfei Li <pengfei.li_1@nxp.com>, Marco Felsch <m.felsch@pengutronix.de> Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li <Frank.Li@nxp.com>, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1734037218; l=1907; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=EDKvmxd5IyI/TmIpI8gga9zx6nKXYkqwB8iYGkX3HOE=; b=t3ha4XPKbiZuM+RMcWONIyCnXH6Zg85mkFOJBlkS4sEXZ/VzCEX7yEXvfK0O4hWsz5EkUmZq2 lhkkkJTEzfOBk2P59K/shimgDriOTJEE1Zk2DrBpYsqb7iq+ArNKUgh X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR05CA0025.namprd05.prod.outlook.com (2603:10b6:a03:254::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB8269:EE_ X-MS-Office365-Filtering-Correlation-Id: 151d4119-51b6-4089-f849-08dd1aeffece X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|10070799003|7416014|376014|52116014|366016|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?7i6Rrzo4sh8daOEi/U9ZT3Evy8fK/p7?= =?utf-8?q?Zyqhlku1i0U6PaeiXs9gua5l7R+KS5HAdI6ZcB+aZiXpfxnHtsEYI43j4bqlDlrq/?= =?utf-8?q?Y5nnWVgGURbh9CBgwon+AA+LxLD+jAq0Had4JIa712X7Q96vVkJiBjV3Do22hSo/W?= =?utf-8?q?hR7dlhZRajeAC+0g+Ypdd6lPifJ2b8OYYilwDK9YSRgu9LKBy0dkKn+MWiq4ZDoBw?= =?utf-8?q?Ef1EnlWododmgFulaWaddWVWjjKmY+2CiX2WBQaMn3lOvMj2QT1hEFSYX9qVUcs9L?= =?utf-8?q?GREMp2FS7Jd0u3pCirBUsIPljzzGrnbItTZyRotpKlJycC1lby+DVkj0szsNpWt7o?= =?utf-8?q?XlP+ymZpIqW8NZYoHG9vyViv3nUSkUVxbV0bHkQEM+1cOhoOC6RX1suhfRfzWX3z3?= =?utf-8?q?zP+lEQTFzjysv21s+HYciAmL2mp9xkvKY5ko2W3ykvJPgXaCgYn1D2WRF+cK4fxn5?= =?utf-8?q?Xe65cDqlBsjV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z?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(10070799003)(7416014)(376014)(52116014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Y1dI6b7Ghk17OU+CzOtYZENa77RR?= =?utf-8?q?sU/fKadr468DYrgZCva+p1IKDPehNvn704kwjAem40EqIy/rlV7OWgl9ZopuiMb8P?= =?utf-8?q?+g4HmvB3iVEznDrFCn7sVu/gcsLBfiXNjL/xctEbwDuWg7e/kkjpiXasAajW2lAfN?= =?utf-8?q?4OktHHASYzfY4XmIpEhBZYqU7pRUILrRW5SrKVAWRqUxqcvYsm7xPBw63IkngWDXp?= =?utf-8?q?eU+0GRPtbeRhypSzDluJfNKm82KG2jTWkqKwZFbZ7nwOFTdd3wsCMxete53rxZvx8?= =?utf-8?q?/7yfK0wqHezvhZAY4xKgVzRA6Cuxs3UltL1K08TACzufH/M4kWEpjVLIXnAFQB4SN?= =?utf-8?q?kOMWMY5kFkpdTop3SK625bu8AE2LCykjJ93+q5sEB8Ym6CGJJ5ctisoNUYDiM4XJi?= =?utf-8?q?3YL7m5EBWtl1x3CeQInsTNUMOgYaCaui/H30TBtePa8Fh7sssHYKRliAW6GYIuF9E?= =?utf-8?q?duSrVFNG7lLYf0YAe2fPZMGFg/t2dqhD5ELCaXmnbePU37yTVltDQjdY2PJ42faAH?= =?utf-8?q?evN+r8V6jou+QXRCHFavErIAV2kqAEaYCaZxq9knZOFRkQ8FnPFi4zwmEZ96ho/Ju?= =?utf-8?q?Xu0ZxgJzVFxqQLaEJNm3XS4yScL7t3q18DIOXyWqnQc46rErgkjMASpzcn6buEHry?= =?utf-8?q?XC/UcOd7yG8UdW5a/P/hMqFOKDsbBaiIGANICTw1mL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zsX2+uiZEIZs?= =?utf-8?q?cYvpo+eCV/J?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 151d4119-51b6-4089-f849-08dd1aeffece X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2024 21:00:23.2196 (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: eblO9kEWN7Bpr6mEOfhs8LxM5QYjiDirEzwffr6Yr9N0kjIZWoNgli5WFWyrj2s4eVAt8p7+1YVwWk9pe2q0/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8269 |
Series |
thermal: imx91: Add support for i.MX91 thermal monitoring unit
|
expand
|
- Add binding doc - Add imx91 thermal driver - dts part wait for https://lore.kernel.org/imx/Z04W5chGq5TitB9f@lizhi-Precision-Tower-5810/ merged, so not in this serial. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- Changes in v3: - add ref thermal-sensor - restrict #thermal-sensor-cells to 0 only - Change to unevaluatedProperties - add IMX91_TMU_ prefix for register define - remove unused register define - fix missed pm_runtime_put() at error path in imx91_tmu_get_temp() - use dev variable in probe function - use pm_runtime_set_active() in probe - move START to imx91_tmu_get_temp() - use DEFINE_RUNTIME_DEV_PM_OPS() - keep set reset value because there are not sw "reset" bit in controller, uboot may change and enable tmu. - Link to v2: https://lore.kernel.org/r/20241210-imx91tmu-v2-0-5032aad4d88e@nxp.com Changes in v2: - use low case for hexvalue - combine struct imx91_tmu and tmu_sensor - simplify imx91_tmu_start() and imx91_tmu_enable() - use s16 for imx91_tmu_get_temp(), which may negative value - use reverse christmas tree style - use run time pm - use oneshot to sample temp - register thermal zone after hardware init - Link to v1: https://lore.kernel.org/r/20241209-imx91tmu-v1-0-7859c5387f31@nxp.com --- Pengfei Li (2): dt-bindings: thermal: fsl,imx91-tmu: add bindings for NXP i.MX91 thermal module thermal: imx91: Add support for i.MX91 thermal monitoring unit .../devicetree/bindings/thermal/fsl,imx91-tmu.yaml | 67 ++++++ drivers/thermal/Kconfig | 10 + drivers/thermal/Makefile | 1 + drivers/thermal/imx91_thermal.c | 263 +++++++++++++++++++++ 4 files changed, 341 insertions(+) --- base-commit: d07c576946b2bc440d6d2073998023e8a0bd7568 change-id: 20241209-imx91tmu-af2a7c042d8d Best regards, --- Frank Li <Frank.Li@nxp.com>