From patchwork Mon Oct 28 07:19:00 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: 11214695 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B69F17D5 for ; Mon, 28 Oct 2019 07:20:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7551121D80 for ; Mon, 28 Oct 2019 07:20:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HD06jgfK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732617AbfJ1HUJ (ORCPT ); Mon, 28 Oct 2019 03:20:09 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:37745 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732608AbfJ1HUI (ORCPT ); Mon, 28 Oct 2019 03:20:08 -0400 Received: by mail-pg1-f194.google.com with SMTP id p1so6295829pgi.4 for ; Mon, 28 Oct 2019 00:20:06 -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=zz90kEkSWWg/YORe6tmdX1Bf7ogm6HlTvGcmmgO38JE=; b=HD06jgfKdHaybBrjNDZRaOXNwrZc0W1LGLFB2+ngCxaUP4+gDqrtFqGtDyC7MrXPwX jR87YsTHT2M2QI4PXnUjNQcWD3GGTN5fXlPkFY4Om+Z18tEZqNR4xE6Rw/t6FpVu1QGu C4CwaqrEkr96aBTVgePTF44Rfo0I6mTdcpTHjAmyHzC+uMtjxHKemtjTh1trpesbg5ts PMStpjRNp3jlevLAvILguA+lR4rfm3Fyw0/1hyFx0sMmmFtWlqMbBkcoeIEBdOhPdPgF Oy55yKn1eGz9KjE7kgmfCZbWQ4yljK0mARwq08Hmry7c4eQAktXMsEdZHmNi7z72sPZZ 7CHA== 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=zz90kEkSWWg/YORe6tmdX1Bf7ogm6HlTvGcmmgO38JE=; b=TxJz7ST8oz+GRo/AXHJejAfIXFlR67zwP3l7KCmrHMSu6q7KOkax7q0+ZPFDbg0Ho8 IeYhYtMLG5AlFl0YYzY6ZOUdrMgusVMFcVgZWkr9Tt3hBV6MTkwAYKWqsTA2Vn7dfeX2 bwuHkZlxcFgFmDSDHflc0+5TFWSgU6mfQUUSH96MsS0z2jZBqSUWdLQLG0Kpo8qqxH/h ux3Epb/S0djhgy+u3b+tcCNkHHJabmINLr8HQh3sxkzXbkf3B2IRXDam+qZC8xSjaO51 jwr2Wz+rsxYdz2OfwyN9NCEKpjzUjrqKKHJuNsHIKLFD3ovVaYcFzSlLdWY4UlFuyqy3 jQ2A== X-Gm-Message-State: APjAAAW/q+uU3q5YxQKMw3RwuKKBBgElF24tcviDNPG1CRo0+N6mwNKJ nd1a5j4tq7cEH4huMHt7HfV+8Q== X-Google-Smtp-Source: APXvYqxkl+KuBnoBixVybAo3mY0Ffb2a1+RZ9YZ8REJNwp1TVju36c8lfb8srFqfTSXP8H6DDZVNYQ== X-Received: by 2002:a17:90a:26c1:: with SMTP id m59mr20848364pje.101.1572247206109; Mon, 28 Oct 2019 00:20:06 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id 13sm11504703pgq.72.2019.10.28.00.20.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Oct 2019 00:20:05 -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 4/5] dt-bindings: power: sc27xx: Add a new property to describe the real resistance of coulomb counter chip Date: Mon, 28 Oct 2019 15:19:00 +0800 Message-Id: <00202f739348258555dcc40982c330542ac61863.1572245011.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt index 0a5705b..fc042d0 100644 --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt @@ -13,6 +13,7 @@ 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: 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 +53,6 @@ Example: nvmem-cells = <&fgu_calib>; nvmem-cell-names = "fgu_calib"; monitored-battery = <&bat>; + sprd,calib-resistance = <21500>; }; };