Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp90746rdb; Thu, 16 Nov 2023 12:45:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IE72fvRAusjS4K44TSqR3mIBkuilgQ72rgxkIz5MwDgb9rSkWQTlNrfc/TCZGO4rYmynoB8 X-Received: by 2002:a17:902:da8e:b0:1c5:b855:38f with SMTP id j14-20020a170902da8e00b001c5b855038fmr11740269plx.24.1700167531704; Thu, 16 Nov 2023 12:45:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700167531; cv=pass; d=google.com; s=arc-20160816; b=HtmnHPPFhdv9lPz8NtXedm2WlnczGOWzRh0kfZ2/S82T3ZT8LpX4vhV/A7HQgHXfex X8RLdz1+6qG3Qk4yT+2kl0w/nW6I/Qiefr/7C8pk7t8sVAhKHi7FRC9KS1c5mSmjWv+T R0d+AkIQzkokJSrsaeh3lQWod9GFOnFUVn8PdgUw8Uk0ecVxU/eCMgcuJSDkcW2imUdQ hpoowPODACiVApQ2k91sNClxSHMDI1OFxHFLNY+YJ5h7oHiFSf3sOIkC2UAD7yQFZi2G Cdmiw/PwlrPdqmYxvwVgkW5bQ5ZjN14Gyor4Usw68ai6u7EZCHEfbXGoDJOg204+df0K Lp2g== 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=a6Vq4M9C7BMFlXUt1UWR1Nw+gi2crz8Y/9uyASo5CQU=; fh=nlyhPP9jRu/sBiM5Maepk+zsVOxN5KfeGpySDxtFj6Y=; b=SQPSxkbL4jHxkcBfVcE6oASiB1r0jWC/qBC7F22rcKh0GgzQSeUZMOLbkmnsGMfNPI e4l3Zy/D+uywQYcZB5lrjLSjl7B+P84JmJTfSfI4qKupH4tw0jzLNl/Oh/CUHeHu8nwC ieqZpYH1gMNqSDiHzfq0GGu28MhlUrjNt9AqP+o8t5t6n/g6wG8jwcWTyqG7AtWOFaXm C0PdDf7cqv4OfUKQzLELyZa3HXPoR/J0NoxjyHTNKbk459BSK2CyYKd2orAfXUEZXWei c+UawrhQCKM+RM2eAy7zCXsK7Syb6mlcbuAHCCSSORlt+Z7hNIqSSIVIa8j9Ywl9Exj/ Hmfg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b="NX/d8CaX"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a11-20020a170902eccb00b001cdf945ed08si185463plh.506.2023.11.16.12.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 12:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b="NX/d8CaX"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 8C87B8020CD9; Wed, 15 Nov 2023 18:31:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344537AbjKPCaz (ORCPT + 99 others); Wed, 15 Nov 2023 21:30:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344514AbjKPCax (ORCPT ); Wed, 15 Nov 2023 21:30:53 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2061.outbound.protection.outlook.com [40.107.255.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A829C1A4; Wed, 15 Nov 2023 18:30:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Icsooh8LOZGRg0wVmXGaPqT071CgDF+kj8s52ysRFHh3+vqok4lqRqoivT+Lb2bXYV8eR5dHHZvkuRg6zFb6j1/r/H0GgQa9q5tyn+WQOxO81vJothe+XBqwqMkFzwphyPJwaQxiVND4DPVhwgpbL8LWXE1onHwECRhy4BXQeJVPtdd3uAIZmUfwm4RubWBvVWSEjYBddeRt485wOauHaqRJ6I4S4sQG9ln81TgKxiwzImn/Fnrgi1lkL2rReyPafme8NuhpxNevVdyBACjLp2wJTXp5FsJd5Shz6jXALrlhgOjtWky1urHvWxAUPC44g/sfi1RSm14hf3ZPVqa8HA== 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=a6Vq4M9C7BMFlXUt1UWR1Nw+gi2crz8Y/9uyASo5CQU=; b=dJxMZJEcylUiRGd6OEHgxZ9BC/MO5TuVMmgzK+uF6PK2pPpXfGHqzH/P7cUKr/R3noIGwaVsARdUi8ZZtS3KR4azVkW2C2kqeNzsEWbkd5RPnus541ZMPkoVdO4H9fvmrBgWK61z1etac6fy6JRPLnOydsC4cJwB/68UOdC9JsgmJJS7sV077mNCexvATKwJ4f6J8MTV2F7aDgBRsGP1BJMgdF6k24eNLkbb1ix+eaQ+Tzhqv/tpwtnHkCCUa5bQAmIhcncgvAAbA6JIacSUOAuAX3xKfTRoV9VZS+0gRnxdTY1ySou4FGFQeWsF0hSzYOLjaZ2jTdreXnqTAg32lg== 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=a6Vq4M9C7BMFlXUt1UWR1Nw+gi2crz8Y/9uyASo5CQU=; b=NX/d8CaXNu8OP3lc+tPj7Awlnz/jmGtF1QPxWycYCOXVpiBxvbTq721rZjyrTi492l9Vx5kq5a1NAwYY24Gn931bYR16Ah5eA2cm9eoAa9aT0vGiM3mz0UhPgAuQjyvt/99aZWKJ5yQzJ/5LKASJgqltWDFhbRAf9jXQG0UrHw3xxS9kjPOeThcxVZs/OBka2MhKVMFqW5hnH7hgkJtzO7vKpN7dtxZHhEXtPc61LJI1ZpmoBcNsLASw2xEPXB5oBmQJzMBhntUxsjJ93kKjhUwZjYvXjNyyXuLPCT2YbcFxru/gWsws/dOp3fSq0j4LzHJHZLAe+HVzblp4hLeU2g== Received: from PS2PR02CA0071.apcprd02.prod.outlook.com (2603:1096:300:5a::35) by SEZPR04MB6337.apcprd04.prod.outlook.com (2603:1096:101:cd::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20; Thu, 16 Nov 2023 02:30:38 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:300:5a:cafe::e1) by PS2PR02CA0071.outlook.office365.com (2603:1096:300:5a::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.20 via Frontend Transport; Thu, 16 Nov 2023 02:30:37 +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 HK2PEPF00006FB4.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server id 15.20.7002.20 via Frontend Transport; Thu, 16 Nov 2023 02:30:37 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Delphine CC Chiu , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: 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 v5 1/2] dt-bindings: hwmon: Add lltc ltc4286 driver bindings Date: Thu, 16 Nov 2023 10:30:24 +0800 Message-Id: <20231116023027.24855-2-Delphine_CC_Chiu@Wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231116023027.24855-1-Delphine_CC_Chiu@Wiwynn.com> References: <20231116023027.24855-1-Delphine_CC_Chiu@Wiwynn.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|SEZPR04MB6337:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: cbcc18bc-54bc-42df-9801-08dbe64c04c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vdEfpcudzowRT6aEkMi/8WzLXcHIVOxCC0DjxvVWlJx2S3/sVoOl7KTrQXnF611eIE1Ij2d6pDlGoI/7eI8cwf6ltkfvC6uS0lWYBpyt6S39s3vYXmrkCzAW1Uksx/dsLr9hLhmAhY9QbHMtcv2uGmGj5k15mZ6l/UyynzRJO2oYikmuC7AMj/16ocjqWNwMvx1bkYrqdlJRbiyRrs4mAAlPPzJ8fW2m4yQWXjV2cASA6ZFHCrp08oeXGjGKE6OXcP3rLz5bK1RUceJMziEfdz0Mt1qD2UMAYuDmREXb2g8kE81LLiNIlHewmGqJ98vsOvTcLd9j5khofkKOO8UoM+EpRkTbLNmc8d5LH0f/LLLEje4C9SS3aOpDDsqvUG2uSmqIzQb7Bcemuo1DUP+AQ8SyqzNmB+YxTh69glY88XaQFkEZdrq6nGd3tIuoH6zHyVkvZZuMEVL1TcTHXKzY6oJ8gj88DaEprBz2IH6Qbw5v2iswHsQsupg0XARhLSS7lB8vM3BUGFbX6a4KVan9RjZDEON3M9Q5FMJ/3wzexG26xadBqiWKpbKJlZjnq2nv9bNzHOHBLKbNiqHavMNynnazJy+JuxLg6rN1304D6PfMHOahMZKG0XAVzAhQd5+nEHeq+lUxk7LMGMUvXx81CRGB8eeiyEVq7b6W3RwMsX87REbTRVwvrDCUAu/q8v0acLVle4jhwVxex1HhFjZdDhoo6x54aPRo8YwTJkMzmm4= 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)(396003)(39860400002)(136003)(346002)(376002)(230922051799003)(82310400011)(1800799009)(186009)(64100799003)(451199024)(36840700001)(46966006)(956004)(1076003)(2616005)(336012)(110136005)(83380400001)(26005)(82740400003)(478600001)(9316004)(6666004)(6512007)(6506007)(966005)(86362001)(6486002)(5660300002)(36860700001)(7416002)(8676002)(8936002)(47076005)(4326008)(2906002)(41300700001)(316002)(356005)(36756003)(40480700001)(81166007)(70586007)(70206006)(36736006);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 02:30:37.2296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cbcc18bc-54bc-42df-9801-08dbe64c04c4 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: HK2PEPF00006FB4.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6337 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 15 Nov 2023 18:31:18 -0800 (PST) Add a device tree bindings for ltc4286 device. Signed-off-by: Delphine CC Chiu ------------------------------------------------------------- Changelog: 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 | 51 +++++++++++++++++++ MAINTAINERS | 10 ++++ 2 files changed, 61 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..d26f34fb7ea7 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml @@ -0,0 +1,51 @@ +# 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 + - shunt-resistor-micro-ohms + +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 5c9f868e13b6..2a73a7c0f160 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