From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.61.70 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793622209; b=FBeRZuGg3wdYmk9T74P1L1/ZLnCaNY4fzKeqBEiPzpaddEk6Jg46emg4NECqw2mDnpNj I/2iJEY4b7b9ZgYSQSSQ0+Qu7b7ifTsF7kImiARD2hHlp3GrlgS+n3C366OJNjWsQ9ZnM +cn9k/UKAPAA0C3F1Xxv4B+hv/qGiWLYUhoxLnCteZw0v4w91A4YkAXoibhxNELZmjQzx bigvcNXctgKwEd8IBOETjDpISD6eifLesju0hc9VFSqKfHSgSM15fijDdf2wafukLmi8+ CNcx/3SN/R8Z9BAAD5u1iBQe4E145pXdofgxUyTIcqnC5vOUuCkFRfC0LCEJI+osiEQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793622209; h=DMARC-Filter:DKIM-Signature:Received:Received: X-MS-Exchange-Authentication-Results:Received-SPF:Received:Received: Received:Received:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding:Content-Type: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=mEVijfwQXMGRpkR4jQ7zecnwR3MLBwPWs3hjBzf1iJk=; b=gWE85ImYgAj5zC2r9kHlzm6NWWddgpWFJLhgFwfdF5v/sX+A5UUjOqRr/6TMmg3nzfaS zb6DSNZtSXiuZHFUJae0LyqZFBA2i60OBJVdsU6048ZlAFdAmV4qF/j/D/HQBPqz7+LsS KrfmNO9R1iJWbYAM8CpLt8BDMRmdLEfHSbpahFYBu2vietxtQK4Koio1ddQyjEjpMyE37 +hGcKCIg+uJTXKg1x5a3I5h78h6ttkU1w1NF33ADmiTjH8n4fuvIXYXLQ0t3tm8pWMJyU O32Y7xcYprj/1Owc72SMrAwCPxigidxVzU1/F8+cqBfdORyxC59PnnIiS/aoYLF5tYA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=anyJ9zVg; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.61.70 Received: from DM1PR04CU001.outbound.protection.outlook.com (mail-centralusazon11010070.outbound.protection.outlook.com [52.101.61.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7B9D606A793; Mon, 2 Nov 2026 12:23:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7B9D606A793 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=anyJ9zVg ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=K0OPO9c8KdJzBZj1cRLR68Jyoudi+hRDlS8hjrqvQd+I73ezi7MNXNsNUVF0YP7H7wbl6xIcGuwrL0lp8V8MqDX2Gy7eg/I3wBHqdZmI4mj/YVW97niUily1nAqSERY6jiyzl1HYF9/FRUFjjY/MpzHzRgRnXnZrK8JwNhawcbTKH9GWT32g1p7MSnA4216HQ22aA9RRmCr0R9lcZ+cAMjCQCWeGAVsQXcCnH0CHbJazSysEIrbbp4dIFNtZonM6xFd8kPdtwx79+6A7W6Ivv7ygmg5xKqF12nqh4dBuWnFV63nT+eVusw/eaagmFRI/Y+bH9wtUlFV775d/CyAJlw== 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=mEVijfwQXMGRpkR4jQ7zecnwR3MLBwPWs3hjBzf1iJk=; b=L6j6vIEbz3DCJo+JrhfUrPwWXLJ5f9u2uZry9T73L0QFI3azHlN2UiKbKOK9IYRpsz+8dE2mYyqZFAkzLQtKjANRi4cgWy9/rLNNucYQpDvSmfH1ApCfB6eWv2N49X+wRVVQ4XfH4h8Kjt+cB4/jEN1Q8hfCJYHsOjwm7LGiPnT9n0f6kvnX0vYW8MtYhul6eq5iRkderucUlaR3anLWUM2NNo69BgzPk/NC3fkW0EbAfyqCepIz4IDUw9CWqdJqLNNBcKHW8PgxmyjHbS+sCg0Zf51VwCaGnkKjnEU3xvruQAGdL3ecaJAOSqNedtvP49gs9lI4kSUj8qeIWC4Nzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mEVijfwQXMGRpkR4jQ7zecnwR3MLBwPWs3hjBzf1iJk=; b=anyJ9zVg5bl/BHq73drqxWudEBZ3H6SiKTzgO6iwk7CD3f50EKPxjE1aJhrlWn93/Diu7RcIC/M2Va00YOj6GtLwDbNqKCBZxTWshtbObkz9PRi2PwGGtUdmXxjVsF6wVb7+fRcCUJ2qS2A6KQisWNXRl5Wp9XZIH1NvuQf8dkw= Received: from BN9PR03CA0725.namprd03.prod.outlook.com (2603:10b6:408:110::10) by LV9PR12MB9783.namprd12.prod.outlook.com (2603:10b6:408:2e8::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.569.12; Mon, 2 Nov 2026 12:21:20 +0000 Received: from BN3PEPF00022BC2.namprd05.prod.outlook.com (2603:10b6:408:110:cafe::67) by BN9PR03CA0725.outlook.office365.com (2603:10b6:408:110::10) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.496.5 via Frontend Transport; Mon, 2 Nov 2026 12:21:20 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by BN3PEPF00022BC2.mail.protection.outlook.com (10.167.248.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.592.5 via Frontend Transport; Mon, 2 Nov 2026 12:21:20 +0000 Received: from satlexmb10.amd.com (10.181.42.219) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Mon, 2 Nov 2026 06:21:20 -0600 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.53; Mon, 2 Nov 2026 06:21:19 -0600 Received: from xhdakumarma40.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.53 via Frontend Transport; Mon, 2 Nov 2026 06:21:16 -0600 From: Amit Kumar Mahapatra To: Jonathan Cameron , Michal Simek , Sai Krishna Potthuri , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: , , , , , Amit Kumar Mahapatra Subject: [PATCH 0/6] iio: adc: versal-sysmon: Add OT alarm, shutdown and thermal zone support Date: Mon, 2 Nov 2026 17:51:06 +0530 Message-ID: <20261102122112.1723130-1-amit.kumar-mahapatra@amd.com> X-Mailer: git-send-email 2.44.4 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BC2:EE_|LV9PR12MB9783:EE_ X-MS-Office365-Filtering-Correlation-Id: 832816ca-70a8-46a4-15fd-08df38dbcd7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700016|376014|23010399003|7416014|1800799024|10067099003|18002099003|56012099006|11063799006|261021121427099003|261026121527099003|261026140227099003|261022105027099003|261009221227099003|261009223027099003|261021123027099003|261028144727099003; X-Microsoft-Antispam-Message-Info: /3vGhk4e1M7K5VZgDgpX/DpWE86Dr039o1Yf7p+nGn6Gd6K7X53mUCYR+v2Uh/VTHA+NHvvnemG+b0zPlWIYU+gLzUEbpVzErRhzE4OjXeW6XB7wDMN+PO3Z7PF1IL9N4lM7w9PSRtgncfADJrZiPx9NO7VLsawn6wzvRUTYEr3B1xTlWnKNyZguLZa8k+wg4ZhOVl58kDwjSFiXU5IqsEF8gdqH6I0MOFG7g4W4A/3zPvOV7XQuBzIdIpC9KPuk8gk8RrOCUyG0HQoHkousR1kjWfxh+L1GPa2YPAHM8AfWMH4w/i69kC5RpEo9gpXE646R+CB3kZjA7mYIW62820Wz0Zigydsw5IYt4Ps+1gwSDgQ2XbEMO7AHOza0yQx8eenQu5Ptym7OFC5N1f6yKRNlbmqbzXqONEmraNM7kOYcEZJ8Y6URHAbA+LCTXq8IXfKfhFeQhMumO5GMd04WN7bcKSXsoYcj9oO2+AAlPe7wfGjSYXRmA5/z1NAXBtmzhQYX4RMVirS3a99UjrTx2gowuk3vU1OC/oQalZZnEUOXXObHK7mzpS28ZOmk5xX3Ycl6RhamtiCV5kS3IAjaYnJRsvC3+/4mHo4UODvb68WiMLwsR2JfORVZHNkesVz2wxpafonILxW889yzesPHlhUF+XfYVzV85g6s6QKQB6GgPCZGkDoytpyMDQTatigXiHAOq5ckt8c0lsU5c24C2g== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb08.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700016)(376014)(23010399003)(7416014)(1800799024)(10067099003)(18002099003)(56012099006)(11063799006)(261021121427099003)(261026121527099003)(261026140227099003)(261022105027099003)(261009221227099003)(261009223027099003)(261021123027099003)(261028144727099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eKMEUzSFcTMKtFR8x7JXZvye4TnWJWGAE9rTlMjb3945+4S00eBfi1RlQ+UbahOV+5KXyFoRb74/WJGSJaO/YIfaf82/tF55bl9OxcuhGOJW9jeJMnXtdFf1m4v2f18J+/2j3FfA/2a7HK3kikdeIijF2xBD04Lq2LQsjvOsyBcokWkihv1oVbLPo2SNfDElZfFxVb1zwSKF50aAYviY8639nrjG9ml4tglW5UWS5OfxlHEVf0i2F7OyJcjSjvgKzK3DhnmotkgkyNB6z6JUTq9tQCWQa/2Sh75s6B9RZM8ChRnV1zYGr91OBKnVKOFQk2QSFW9GLlCJBSmHDxQPlAmNRss9F93KSCpUpNoAX+tXMBwf6fNUyeaw7Z7/gRgsCYJhM+idtge4Fx5sOEhBDMDu9fonIHDlNBsV/nLDFV1NQR6uPMnHR7nREKlI0WKJ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2026 12:21:20.5860 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 832816ca-70a8-46a4-15fd-08df38dbcd7b X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF00022BC2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV9PR12MB9783 This patch series: - Fixes a race between the interrupt teardown and the interrupt handler - Validates the temperature hysteresis written by userspace and read from hardware at probe - Adds a .shutdown callback so the SysMon alarm interrupts are disabled when the system shuts down or kexecs into another kernel - Adds the over-temperature (OT) alarm as an event-only channel labelled "ot", alongside the existing device temperature event - Updates the Versal SysMon maintainers: removes Salih Erim, who is no longer with AMD, and adds myself - Describes the SysMon in the Versal NET device tree, with a thermal zone on its device temperature - Adds thermal zone support for the SysMon using the existing generic-adc-thermal driver Amit Kumar Mahapatra (6): iio: adc: versal-sysmon: fix race in interrupt teardown iio: adc: versal-sysmon: validate temperature hysteresis iio: adc: versal-sysmon: disable interrupts on shutdown iio: adc: versal-sysmon: add over-temperature alarm events arm64: versal-net: Add SysMon and thermal zone MAINTAINERS: update Versal SysMon maintainers MAINTAINERS | 2 +- arch/arm64/boot/dts/xilinx/versal-net.dtsi | 29 ++++ drivers/iio/adc/versal-sysmon-core.c | 158 +++++++++++++++++---- drivers/iio/adc/versal-sysmon.c | 6 + drivers/iio/adc/versal-sysmon.h | 15 +- 5 files changed, 182 insertions(+), 28 deletions(-) base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68 -- 2.34.1