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: 151053 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5441552ljp; Wed, 14 Nov 2018 01:07:50 -0800 (PST) X-Google-Smtp-Source: AJdET5dxCWtkS7H7LeECjNhVM3GPQUq+7ppbVs0tNl9NymAL6GZa5ooUQBn5mfS7BXSRg1MY8vjv X-Received: by 2002:a17:902:b103:: with SMTP id q3-v6mr1085533plr.83.1542186470401; Wed, 14 Nov 2018 01:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542186470; cv=none; d=google.com; s=arc-20160816; b=Ti2uZD52If+QPHfhQ4xhaC6iDKtyx2vQ1+afCRv9QjM0h94zrYLA+lPYO+OqvmAsG8 DTk2BJ3HZ9MsAyvuwt9ey/ZbcblwVfa0BN7AWOdxjSXE+Bubw89jng5uVrIluru33hd0 9Stt2jorVAOTTfpbfP8KRLU5TwUJ3zINhpupob8pGeoIPHYt6DeIghonJ9x+K+9C2bIl p8XasF5oEf1rZNVas49JSr0FxdjZbbezbDILni4cQSV3PGpBcnF1NHX2ebYzxINWraqi PrFTKcocueKXJ4lYOInljVX66cbN3E98ljqbzg4cSALfjC536Ha7JzHRi9lqiTFb++Z0 t80g== 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=wMyqG5pI89CV6L/8kIrcswRejq6Wasnn2q5PPPGYQHQ=; b=OKnIH74ZzSbL22XN8OUe6bkOFfGOtr1SIQO4Eb/5H+ofs8MTPcRO/kEcZDKp0Q0qjW zjNgVd2kVlOQhO9VY1YE1XErZn3CO4nuFqReGTIqSecUBbOvblNZWDN7XFaRBPQ3XUR0 Csj70w+llcNG6ptu2AjcQk2d6cWNttv+nyGEb19P8L1zC2P3FPFIbjTx1oOH1zfQc6x5 N5+38B+oar1TdfCeP/2gzHPoJV/6ycus63beRg1uzk832Pnzih5iIaP0cYm/4mW7E9vv 9n9+g07TmgD32RNk70ASJKgBXFa6cSlRVeKljAVzZXfNqoEgiByUUjD5fK2xZZdrs5os E/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PWED4Jlt; 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 c76si11007819pga.70.2018.11.14.01.07.50; Wed, 14 Nov 2018 01:07:50 -0800 (PST) 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=PWED4Jlt; 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 S1732308AbeKNTKJ (ORCPT + 32 others); Wed, 14 Nov 2018 14:10:09 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:40461 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727966AbeKNTKI (ORCPT ); Wed, 14 Nov 2018 14:10:08 -0500 Received: by mail-pl1-f194.google.com with SMTP id b22-v6so2030442pls.7 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=URdWUhHquPqV7KIYopSxjltcv/7eKEnL7SFbVb6c21007DtoIaRO7bTwqPkOp1dmVz M7fcTwDtIelOxAOukYK9Ocfw62i8CtBlp9/jMW3fPCmi7MJx++gj8Z156hj3N0o2JQb/ /c16QzPYxOxtsMVWSG1p/uorgd2ckJkqjaVZBGmSsZIRkrelV/dDYILj2MW+3v3XpOh/ 6xHciREsuj1FsPTyDkclzwlLNy5HKGhiYNllgZmzsHFPhVzIL8D+qvu+L4wWfFPpCCA0 wBh1lLiz3jFV54ALdqeySwAp3Z+hkdmxAdYxKIMs3KQ9dOJdqxj7p2V7GZi/GPCP1L1A Uq+A== X-Gm-Message-State: AGRZ1gJ9qULvOdbA2LVAGVeZz0f4a15GbZRnymdTjCprwx+4gE75N8eK 2m1eRRmFI+QVle6ciGWbMZ4Wbg== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add nvmem properties to calibrate FGU from eFuse controller. Signed-off-by: Baolin Wang --- .../devicetree/bindings/power/supply/sc27xx-fg.txt | 4 ++++ 1 file changed, 4 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 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>; }; };