From patchwork Wed Nov 14 09:07:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10682229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 462CF139B for ; Wed, 14 Nov 2018 09:08:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A2032AF3D for ; Wed, 14 Nov 2018 09:08:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EBAF2AF46; Wed, 14 Nov 2018 09:08:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DC802AF3D for ; Wed, 14 Nov 2018 09:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732227AbeKNTKI (ORCPT ); Wed, 14 Nov 2018 14:10:08 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:38584 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732221AbeKNTKI (ORCPT ); Wed, 14 Nov 2018 14:10:08 -0500 Received: by mail-pl1-f193.google.com with SMTP id p4-v6so7477464plo.5 for ; Wed, 14 Nov 2018 01:07:47 -0800 (PST) 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=wMyqG5pI89CV6L/8kIrcswRejq6Wasnn2q5PPPGYQHQ=; b=PWED4JltQZuViISB1WJMjPC5sXuvT1qCn/cpN0jSJrUClI9PUTCKikuXf9KwQmzlx0 nFlqcXoxIw0gzP5yhJd9R6e2/OuJxKEkD15JU/cKX/VS7v5ji1r/V1uV4F/fXpdUVRJO LGuOxAmAKT61wiE1W2JN/pr6rUvb3YsE06eBw= 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=wMyqG5pI89CV6L/8kIrcswRejq6Wasnn2q5PPPGYQHQ=; b=jLDtFvfXzTdGL2gMGRFsPpG8dY8eJFUGlPDfTyzJm5kJjG1egkjheU+ZUMWMwqAsNJ v8IkA/ebuhegRw9XMwFHsWhgT7hZ40riHaU1fGzOKQuYRW5W1bBQ6FwdaT2k4ODcqohC wEYUiA0hUEfy6AkkKohAPxj9HGPXQauqyRWShxISMtnah7NSI1NGsHibAo8Wm6RlnBLE f3Kw3OAZCNwff7wxbG/nXRrBKqFSBD+LsJep6Wo8oJwGuWHhY1+SRn9atWmWrFfPXuJR FNNvzAppi1pB+mVmu70LPm1uiAPEASy8Jcv63IQXWxN7nGA/IQh0KIq2OH1iMj825LuY L68A== X-Gm-Message-State: AGRZ1gLecYPMOtXijGED36yRo0XglpZ3cWJTKJqhdirqLuPi1YHWS8yA KcXhC1dHKAQQCIqVi16Ep+THHg== X-Google-Smtp-Source: AJdET5cu79RNj6Ak4SHHvr00KVWxSCFev4dOnqK6iHE4/gS4MmMQbQw/xfIt77uQTHlpaTIJWm2ykQ== X-Received: by 2002:a17:902:110a:: with SMTP id d10-v6mr1097461pla.85.1542186466971; Wed, 14 Nov 2018 01:07:46 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 127-v6sm25048814pfx.91.2018.11.14.01.07.43 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Nov 2018 01:07:46 -0800 (PST) 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, broonie@kernel.org Subject: [PATCH 1/5] dt-bindings: power: supply: Add nvmem properties to calibrate FGU Date: Wed, 14 Nov 2018 17:07:04 +0800 Message-Id: <09143dca85a260cb6c3abc5efcf09075a8050265.1542185618.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 X-Virus-Scanned: ClamAV using ClamSMTP Add nvmem properties to calibrate FGU from eFuse controller. Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- .../devicetree/bindings/power/supply/sc27xx-fg.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt index 98a2400..fc35ac5 100644 --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt @@ -11,6 +11,8 @@ Required properties: - battery-detect-gpios: GPIO for battery detection. - io-channels: Specify the IIO ADC channel to get temperature. - io-channel-names: Should be "bat-temp". +- nvmem-cells: A phandle to the calibration cells provided by eFuse device. +- nvmem-cell-names: Should be "fgu_calib". - monitored-battery: Phandle of battery characteristics devicetree node. See Documentation/devicetree/bindings/power/supply/battery.txt @@ -47,6 +49,8 @@ Example: battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; io-channels = <&pmic_adc 5>; io-channel-names = "bat-temp"; + nvmem-cells = <&fgu_calib>; + nvmem-cell-names = "fgu_calib"; monitored-battery = <&bat>; }; };