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: 177886 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3012857ill; Mon, 28 Oct 2019 00:20:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRsrpdEZz0cQX61l5KCxn2Um9ghx+8AdbtnFaaegIy2C2HhQe1COqiY7ajd91R1hN08w+m X-Received: by 2002:a50:fc0a:: with SMTP id i10mr17790452edr.94.1572247210697; Mon, 28 Oct 2019 00:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572247210; cv=none; d=google.com; s=arc-20160816; b=kPpJzXbK/rHZU3ddyKhOE0D5iBGKXdzSyZoMOX7sM6Ul1ZWAbQpCUXIMDyxJu/QKbQ m8Ou8WrQnamVjMbzeb9WeOd6zq0qqtiL+Mr6rBW0ErrFRNYmCzNIQ6q6qi2ISX9MKMe9 m829SR/NvSUMU5nenUUe0W5QQ0oNEaMs4oxsahTxcr6+jGZEghJ2+lgRgqvb0EjFxGEA P9jKEdTh2GRGIGBxptBTztOfECLktBNHTTPowsGv2L4cPaOozutN0lfKj5zJZtxDKr5A c9bSO1fAP+9IYbYtXIQMGKay7KagG/Z84WdCnHUiC7oYkghEh2z1nPMjtSpbQGwtADbV hvjg== 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=zz90kEkSWWg/YORe6tmdX1Bf7ogm6HlTvGcmmgO38JE=; b=cOraADMz6ANsWygGnhRt84R/YQl9zNs72DyBhhgExTci938mfjJC4VBnjrDY3kEFDJ Or/anvlc859q7XoxICFmA7txPDpdGWQn0GXYglcrN9/aLo/tvWoNnMJeevhjAtdz0lKr +qLqAsn2VzdSTckaI6BBk2PhtvEWiHUPKqPKK6XzhA2OnvLwPK10CfKUIXHly8sKTmQ+ Q6Ede/5UvC3MFSZcj6SsmtL7nKoIeIsbutsyAEAM1/RmiyDBRKTTmepydcgC0+eMwCLX 92IpQkx3OqDIr2201Zth3qCyNPLMWUqL4KPwlHpI433vnBulJ2jQAIndl6HZPLYZ/SSb WGPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HD06jgfK; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 b29si727894ede.118.2019.10.28.00.20.10; Mon, 28 Oct 2019 00:20:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=HD06jgfK; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1732617AbfJ1HUJ (ORCPT + 10 others); 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-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(+) -- 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..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>; }; };