From patchwork Thu Oct 31 12:22:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 178169 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2760852ill; Thu, 31 Oct 2019 05:24:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl9/OW4ga2oUGxvIqksegGHQoE7PHi0Ywi2hpiWhf5JKRVBRSYJ8i+pt7xux7jELG8r4/J X-Received: by 2002:a05:6402:2d6:: with SMTP id b22mr5706436edx.155.1572524658633; Thu, 31 Oct 2019 05:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572524658; cv=none; d=google.com; s=arc-20160816; b=v/1F/+P3yJu2utVSaSzoXsLVNxLw2ZvFfL4jJerVViGDaHmhgDnkAiCEZ1oR9Hj9AB iHq9u+YJVowxchaE1A72ijRpfaM/VX50Z8pRqY+4RJPUMstkkau9WmLBLrJsvuYCv5Ly RpcED6RRzTM0T4LLpk5vWTT9M11FP9UCPzmK4fSK+ZVAbiN0VWQmF3qnvBFJpRK0jULQ 4jNC1yVofZgSrvrdjKWnIEVYkq9zZGCn3PjjvJWBIvbEt+XG9dbn3hFTJtI0PtOTtbGb rwBDq/gBo7uO9FGEP/kh23zJInxh7La1BqvpcUnpv8nJzO3U+1lLcBjMGgLvjU19QGTn eG7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=dics1qLSQG/6LjTjU1Zksk8uqo/tbnnILQwq9HvjeE8=; b=IdGy+gdCvE616w3SOIz8ueQQMYX5JX5cdh1/CEMJOo48HvEx6py/S2s0NXdi/1HZCK brIuAKsT0eLh39LHIzTx5Y34JmepPEapj3hJnsXx4asKASjnwzqViY85tJ2/F2eh2c4J VRGaiJ80oxu16eKXBwYOGuR1mZStrYmygVeb1MsZiR/UIBM93ppmA7xrGzs2E4hQ0j7u Ib6KF2RFa1BZT3jDKxJnbQaIUYFGperSXmQozLpZO6PcSGYlQOBcKWcF1tapcus6MSsy gTcfkz3YMM09La5mz7EGNv1QwOtdnb+WVk0BoymArJ68rpbo4a5v4+wqe/qhS4ip5+tW Egog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BqkSGS3M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f54si3772755edb.255.2019.10.31.05.24.18; Thu, 31 Oct 2019 05:24:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BqkSGS3M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfJaMXz (ORCPT + 26 others); Thu, 31 Oct 2019 08:23:55 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38560 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727399AbfJaMXx (ORCPT ); Thu, 31 Oct 2019 08:23:53 -0400 Received: by mail-pg1-f194.google.com with SMTP id j30so475458pgn.5 for ; Thu, 31 Oct 2019 05:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=dics1qLSQG/6LjTjU1Zksk8uqo/tbnnILQwq9HvjeE8=; b=BqkSGS3MEt3vqyBV2jt/evjT92CEC8fhA5pKhgaSsQ8tWWeOmTv581aMDyQGGAoM+u CizlHBmVS7JFv+AbHdVIc+fwuPNnYDQ5G0QdKchvh1pTgp29tF6A8zyKt1QvwMol/BRT p+m+UaMhQoR5c9CeXA4YXY2NWs4lmn2+jxCulIUrfb/1nlgCzquadJ4snfiwfiqBJOO7 GsgrWxVtEQtBNSBAF4KO2JUtdxh+Jq/nS60cxugG06jl7Yqy+Gp+8LWEd1/z7LVsMtdg Ft/z8YOxhFafX9kqa0ciDJBhWo0+vNVMk8217RiU0dh+3EYYDQ8obAO1US0ZTzG8MNEo xeDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=dics1qLSQG/6LjTjU1Zksk8uqo/tbnnILQwq9HvjeE8=; b=mvgWaqPnRHG9BUEV1s9isvto505rn0Oyn9S74v5+uuY7qnBFRH5essXWJS06gjrfHc GxGROrIBm/jPlOqSLAeKqDNhKCuXaDl8qqFjqH7AHfoAHojVVMYjFbjdkHI9vttmWHiW uVYO9rEwhzsoVZ0UPpCYFBVfqXDn2EE8riXPbYNTAtz3gNhbFR+sJutQxSMv+TI6ovfa TzvnYJE95fIbZI0/AScMuy+Gvqaygtjx7jHnnj/FZdu/SMIWRFi6Idahi3lLXUZPX/22 K1aItPlQBxsYh6G35Aig4dVyUMWzDZKxgkBrp5VuNE8HYrs0FdtKSg6locNzZWJjJx/W akRA== X-Gm-Message-State: APjAAAXsI7B6/TpX9NBmp46M38gdQt4ci5eQ2W3uqMMooufqV86bvq5t b7py2UhB/H375lx7SuXR6OLn8g== X-Received: by 2002:a62:1d8d:: with SMTP id d135mr6267445pfd.172.1572524632666; Thu, 31 Oct 2019 05:23:52 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id j25sm2983077pfi.113.2019.10.31.05.23.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Oct 2019 05:23:51 -0700 (PDT) From: Baolin Wang To: sre@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, yuanjiang.yu@unisoc.com, baolin.wang@linaro.org, baolin.wang7@gmail.com, zhang.lyra@gmail.com, orsonzhai@gmail.com Subject: [PATCH v2 4/5] dt-bindings: power: sc27xx: Add a new property to describe the real resistance of coulomb counter chip Date: Thu, 31 Oct 2019 20:22:43 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a new property to describe the real resistance of coulomb counter chip, which is used to calibrate the accuracy of the coulomb counter chip. Signed-off-by: Baolin Wang --- .../devicetree/bindings/power/supply/sc27xx-fg.txt | 3 +++ 1 file changed, 3 insertions(+) -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt index 0a5705b..b6359b5 100644 --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt @@ -13,6 +13,8 @@ Required properties: - io-channel-names: Should be "bat-temp" or "charge-vol". - nvmem-cells: A phandle to the calibration cells provided by eFuse device. - nvmem-cell-names: Should be "fgu_calib". +- sprd,calib-resistance-micro-ohms: Specify the real resistance of coulomb counter + chip in micro Ohms. - monitored-battery: Phandle of battery characteristics devicetree node. See Documentation/devicetree/bindings/power/supply/battery.txt @@ -52,5 +54,6 @@ Example: nvmem-cells = <&fgu_calib>; nvmem-cell-names = "fgu_calib"; monitored-battery = <&bat>; + sprd,calib-resistance-micro-ohms = <21500>; }; };