From patchwork Fri Sep 6 06:14:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 1981546 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=fwmfqzsl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-100681-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X0Qtw6bPxz1yh1 for ; Fri, 6 Sep 2024 16:15:04 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B6F571C23627 for ; Fri, 6 Sep 2024 06:15:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6C4C13C9A6; Fri, 6 Sep 2024 06:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="fwmfqzsl" X-Original-To: devicetree@vger.kernel.org Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazon11010064.outbound.protection.outlook.com [52.101.128.64]) (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 B8A7D17BBE; Fri, 6 Sep 2024 06:14:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.128.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725603297; cv=fail; b=YciRJrlIVlx9MD8+xe8UWI/1hy2jgA2HPu18rLmnKS96dIcOmIm+ntooRR33fG06CPmJx92nm/WIDFqFWC6H0xY47uYRkYyoiyo1qNPoX/rz+C6ue66zzKCCQiuCcVO8Pm1qCiT+n7/M4BDyqMI0KpqW789Ckq0PKzwDPM2fZac= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725603297; c=relaxed/simple; bh=s8gt+Wd8Y2tjSFF3oAuJL4z7oyOFNEy+yaFNbuUzeC4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=MhrpxM5KVkg310aiDhIjhCS1X7ud7s20Sdgx403i6q0ekg+uVkP4wLKXFl2FRrWmk5RYNShbj5QTsBrbuMDzdTTNvuzVro4cASIu2nxkV/oGoQm1tgtEC4RUTA5fD0BtdjeXRZTtyrvvALb3RSgEtN203o1cDG3AWZcvN46gOZI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=fwmfqzsl; arc=fail smtp.client-ip=52.101.128.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oSyv8nJK0X0GFRF0VToSH6r+e1LfU8tOxHWSd1MABm5A27E8dndv17+rKybllSCWOcObNtWz7Q+e40gpK3a8UbnHYIHkE1mQLOwJBVaYxIXnb5ANYz0UmbaIsRI6VtIaUq47DGaxGU5qaToDvvvvLrWr8W4sweQ3V44sJVOCKrFaGfHmsqvRcWvJB9qXNM9hKFIwYT+qlcZNzM6BiNXBXwmOWMt6EY9qMyanxxZUzPRELdq3VcVMwPlTv6p8Z4WTuoYdntoofRBff5vWXz7ZjKYQ6EMkD0xfK2DTkE9r/1kt6GSW1+JrEuvC9qJTWt+abqC/2EkiUo8wScQ11UDiNg== 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=b8mBh52ePo0aBwypvOcm0NjdEbgAMwnjQY420EsYpmc=; b=fSg3ociafHDyJ96i80Z8ShGmC+ZS969nhO7/0SpwG8fpGaM/iKZJ1O5VV/KN5w0Bhkg/fsHOtxjo1QTDNxawfDQrxeK0KMN73zt8BGR3e1L21/bT0ZsKhJAsp3g4kIfjCuWNYaf+IqgK7YaNuPVS/Vw+R6pbfBJZr06BFhOLe2a/m7/KDU6N04JcE7WgZ2knZo5sJS4P77wUHwsm3/ZDxAXZHvIGdvAEGPOA66h48MZLPh9Bh06l+mYvbIv0Ygg4nu885jN8QvTWfCBJ3L6Z3FU0qbhH9bIrtkK0zJDvOOsCoIflxRT4i7fZGT0tU3g18lZupkTyopopSWqNIQiX7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b8mBh52ePo0aBwypvOcm0NjdEbgAMwnjQY420EsYpmc=; b=fwmfqzslu2tuBpQUo9rgF8cv+CKIBHclOBuySXoZTQu0j3sPFgtMm8/wQX394i6gtrsZoa76YjubqYt3861i82oU8kae1AvKABvpQ7B/3erUo+ZF/4/y2ftvr98Ql6bDAyZFVQ34NnkCDKUAT6erxhbX2/Qtdf0446w3730A0kByFe6LjFyZ7x4iqClRfXvP182UcYtzGOGDsj04TFmMZbt2/+4cl0WxqJ0lsa5FlBSKidVihIl/TxGOg0OA6rUls73o7tkpF59NNrqbAZAhS2rDBCS1KEjsR4XcgBAjW1OYEoWkQp9Iv8A9kpcPp1nicKVbZhqIaHrnFBN56uLKSA== Received: from PS2PR01CA0030.apcprd01.prod.exchangelabs.com (2603:1096:300:58::18) by SEYPR04MB7541.apcprd04.prod.outlook.com (2603:1096:101:1e5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 06:14:44 +0000 Received: from HK2PEPF00006FB3.apcprd02.prod.outlook.com (2603:1096:300:58:cafe::cf) by PS2PR01CA0030.outlook.office365.com (2603:1096:300:58::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 06:14:44 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by HK2PEPF00006FB3.mail.protection.outlook.com (10.167.8.9) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 06:14:43 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Geert Uytterhoeven , Magnus Damm Cc: Delphine CC Chiu , =?utf-8?q?Carsten_Spie?= =?utf-8?q?=C3=9F?= , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH v6 0/3] hwmon: (isl28022) new driver for ISL28022 power monitor Date: Fri, 6 Sep 2024 14:14:15 +0800 Message-Id: <20240906061421.9392-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB3:EE_|SEYPR04MB7541:EE_ X-MS-Office365-Filtering-Correlation-Id: ce4f94db-7ef0-4780-5034-08dcce3b333c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|36860700013|7416014|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?XQ1WHu9YwBREyqP+Qe6bGl4E6z3bvA6?= =?utf-8?q?/aZhqu2WF/eJgou55sWld4zKRN4WVBobTVfadWxdyEzTWbfUebuZfL52xrb+MF/as?= =?utf-8?q?XN9BsHIineydQ1myAA8f2mFKAq6tzPq1pnkeT67BUJMhrp/ua15yveqVT3BV+itZ0?= =?utf-8?q?RBPjvq/LLxPJUH5/0Ubnmk6NsNGn0H7rI77kt8GRwuYSJOEsiomANKZauHdhEZS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GKWyQkaS07?= =?utf-8?q?3ICjp0klyXDBk/5kJN+xNEwk7tYmQxgDqPlezWfJmWOq5Wra9+Mjbu7aBbJnOgMC/?= =?utf-8?q?ofXcMjJ8oQmNOfCLsf01C1nRGMTZjMIwOm7JRp5zB5VG3YEh23joSwoCDeW9n+al7?= =?utf-8?q?NvJiWh7cteNPsPxN1p0zPHSehLH7zANZ8qNoSwwWnFeVjLX+ZPSx31qU6br5dH6xR?= =?utf-8?q?QE1DnAE6ZfLyJXUsyebA8/CaT0yTiF+ox7Pwdnr5VS6Urwgar4ZylUKjjOWW/kpKu?= =?utf-8?q?tpzHiV6eOQWwyvxq7IAginC3IVE+IssocTtMv78jBo0eqyd+n7CY1wiMTACoSgq7L?= =?utf-8?q?X4KmZmWA9Ri?= X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(36860700013)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 06:14:43.4782 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce4f94db-7ef0-4780-5034-08dcce3b333c X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: HK2PEPF00006FB3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB7541 Driver for Renesas ISL28022 power monitor chip. Found e.g. on Ubiquiti Edgerouter ER-6P v6: shunt voltage in mV and revise code v5: review comments incorporated v4: property compatible fixed v3: changelog added v2: properties reworked v2: calculations fixed v2: shunt voltage input moved to debugfs v2: documentation and devicetree schema reworked v1: created Carsten Spieß (2): hwmon: (isl28022) new driver for ISL28022 power monitor dt-bindings: hwmon: add renesas,isl28022 Delphine CC Chiu (1): hwmon: (isl28022) support shunt voltage for ISL28022 power monitor .../bindings/hwmon/renesas,isl28022.yaml | 64 +++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/isl28022.rst | 63 +++ MAINTAINERS | 8 + drivers/hwmon/Kconfig | 11 + drivers/hwmon/Makefile | 1 + drivers/hwmon/isl28022.c | 510 ++++++++++++++++++ 7 files changed, 658 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml create mode 100644 Documentation/hwmon/isl28022.rst create mode 100644 drivers/hwmon/isl28022.c