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: 155652 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4717671jaa; Tue, 15 Jan 2019 02:33:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN7oYmNNBBYnsiTqMh6ShHlFcF2YSns5SX3iA11l6+q8f+I4sM/7UjCA16leedFuRCPCi6nK X-Received: by 2002:a17:902:264:: with SMTP id 91mr3423583plc.108.1547548401170; Tue, 15 Jan 2019 02:33:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547548401; cv=none; d=google.com; s=arc-20160816; b=Mi+jtBom6wiIStbgKO+1ukPUyZlt/Tdbh03Y4I/IY7IBPvObG2OO/Ut3sJcJ3ymQjN szk4p1roIFi/1Ldz3LGPXZfurKKTmONOffDbX74ffefvlkkXmagm92xTWqJl23CT5len H++nP35C/EEpv7TlJ6DXJXYqviy+i3M25azzKe8W2BLGINSoYDoYPZ5KGi6dSNiSAxrB OVg+faiK2U6i7EK0XU4C9MtF5i8JBFlSUsDtXAhnngnmhp+YqeQfBaUpmPnv353BhJoX gtE6otHyqhxsU1MgRJ6yydCYVDfKHV9EpH3bb9IDF/lrRfC+RwQi42TUpXpw8VemyvDJ Rlcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=+/pZ0dv7/TrWKuI+u0mzefBEqQY+i72QxuOgn/qV09M=; b=oMPLibDwP2B2oERX6eGFas/NrGVJ0ZHs5RlKkaqeS1BDKvkSmKBFkHBTyuk9FsGQ4X lTPLaxlAiBQ6g3oYiHalUOhaxiX9IM6eaEnddJqNYG9umfqWISy9gH9jGSSdQ5kCqna1 6dqSqJX79CcYH3dZOzSUcmOoPXcFmuhm+jyze6RhjgxZ0aDokOW5wkGBkte0Kimm8esW bQWWOYqd+QbPG1wFClA/edGDGnn1BbLh7tzUauhCLQ0NiUJAwzrow6ixCUJlJcWSTiQN pIafwFOqxc0bHT9K0jBcLo3dDh7j9fbAvDtmI6ax+nelcqD1EWs3VAkRL6bagpTtjqo2 thdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V2YFQgeO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 l36si2924786plb.433.2019.01.15.02.33.20; Tue, 15 Jan 2019 02:33:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=V2YFQgeO; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1728764AbfAOKdU (ORCPT + 7 others); Tue, 15 Jan 2019 05:33:20 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33394 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727935AbfAOKdU (ORCPT ); Tue, 15 Jan 2019 05:33:20 -0500 Received: by mail-pf1-f195.google.com with SMTP id c123so1141154pfb.0 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=HTdE7aOVQTnee8FZfpp6RRTVVN6zffxx7IwMluGctNyRiZeHR0re1rPIBkyZsZJIkH F7N+hKdXQK1w7zg4jhS4nuoxn7ipEDBqlVJ4+SNRxwINHPL4RvHTw6vRSztXJBvFKt2n 9Dwjjie8DmtNh/5MFd37C97jnL6FAf4AeFrWImuB6N3nB7LDGcJ0o5/1S3s7Nv1c5NtX 2jcJA+YMY8m3x65JhPmB6icuUw9D8uR3vYuu40U4WsmmVn94lqnSMMOjyBRaisa7os2f t9mlrnsSfIJy/pVzVEgFh9CN3GYMWFXMlY0SDbIpW4wEyUTzSGsy2ZOZK38tetdegwYe l/fg== X-Gm-Message-State: AJcUukdMx8kPfrxLzv9b3khhL6Q12O+xqaKwrC/TfysVz2UxCm3uRvBI rFJUZojphQl5aP6qhLlETL9G0w== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add one IIO channel named "charge_vol" to read the charge voltage for the SC27XX fuel gauge controller. Signed-off-by: Baolin Wang --- .../devicetree/bindings/power/supply/sc27xx-fg.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 1.7.9.5 Reviewed-by: Rob Herring 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>;