Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp77074rdh; Wed, 22 Nov 2023 19:12:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6SVsyF7jeskWrGdo0Iqm53NAv0Ak35bHPE+R7UIMLqg939POnG9HCw7f7/ZaM053JsYzQ X-Received: by 2002:a05:6830:98:b0:6d6:3f65:1e6d with SMTP id a24-20020a056830009800b006d63f651e6dmr5196089oto.21.1700709122347; Wed, 22 Nov 2023 19:12:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700709122; cv=pass; d=google.com; s=arc-20160816; b=BmIIF7bd0g9IZFKuuZAzgrMupHy4gEBQDTAxi3sZSPE5twPDVqrTq0DfVWsDnwMDX/ s1ZmIR2p/8X6K0/JmXKn9CywZQPeeveV+EDIWbnhNsHinodYwm5wS2tV4Ot3SZwvNUqI f4vW4bKZ51rdWfRBXCTG+Mcdv9avisMkyIyT+WhgPu8C3DAnARBtKBwSYRZBcTCdk7D2 Ds5+v1l+m9/CLICu8cXHq5qjFuWa9KcqAKiaKuUolhOF/xRn6a3v9T3MYWAR3ScuWu6U b3hjB27mc9yBU9TRcYElXxckEEWsBebWOdyoii5gFtI/CmmCb/IHSiT6kbIyuUbPzTm1 Hxxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mZix0rEbbh1WtDrMkthy/ANtdcZ7vmzbMchCQqM/tLs=; fh=OordImcJgq9wQEgCtVdqUReUXd/ywQEFgjGo6UAo1Ug=; b=HScztgGFbgBtVFKNIaTySL2fO3xlTy2gh62HS6ddEP25oQSS8jIf2X1DD8Z8zZqJBb iUd2OoBXOQEsM2bfavRB69zzW6H+PE5QzF9KbwMJiJsv4auPuG1J7km2yquBcRAiCGlX hzraUvtQBc855w2iVF4ZUTCpqS4/enE3mHQsYocwTEponscJxjUBDHWUyaSRvQ5//ypa IDgIiZlSn+5Ps9V3MV/aCETcy8arkCGY5BqOHGM9sYa75Iun7xXw9BpoNNWCb70gxYJe q5UVgBoj+WCFoh8atTEmpM+mPKWrm6KGpAPLKoGNFeA5rmk6AKrpnEWuSAdoZP0gdrOP 0NjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=CtyGJufV; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id m11-20020a63ed4b000000b00578a44df6c1si417185pgk.640.2023.11.22.19.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 19:12:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=CtyGJufV; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2E5DD807C85C; Wed, 22 Nov 2023 17:55:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343940AbjKWByw (ORCPT + 99 others); Wed, 22 Nov 2023 20:54:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232688AbjKWBys (ORCPT ); Wed, 22 Nov 2023 20:54:48 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2075.outbound.protection.outlook.com [40.107.255.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A87F01AB; Wed, 22 Nov 2023 17:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RdxLFy6fvGslehE/iVrEoi1XWgtX4Qv2QOtIxTZ1xVGvz/SF5cT4zwshgkgOriM+f1pyzkjldOYE3o3+LEPS4txgvnK2Kh9v2E3EEfxe0OMZ6caEchvtyW/UmcaVPOZA4pEonPI25UzTa4YPwT7vyubJnmtWpmrLfBDp4wVvt3K0VoDWVAy9uTmRLfPHgTUpW+3M6/q0ZZ3j8wMk297HAxKplpBK/h6F9Dk0wkFEiCsPvd4GsSVPy6lG32Qo69R7pFfsHzE3rIHCpGGTf0DoVRcAAk+/B90G3UD3j/HR9Usr0zOyqX2yoSi5MtTxqwoUp3xEfGMexvLJJGH7QlVfAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=mZix0rEbbh1WtDrMkthy/ANtdcZ7vmzbMchCQqM/tLs=; b=LOI4WYCG5vBjvm1q9Cx06rVh5ETOppytSo/bGzLM/E309mo5sbKQ4SJw40KQSkpOdtmw6mdOMA5CQn1TQdpIm8Kpsm84bapVMoCHQAE7vOLsFDCjgjqSJmWKBJ34RHrRAteyCDj6FJc9CM7Lcx90YY0zTo137LsycMlPln+4r5l3xVjZU4oLeHCNVH7vvKJGsDS/CIqRmHYqvQ1ECwFj9iBPFHqzGyaUSwcblUmCXMeVl8CtcObx7XXZn/AV3G+/aFGPCQwqOI1wM7g/O+EKFAQD+AJ0GFHWKS8UDC7/8MkU/HbNcpPJMKLET6c1rt6q8+QjRSOUZX+gcYj1LdriCw== 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=mZix0rEbbh1WtDrMkthy/ANtdcZ7vmzbMchCQqM/tLs=; b=CtyGJufVNY5NXfP/Zo+m8/EmWK8u9CJ0aWAemwVmx2AIeBBv7BhVmcsIquqwgU/aoZj05aggnRNKf3mU41FPFmwXlbxIQzcUFvBcin/CfguWYH8SbeCdYOnQC9CdPP6mm4TjBTWFAxvHQt0h8BhBaP41TAU3cTfeJxRcMZ9nQVWWnUQmWHki35lZdx3Ll1dV5+n1uzS4iF4zCZNRTZG7uWyXA8A/PD+aA9uhgNAmFBN5O9qDz4Ki0CLmfgd1DFWVVOOQBPLw/WnVAncse9r3t0vJzPIncu0aG5EzpY42901USj/fPCo1v69Ko+7j3MtISTwQ96WLPAV2cbbxVlRNSA== Received: from SG2PR02CA0003.apcprd02.prod.outlook.com (2603:1096:3:17::15) by PUZPR04MB6536.apcprd04.prod.outlook.com (2603:1096:301:f3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Thu, 23 Nov 2023 01:54:50 +0000 Received: from SG1PEPF000082E7.apcprd02.prod.outlook.com (2603:1096:3:17:cafe::74) by SG2PR02CA0003.outlook.office365.com (2603:1096:3:17::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.20 via Frontend Transport; Thu, 23 Nov 2023 01:54:50 +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 SG1PEPF000082E7.mail.protection.outlook.com (10.167.240.10) with Microsoft SMTP Server id 15.20.7025.12 via Frontend Transport; Thu, 23 Nov 2023 01:54:49 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Delphine CC Chiu , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Conor Dooley , Jonathan Corbet , linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v7 1/2] dt-bindings: hwmon: Add lltc ltc4286 driver bindings Date: Thu, 23 Nov 2023 09:54:36 +0800 Message-Id: <20231123015440.199822-2-Delphine_CC_Chiu@Wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231123015440.199822-1-Delphine_CC_Chiu@Wiwynn.com> References: <20231123015440.199822-1-Delphine_CC_Chiu@Wiwynn.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E7:EE_|PUZPR04MB6536:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2186950f-cab4-45bb-b9f7-08dbebc72dba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HJMeHuKD464ywZG6rZr73Hj7206jasBnk4KPlcgw/Nd5hJfxtz4KbW4aAldLXsBAknwzGXfL4cydfMSsrsmXBl3F84z2ZWf6qhnWnO1Qavob/6drNFbBe5mOjLjKIpmaUH/eACQBH7yfzELjJ6pvBPYV7Itg77I4sCXCoDcyt1UQcRF4KEql0xFbFMk6DxrrF1GYcfdu+3DwrquVo/bHhXebOA5L9GL6QRo2kwiJ7tkTrSmjL/ryuTpMQotfxkADMCgQBOBGN8yFiowqFDt/WV7eBqpo+jfdPON3zFZIQuA/SHLO88cVGmE57fzuV1B/jQCwW/MH50CjukRH7trUrM/nSdjioHeVPFZoP7tOeiFLInmx7oTBUua2lF9WeZ87U0ROMtoheVDxmWES2WhBtz1nlaRjnCxeO/s3Qt8BAdFJPdJGftSixgV8xfhd+fotLat9bndbuHiOjl5pQWR3YDgPQidSaNXfVST3ubAHPAemIfi7DYSus1jk3e1I3cKQffm04Qcl3/+TRioMSRqzJ1WjCw3kt6nw+bfAS/bMG9Jjr2nTZR0mGz33kexUG780KLtzIsanJ8axAAo9Kh0dKz8xapmkUGe4C2MSrKFicSzPK9Gvn/TFrga/Ssl9mjJK3sbQYmfod3dHDj8/JLWkViOEAWZoCmXBHVfJ/zuR6078g8A0BmKS/2sUi7ve5sqRDYsqfxsK9BWynugo4nlb7g== 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:(13230031)(6069001)(4636009)(346002)(376002)(39860400002)(136003)(396003)(230922051799003)(186009)(1800799012)(64100799003)(82310400011)(451199024)(46966006)(36840700001)(356005)(6506007)(82740400003)(81166007)(26005)(6512007)(9316004)(47076005)(8676002)(54906003)(70586007)(36860700001)(110136005)(70206006)(4326008)(36736006)(316002)(40480700001)(1076003)(336012)(966005)(2616005)(956004)(478600001)(6486002)(83380400001)(6666004)(8936002)(7416002)(5660300002)(2906002)(41300700001)(86362001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 01:54:49.1913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2186950f-cab4-45bb-b9f7-08dbebc72dba 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: SG1PEPF000082E7.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6536 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 22 Nov 2023 17:55:32 -0800 (PST) Add a device tree bindings for ltc4286 device. Signed-off-by: Delphine CC Chiu Reviewed-by: Conor Dooley --- Changelog: v6 - Add "---" under "Changelog" in commit message - Remove "shunt-resistor-micro-ohms" from required v5 - Add hyphen under "Changelog" in commit message v4 - Revise some inappropriate writing in yaml file v3 - Revise adi,vrange-select-25p6 to adi,vrange-low-enable v2 - Revise vrange_select_25p6 to adi,vrange-select-25p6 - Add type for adi,vrange-select-25p6 - Revise rsense-micro-ohms to shunt-resistor-micro-ohms --- .../bindings/hwmon/lltc,ltc4286.yaml | 50 +++++++++++++++++++ MAINTAINERS | 10 ++++ 2 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml diff --git a/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml new file mode 100644 index 000000000000..98ca163d3486 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/lltc,ltc4286.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LTC4286 power monitors + +maintainers: + - Delphine CC Chiu + +properties: + compatible: + enum: + - lltc,ltc4286 + - lltc,ltc4287 + + reg: + maxItems: 1 + + adi,vrange-low-enable: + description: + This property is a bool parameter to represent the + voltage range is 25.6 volts or 102.4 volts for this chip. + The default is 102.4 volts. + type: boolean + + shunt-resistor-micro-ohms: + description: + Resistor value micro-ohms. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + power-monitor@40 { + compatible = "lltc,ltc4286"; + reg = <0x40>; + adi,vrange-low-enable; + shunt-resistor-micro-ohms = <300>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 0e79e24b6c96..33f005319c79 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12628,6 +12628,16 @@ S: Maintained F: Documentation/hwmon/ltc4261.rst F: drivers/hwmon/ltc4261.c +LTC4286 HARDWARE MONITOR DRIVER +M: Delphine CC Chiu +L: linux-i2c@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml +F: Documentation/devicetree/bindings/hwmon/ltc4286.rst +F: drivers/hwmon/pmbus/Kconfig +F: drivers/hwmon/pmbus/Makefile +F: drivers/hwmon/pmbus/ltc4286.c + LTC4306 I2C MULTIPLEXER DRIVER M: Michael Hennerich L: linux-i2c@vger.kernel.org -- 2.25.1