From patchwork Tue Jan 15 10:32:34 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: 10764269 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 9CBD313B4 for ; Tue, 15 Jan 2019 10:33:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8074D2B8EC for ; Tue, 15 Jan 2019 10:33:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 745AC2B929; Tue, 15 Jan 2019 10:33:21 +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 221752B8EC for ; Tue, 15 Jan 2019 10:33:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728781AbfAOKdU (ORCPT ); Tue, 15 Jan 2019 05:33:20 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43279 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbfAOKdU (ORCPT ); Tue, 15 Jan 2019 05:33:20 -0500 Received: by mail-pf1-f194.google.com with SMTP id w73so1110591pfk.10 for ; Tue, 15 Jan 2019 02:33:19 -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; bh=+/pZ0dv7/TrWKuI+u0mzefBEqQY+i72QxuOgn/qV09M=; b=V2YFQgeO9AiPLYV38d75wisXsQIpYGe3qcgzWdbSM1k2YkPw4Otq0pEkHmGWqWUdfi doKRbzXKTsW5UzDJSaddrSaBuc7fIsr0Qh+McMqpZ6ZPhv3S7Zm0v2/w0RBJmJ/ng530 mTyTuXCwLcan9QL1pUhizD3ECoRGpPO/1vH7g= 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; bh=+/pZ0dv7/TrWKuI+u0mzefBEqQY+i72QxuOgn/qV09M=; b=PqLiMAEokbLIvOhbtinX7EEkYsN+zu6YS1Rhk5WK4astKHGB3iPeLmWIDxAVn85P+5 BotkD5mWSp0XjnSuPrtScTkE6XcHY53jD6bFGPMfxHSZGKJpJxbpq2f1eOGOnyW/juws b5Or3dyo1ZAcQ34Fg1za5GUeyKzDaPWyx2SAFqhKivncpDDSw/YOxnDeMVZUvLHAcPU1 YMZYCGYzwspPb6Pr+7dUai0gVdb7viKwn6pV0/tBa/TUjK6YDaIx8ms+ju9l716eLTf8 nV84bVEPnXgtgAgBUVX9EJ0Rts7SvgZzygF+0hCTz+qsLgcp+rGRnBGb9STa1k8JeF1r nrpQ== X-Gm-Message-State: AJcUukfS4D4rWjHYcLbKneAaH6Gf/+0nwi9Hc4vAVOfjpgmsR0+0PzF8 aGBgPtQ1CCUaUJSSfdy0vCAwgw== X-Google-Smtp-Source: ALg8bN5b9xnbSVkceqQdiHXO7eQhHuqmqXejKbxaNDs4F6q8XIhKODGGcIAZsFyXRlUkadb7MNuYpw== X-Received: by 2002:a63:eb52:: with SMTP id b18mr3123202pgk.213.1547548398856; Tue, 15 Jan 2019 02:33:18 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id d13sm5073957pfd.58.2019.01.15.02.33.15 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Jan 2019 02:33:18 -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, zhang.lyra@gmail.com, orsonzhai@gmail.com Subject: [PATCH 1/4] dt-bindings: power: sc27xx: Add one IIO channel to read charge voltage Date: Tue, 15 Jan 2019 18:32:34 +0800 Message-Id: <76a12fe5d0cc670266100b0587b047714c9a8a83.1547544142.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 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 one IIO channel named "charge_vol" to read the charge voltage for the SC27XX fuel gauge controller. Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- .../devicetree/bindings/power/supply/sc27xx-fg.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt index fc35ac5..0a5705b 100644 --- a/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt +++ b/Documentation/devicetree/bindings/power/supply/sc27xx-fg.txt @@ -9,8 +9,8 @@ Required properties: "sprd,sc2731-fgu". - reg: The address offset of fuel gauge unit. - battery-detect-gpios: GPIO for battery detection. -- io-channels: Specify the IIO ADC channel to get temperature. -- io-channel-names: Should be "bat-temp". +- io-channels: Specify the IIO ADC channels to get temperature and charge voltage. +- 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". - monitored-battery: Phandle of battery characteristics devicetree node. @@ -47,8 +47,8 @@ Example: compatible = "sprd,sc2731-fgu"; reg = <0xa00>; battery-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; - io-channels = <&pmic_adc 5>; - io-channel-names = "bat-temp"; + io-channels = <&pmic_adc 5>, <&pmic_adc 14>; + io-channel-names = "bat-temp", "charge-vol"; nvmem-cells = <&fgu_calib>; nvmem-cell-names = "fgu_calib"; monitored-battery = <&bat>;