Received: by 10.192.165.156 with SMTP id m28csp1699550imm; Wed, 18 Apr 2018 14:18:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QQ/4BiQ0D97dArPEN3wq72BA87sYzjpWMWwbwvqJdaRsimwqtKmLoSG840nL19boVKOe5 X-Received: by 10.98.54.134 with SMTP id d128mr3319149pfa.39.1524086321219; Wed, 18 Apr 2018 14:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524086321; cv=none; d=google.com; s=arc-20160816; b=ndnT2DBPR9Q/MO1VnBzKq6MLOfNybCLWmn7BIJz+yAavfwCyJf3ZScDu6X7v+moKZf b5YVC57yG5ljr1f/LWnP8N6mW4XWhIJkwDsfMA+zaOcL4R0dbz97g1AYphtozftSZLA4 d7L6T8FWPg7P+/B7UldYtGSKFhUn7ueRuBAuigwS0vQLnfHR5QV8UdnOPf4KBa6p1hhF USAKdATcRxGzO0RpobP/VrwPD5o6wshySuaWPIM3HftN0H0QVgtQJg6IVgoSLyeM0/tD 8gNaiQVxsDSVLvMk0ExGTxbL8AQ2DcNilWxlbWWayiINvzBeEtOz5DIaoASuTg5Q0Zm1 xUnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=hxFw3YmmLKJ/VQLUFS6P2PSMdzXClWsoGueEinakgpo=; b=vjeyNaM4Xm9LVdNloX/CHaWwbh6BGdHous+vwplSMFmDPsVMDr1E/38nr8TeIYUxNl cVrErIFz35s4KhbeNNfAkWOHag/Dr9ksjP8ML+tokE8UNDAGqFFAFBPesPdLAR0qRu2T owY7cMuxR9sskJNtTq2JOq+o/9LNPVFeMpw7/zEPHBwkQv9l60twINXip+mQCk0XzpQY OzrcpvQUiM8kcj6mxdPhnHTnPThQ08jX10XP8f+kTtlrqT2SX0Jj5l4TD2PcLzm+uTL6 ptESZpJiPbhAWSu4c/PacJITEUhyj7Q27PvDqpb+YZIbj4qYsk5Kr8gailWuPRtLRHyj Vjzg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w67si1657646pgb.447.2018.04.18.14.18.22; Wed, 18 Apr 2018 14:18:41 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752659AbeDRVRN (ORCPT + 99 others); Wed, 18 Apr 2018 17:17:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:41916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbeDRVRJ (ORCPT ); Wed, 18 Apr 2018 17:17:09 -0400 Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38BFA2183B; Wed, 18 Apr 2018 21:17:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38BFA2183B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=robh@kernel.org Received: by mail-qk0-f172.google.com with SMTP id d206so3348031qkb.0; Wed, 18 Apr 2018 14:17:08 -0700 (PDT) X-Gm-Message-State: ALQs6tAalEqA6+x+oXliIX0/UhAQBZMqjVTxXebXbJRu3PCG/ukEXhI7 jN5QqyxDk+/PGNA9p5uazE7JeL+4uJAuUCvsPw== X-Received: by 10.55.18.155 with SMTP id 27mr3235459qks.96.1524086227305; Wed, 18 Apr 2018 14:17:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.163.228 with HTTP; Wed, 18 Apr 2018 14:16:46 -0700 (PDT) In-Reply-To: <20180415125528.GA15803@arch.home> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180407175802.29444-1-ctatlor97@gmail.com> <20180407175802.29444-2-ctatlor97@gmail.com> <20180413163527.ludqnnc5nkj4spre@rob-hp-laptop> <20180415125528.GA15803@arch.home> From: Rob Herring Date: Wed, 18 Apr 2018 16:16:46 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 2/3] dt-bindings: power: supply: qcom_bms: Add bindings To: Craig Tatlor Cc: linux-arm-msm , Sebastian Reichel , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Linus Walleij , Andrew Morton , Randy Dunlap , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 15, 2018 at 7:55 AM, Craig Tatlor wrote: > On Fri, Apr 13, 2018 at 11:35:27AM -0500, Rob Herring wrote: >> On Sat, Apr 07, 2018 at 06:57:45PM +0100, Craig Tatlor wrote: >> > Add bindings for the Qualcomm Battery Monitoring system. >> > >> > Signed-off-by: Craig Tatlor >> > --- >> > .../bindings/power/supply/qcom_bms.txt | 93 +++++++++++++++++++ >> > 1 file changed, 93 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/power/supply/qcom_bms.txt >> > >> > diff --git a/Documentation/devicetree/bindings/power/supply/qcom_bms.txt b/Documentation/devicetree/bindings/power/supply/qcom_bms.txt >> > new file mode 100644 >> > index 000000000000..6296399edc09 >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/power/supply/qcom_bms.txt >> > @@ -0,0 +1,93 @@ >> > +Qualcomm Battery Measurement System >> > + >> > +The Qualcomm Battery Measurement System is found inside of Qualcomm PM8941 >> >> Is it Monitoring or Measurment? >> >> > +PMICs. It provides OCV and coulomb counter registers that allow the kernel >> > +to infer a capacity level. >> >> s/kernel/OS/ >> >> OCV? >> >> > + >> > +Required properties: >> > +- compatible: Should contain "qcom,pm8941-bms". >> > +- reg: Specifies the SPMI address and length of the >> > + controller's registers. >> > +- interrupts: OCV threshold interrupt. >> > +- io-channels: Should contain IIO channel specifier for the >> > + ADC channel that reports battery temperature. >> > +- io-channel-names: Should contain "temp". >> > +- qcom,fcc-temp-legend: An array containing the temperature, in degC, >> > + for each column of the FCC lookup table. >> >> What's FCC? >> >> > +- qcom,fcc-lut: An array of FCC values in mah, one entry for each >> > + temperature defined in in qcom,fcc-temp-legend. >> > +- qcom,ocv-temp-legend: An array containing the temperature, in degC, >> > + for each column of the OCV lookup table. >> > +- qcom,ocv-capacity-legend: An array containing the capacity for each >> > + row of the OCV lookup table. >> > +- qcom,ocv-lut: An array of OCV values in mV, one entry for each >> > + capacity defined in qcom,ocv-capacity-legend. >> >> Need to specify the sizes of these if not 32-bit. >> >> All these seem to have units, so add unit suffixes as defined in >> property-units.txt. > Should i change code to use microamphours & microvolts or add a new > suffix? It is preferred to use the existing ones unless you have some justification to add new ones. Rob