From patchwork Wed Sep 18 10:32:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13806791 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2127.outbound.protection.outlook.com [40.107.237.127]) (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 4C1E917B401; Wed, 18 Sep 2024 10:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.127 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726655564; cv=fail; b=Nry/z2Q6OcI77oS+Wqi/61GNH8kilakYBNFpu+amBXn6TT+5oVl8fIngumL3LpMtQHYZgglb6b3PBrVI3lg/R/6JMME55DOLIzKTT4KSpT3Asz/xCant1OrlcPId2/La3AkrYrNmEe1U5zUKrJ2UyyExLsc8uxt2R1SaU70hKgQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726655564; c=relaxed/simple; bh=0dILH6L3dhrGHrl9jjVlagJ6CanFP3F4P45qsN9gkWA=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ez0fljbTkkmhcJgO+zR16syO1Fu80zggDpdXf1RtsuYJ0k2GFLbQ0AbSlBxtXvzJZbme1nm9mVv7AQvg5w8FdZwbMltOx2YT9XJBW3Itxae8xQ8+TL7iHYxBoYGHB+w1x2fTGCo5s8VTxGRc+/B9vTwOLkHavmG9/0laDiG3NIM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com; spf=pass smtp.mailfrom=os.amperecomputing.com; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b=uofj4rqE; arc=fail smtp.client-ip=40.107.237.127 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=os.amperecomputing.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=os.amperecomputing.com header.i=@os.amperecomputing.com header.b="uofj4rqE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=v0IFIXUsJ5h6kNHT0nNfV31ZoYQkdYmyeMvnscyU++KziqC1AyQA/sLBvS3wYkKN1fVhVTO/7iV37QRA+sk+47AIHl9N02GjNF/SW3YYcJMxmd8PDFGv3VzqDXzJzI9kd1uGD15x2GsgKjqn3C8X9FwvjWkssbvVbt6c4OvoJZLOZ3pk8w/gC0TKezHyHZv9SrjUkOcOyds90BK4QescOKEA1aYQIwi+/yOmujVNLSYAkRuUgOtrZ3cM5HeTvCZmtgf+H2xjJ415ZjLVll7OH5/xrRBOe0I/A9dWNNUdZ4/sWFmKnySNd9mFkY+hZ7++YXVQhYuwcUOyIhS0ysgMFA== 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=4LAEuO6t+y/rm83P/tOAmHjHkFbzfaDBCm9h8g6miE4=; b=dtSnyXV+4VseRGwVAyMaKLmhoTPj/h6C3GozqiJbmdpQA5H1P+Gc/G10hWosEFqdNXZAUeSKFim8j8EnAxet5wJlPa7kiVUeRG9M/dH/tFzIp+AC5PBEMNyzAtetHYBm7nZLmx68sZUEDFmVmI7eONnpACMxBl5lFKF0i9HwazMtzjIrvrjpZMr5QvKjTA61fc+aTFIV3DPWYDrfq6RgY6FaLHKYsDrrfMCZLbo3grnLpB+xflD1kIBOwndc97MO0uHpjVuSvcRWwy4EI+J9fHySOHuCiV/HIuMLXzMST03iyx0hJa50Q4gSQ2pOgm4pVRLYUxVfLlkQHQaTAAJCiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4LAEuO6t+y/rm83P/tOAmHjHkFbzfaDBCm9h8g6miE4=; b=uofj4rqEGT761vI3V1acL+HP3RMcKo/2LdpxPqxu33uAO23cttQnSK00+6KNxKFxaJlzgg/+ZQEmEJ7Tt+iCuZKVqQdBGhc7Nunt3/Mapbv+2O3m3xOzD1kXxBEN3uMQwCdm3qTTt5t+5QgRAQNUeP/mEK2wAMoJd4pUhowdSbg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) by SA1PR01MB6735.prod.exchangelabs.com (2603:10b6:806:18b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.25; Wed, 18 Sep 2024 10:32:39 +0000 Received: from BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09]) by BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09%4]) with mapi id 15.20.7962.022; Wed, 18 Sep 2024 10:32:38 +0000 From: Chanh Nguyen To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen , Khanh Pham , Chanh Nguyen Subject: [PATCH] dt-bindings: hwmon: Add adt7462 Date: Wed, 18 Sep 2024 10:32:12 +0000 Message-ID: <20240918103212.591204-1-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: SI2P153CA0035.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::14) To BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL3PR01MB7057:EE_|SA1PR01MB6735:EE_ X-MS-Office365-Filtering-Correlation-Id: 93802824-f29d-4a66-2bc1-08dcd7cd37a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: ZeAyDkDmDSj7nt9XWltBQTRtN4/UhferiFX9wLL2iAbzxM2ANVUAlHXhqtIPPnnQ0GzZkt+BJflXJIP/TxiUaoVNnZizCvhnqJmRNiNZzeW1eSCtwUnO5gKvSU/h7NkikOfgg5VPkSKIY5VDzJldy1QWoqRsGMxNIH49gAXkxuLB8hAqbqNFxHEa7zPDnir3A2QuxzHLgEQrmx/QP3vMLv6vQBDgnRlVNhPCGijU5x6ufJJnaITXZ/KJXP6dkf81T2FVqysaY0yAueoHjfGL2MalM+wvHT01nbvoiyP9UM3fyBWvLWu9k5tFwduk5ab8Z81spcsUKZthYNenRMC9yJCsqIa7ell+IvSxgwLnAf8nwSHHSLtdAVUOUI6zconeiuWn6AWbWkdJO/Mlx7sBpx0zeMcfz+2iN+uy5jS05A43FDjwIF7VYV77Onc94B/9QOVXAi/Pyfpsu2Vq3WhMKM2sourunYE6dBN3vWuWhpYEZU8LyUfCDo4O9kM/0MG7M9a8ePbtY1AQK/9fmitMffRS4lbHJfAublSD8G8GQI805XwrCBoAqNBr7LuhsPG/ER7a0ekv80hyuzfgrjpCbNTbPj0AD5KWBc8kVmPJCICeXzqrNEmwQx1/FI+fbsMl6euuuZ4yEbkzgbBnoLxtVhC8D3OvsWvXeifcLDb/nEFiyK9cV0UzBh1h7xGSkegohL7EGPnWhHgIfn0fgxeTsNnz/Tyo2RL9EN+ZBBe2iN9RKzZMZInsnwf+83Xkh5RHMMNjavcgfzPGiNPbKzohi7CU1IiU+fiuHXXhqEoIIsOjHlCpxRwNLtbIASW8wMK/2yevPJJBz54SahYpNtQBKsaFWYr43NEbbAcXZA1/sNt7ryeNpoNvM5i6Fe5O4DQlOqcnM478S+rwQ8wRKzPL/M+GSVETxKm1WwjF3oTcVn5PHSDuSuhP9t2bkpANk9TfDVgyX547+He42s7Oj5SDtq1cuzDw6ifPQ1pSRyFP+N7h72yiYR5oIGchVJ0Ofes8jdY84dvZCHKn5A8FOdcYte3axrcL/ONIipHBsNZbPZCXZrEG4h1gL4MS0cQ3ufM68Oj74CMjbw45P3lCEuXA1V8d4OVZG4PdqR/cozpovXFPihCAOnFQ3yCriKuvWAJGwzhR3IYXNnuKRZW6oDcgR6Vim+dbli+NqkOpuwB8VmBQnFor44yvD5lgXLqrPjEYg02LJA3QoFN1G6+n5QoLnH1fHZmfFke4bq+rGpXasLAr0qB4zL6dE+25OSxweK3ws2J8CsGYIpL5XX7cZvi1wBZHVdQxwqHBv6RCvdiLt3/xlElwMJKGcvLtNEQ0I4qsPEb0DfEsdQnbhexaFAwol5yUlZf6EpDSmPTp9YVwT3u+2SM8TzPwewHEDdQqfkhs X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR01MB7057.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSp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x8tdFiWLCxF3jKE/UXdFOtjGz1PYg7MasIwddMaGRWLrJRVnYaGMKfHDEzFHnfeANZCpMTK3RN5O7bfFDbAiAG4PRz1xPVjdYg8Xn568KHQ+doXt+vmDkwczLj31k9tearuvVv2gy3fZrQsyqtIIY+9bb1BykU3oadrsajfh/a7Go5cbPnLJKE9+ZLEQB7SgHEt+//twn+wma0g7uBOnWhkUPfBtTk8/lN//CKagiFNLWmiL99Iz1GZoDQK9olxobHVEzzj0/S8gcBLexs2mmUbham4N3psVfPphzMAJ2LZq/MCJ2xd0v6qSmH3ZPvErb6Q6lepKbVS/X+nDSlJ/PJZ7eCP6FdzrXTOD6dAnuQ9plPRCDI7BAFkg1ZaZuYdUYrii8LXNFEb6jV1FVGQRnIM4oQEwrGhyuXT2Z97eSC85U++PrA9zR0eIq48Bka7KEukHNzueCwLPNB3onO8nxz7PrqvG18XQj3k8BXfA6z+kfA5W5qnmuZWug3aa/OgOyZ5JI9jNbCtvsxGvgF5JtR7ZCTWImV5wi2Uu5sLQQgMPM62zfrse7Z6M8IlFc= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93802824-f29d-4a66-2bc1-08dcd7cd37a5 X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7057.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2024 10:32:38.8694 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: voDv3ar3gdzMzfyEX8VtEjLcY8n4MNXfRIy7Cf4N4XvDR1VfiSsCxmzBt+UqF3kqEnys4vVKBR6l9q50lyV44KLoCwj673t9Njv+VJQss3mfJndFzhzbl9lJSbNudyk9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB6735 Add device tree binding and example for adt7462 device. Signed-off-by: Chanh Nguyen --- .../bindings/hwmon/onnn,adt7462.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/onnn,adt7462.yaml diff --git a/Documentation/devicetree/bindings/hwmon/onnn,adt7462.yaml b/Documentation/devicetree/bindings/hwmon/onnn,adt7462.yaml new file mode 100644 index 000000000000..4a980cca419a --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/onnn,adt7462.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/onnn,adt7462.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ON Semiconductor ADT7462 Temperature, Voltage Monitor and Fan Controller + +maintainers: + - Chanh Nguyen + +description: | + The ADT7462 has temperature monitors, voltage monitors and multiple PWN Fan + controllers. + + The ADT7462 supports monitoring and controlling up to four PWM Fan Drive + Outputs and eight TACH Inputs Measures. The ADT7462 supports reading a single + on chip temperature sensor and three remote temperature sensors. There are up + to 13 voltage monitoring inputs, ranging from 12V to 0.9V. + + Datasheets: + https://www.onsemi.com/pub/Collateral/ADT7462-D.PDF + +properties: + compatible: + const: onnn,adt7462 + + reg: + maxItems: 1 + + resets: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hwmon@5c { + compatible = "onnn,adt7462"; + reg = <0x5c>; + resets = <&reset 0>; + }; + };