Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7018293rwl; Mon, 9 Jan 2023 16:43:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXuta9PPX9VDu0imdPyhtbCO3iztQc9Wzc2Pa+aNl1wP9B71iMg7FHlStey7lxjh0C9kGRz+ X-Received: by 2002:a17:902:8647:b0:192:549b:97c3 with SMTP id y7-20020a170902864700b00192549b97c3mr65260684plt.42.1673311412111; Mon, 09 Jan 2023 16:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673311412; cv=none; d=google.com; s=arc-20160816; b=mOa8YieCHl4iE53Tq4Zkr625Dildxv7baoscdb1vb5dcYorfctRXXw/6Rn0GAAH1N8 C1cMub5xvlQXUimuswh9rAAl6P+fKP8uzGhKxxxxkDry/vn0M55mkAiGL6uF2D9fAo+/ iAzyqSOqhAwGUPG84yTqN2UCMkSK1Bn8o04Sfdew/bEbka54eRv9Tdm/W+XdZgQhYSCY hIcJHor1UxKdHyBcP6ZVF4blCwrtKV1XHCybFDNkqHywPRimr7/vih/FA/l0ywDFzC40 hPtRfh/6PFXqtpYCoIQy/EnFBg/bJAJn10BPC03mTa/sryIL0BHC95GDp5fXgH0TtOqi M5uw== ARC-Message-Signature: i=1; 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=gWfOKCoKa6fVAUu6wQ1ieIdGSmrl8W8A2HgAxf0hwpE=; b=YWBPzqywzxToqaaeTtTK+HeFn+7g7R88euBao+MsAF34+UqGIYnZ/VBR0IbcH/ugVm z8kh6+xEWPB1zQJZ/V//t/6OGRx9DyCRTz+xuv8LVARUdWNcuDrJD2dohcTKhJvBkETD hJm6kWzmQgIc4u6GDs/N6dxoC9UPwMX7NK1dIyVUSmkYC8JXZskdThRzT6g/rPnnoCD+ uR8fZILahAgmqNFhlW7zmIjlhSV3oHzP0jQyc+uNpDRggP62GI7NX84hCMt3SnaorWhT b4bJkqHzTZWJItOzUiJJ3AQQDa8BsUB3mG3APJXUMWeIsq1DMyYCjwGaufVvRnathmXB S4FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=bvtIZBsz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jh19-20020a170903329300b00188ef298718si9411118plb.351.2023.01.09.16.43.25; Mon, 09 Jan 2023 16:43:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=bvtIZBsz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237848AbjAIXgD (ORCPT + 53 others); Mon, 9 Jan 2023 18:36:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235432AbjAIXf6 (ORCPT ); Mon, 9 Jan 2023 18:35:58 -0500 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35FCA6442 for ; Mon, 9 Jan 2023 15:35:57 -0800 (PST) Received: by mail-qv1-xf2d.google.com with SMTP id p17so7471181qvn.1 for ; Mon, 09 Jan 2023 15:35:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gWfOKCoKa6fVAUu6wQ1ieIdGSmrl8W8A2HgAxf0hwpE=; b=bvtIZBszxda3SApy+Vt245BDingr6VZTIE0uCE8ugMrSsv+pvqEUruYgswQfXSdXNC VAmuqsJCdrrXukhir+jfqy8l19M5PrfFk69mRqg9raoPIPug6x1o6cRVtZeAcf/lOLoW 7Cgg+TicuwJrkCt5Sqy5P5530IM+waDzfGZ1yMxP1Bhq+TjdXyNkEBDiPUXqqJtq5za/ 5ax6j0+xghsb2p/NVTdAbJPQrBnzzSRRzhpfdWhVDR20+0j0LFf7xuI7fjcJsyYZBgAd stdkfOLeBElQnrxjBCk5Qbkot5Uojaw2N8f1rxRdMveNL9PTyrPQK8hy1aaRoLP9lGgp EuWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gWfOKCoKa6fVAUu6wQ1ieIdGSmrl8W8A2HgAxf0hwpE=; b=XisB/2FSjLlRiIjA30/Bo2FX8FwVVTU+tVlVfRqw2O4EEmBmDB8Zb5MBZ0H8y+95Hq rT2SJRFrsO2Cha4FK4qkD1BYZjREPsdhX5/agRj0mN7A8MY3ntPHxni4XKiB5MCh03Jj PtEHCIgeYdZv/b3RFvCCNHtxluBwUbPUQNxrRjbRFXScSwI+8kgjN2/XAN2oHxq5PwX8 U8+JHL9vK7e0DePFfHPMAw6eL0PhDIf1w9MKiVK2QQTBe2zPzmcP68cYUXFsSUGqA91j z1X2A4sa7BI0NOpsK0v5IWLKuQl+mAOX3rjNeyMsrkSiAG9S/x2bFQA2go7myL7sldGo fxqg== X-Gm-Message-State: AFqh2kpqCr5q0ZcTstF1dgWCUBOk5IcW7PSdcOZEL7LqFvnVm01LrRrN PAhmxnVC9eb5PeIQNa8OE6JaBA== X-Received: by 2002:a05:6214:c6c:b0:50e:48cc:a95a with SMTP id t12-20020a0562140c6c00b0050e48cca95amr123111751qvj.43.1673307356280; Mon, 09 Jan 2023 15:35:56 -0800 (PST) Received: from jcormier-MS-7A93.syr.criticallink.com (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id t5-20020a05620a450500b006fa8299b4d5sm6294846qkp.100.2023.01.09.15.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 15:35:55 -0800 (PST) From: Jonathan Cormier To: linux-hwmon@vger.kernel.org Cc: Jonathan Cormier , Jean Delvare , Guenter Roeck , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Bob Duke , John Pruitt Subject: [PATCH v3 1/5] dt-bindings: hwmon: adi,ltc2945: Add binding Date: Mon, 9 Jan 2023 18:35:30 -0500 Message-Id: <20230109233534.1932370-2-jcormier@criticallink.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230109233534.1932370-1-jcormier@criticallink.com> References: <20221214220727.1350784-3-jcormier@criticallink.com> <20230109233534.1932370-1-jcormier@criticallink.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create initial binding for the LTC2945 I2C power monitor. Add shunt-resistor-micro-ohms parameter Signed-off-by: Jonathan Cormier --- .../bindings/hwmon/adi,ltc2945.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml diff --git a/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml b/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml new file mode 100644 index 000000000000..5cb66e97e816 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/adi,ltc2945.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/adi,ltc2945.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices LTC2945 wide range i2c power monitor + +maintainers: + - Guenter Roeck + +description: | + Analog Devices LTC2945 wide range i2c power monitor over I2C. + + https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2945.pdf + +properties: + compatible: + enum: + - adi,ltc2945 + + reg: + maxItems: 1 + + shunt-resistor-micro-ohms: + description: + Shunt resistor value in micro-Ohms + default: 1000 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + power-monitor@6e { + compatible = "adi,ltc2945"; + reg = <0x6e>; + /* 10 milli-Ohm shunt resistor */ + shunt-resistor-micro-ohms = <10000>; + }; + }; +... -- 2.25.1