Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4378378imm; Mon, 11 Jun 2018 11:16:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkc+f0yA59inSVP4C/RzSE8r9apcdRqqEzLCxs/0y1WeV9aVX0E0qxL7IrpcstcsgTSKdb X-Received: by 2002:a17:902:8685:: with SMTP id g5-v6mr287852plo.180.1528740996178; Mon, 11 Jun 2018 11:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528740996; cv=none; d=google.com; s=arc-20160816; b=Y/CFSyENyeuL4h9BlCoNUstJoey4nJvMQJ9EySnKy/UBPTjpOZUQ+hqVYgRN78FH18 4825rZE2qRzenfUWo7IAFGqjWpz/UuPb67cCJya5mDCYJAoSjNG8QKAiHT7H9VQkzPbP NcJIzpJVs1rVAaRbmCG/g7M6fMGKB8Dn/oBKHQGEOrFI6xrFkZQUUBrFmCkFi0L64/Di 0v7izBkY2hEpDyYkbWBTT1tkuFHCQIIyyuaPY36zfhxsWg1QZAan+VfZtiWFGWx6ym++ 3M31xT5K76gt0gTLh+EFgHBkPMwAc97JXPGDYdyagwdQjhfxNdcgjFnUKV8DIHz++s0q hN8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=od0tPLMB85tETDmIVCjywjCvXuUto8NThnQAcsf+i38=; b=MBphGnBwnfk4F4E5Eu4+2tzq9UwRKsk5bheIMuqcZ0Ru3qSIVw2+IuNyePNmn2e/FZ q5zlrPf7KQFo345htC6fy+WpHL40RCkqusjFzmyrsy8Fc/e9xeNi17MeiehCyKVz2xVU hBkKtqwnvFVGU+tz99LNulPKu00dEvLyOo+uSaPcEQWx+kPZMXwOI1fpnqBTRX8aLCj6 JOlwbxj2XOhiBBY8C0aO+G1Q+wdEuEZk+8nt9etUnN73787xucLL4YrmJ45V2wXx2KM/ G3UnEoRisJhgPM5yYA/TVVkIH6X3Lnl5XzzpTWHYe0ltBZOZU6Yn6R6yv/W6/VRe24ub Yp9Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si63337517plp.25.2018.06.11.11.16.21; Mon, 11 Jun 2018 11:16:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933501AbeFKSPU (ORCPT + 99 others); Mon, 11 Jun 2018 14:15:20 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:43512 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933452AbeFKSPS (ORCPT ); Mon, 11 Jun 2018 14:15:18 -0400 Received: by mail-pf0-f196.google.com with SMTP id y8-v6so1593050pfm.10; Mon, 11 Jun 2018 11:15:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=od0tPLMB85tETDmIVCjywjCvXuUto8NThnQAcsf+i38=; b=Hn9PXuCAI8lBIaIj0YkcdFq6YrxAvSzPM/LHEpgnegKKFVhihI3X76pWwLucV4uotI J70bvJDgwA6tpAGIgDVkw6ojpppk0AliX4vEtbDLTqky0PnvSrSNX8BAu/xrud1CgxZI QCfSO21loO6pN4Ki9OSgIGbOcZ1IyvwngCx50RPfNIt2nEt209Kvms+eQ1+yk0Av0mR7 CoZr4+X/QAZQOX9OvXW40FCb5o3KwPbxNIhHS6gf5/0zP1Dttz+ApgcoNdRLebVPRrFM sSDmJUvLENpWopG4CegbquwdydQY2r93Jm3e7wNbYPLD+po1MIDzIUr+JgVrVsS9wjKp 9afg== X-Gm-Message-State: APt69E3ExyMXSmc6KL1n3h+3dh1BMhmrlSlzAAP7vNi2vwJ1yZjw0mlQ CDJMFv3yEwqMMN6/CAaGww== X-Received: by 2002:a62:d146:: with SMTP id t6-v6mr237643pfl.127.1528740917856; Mon, 11 Jun 2018 11:15:17 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id u84-v6sm77694527pfg.156.2018.06.11.11.15.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Jun 2018 11:15:16 -0700 (PDT) Date: Mon, 11 Jun 2018 12:15:15 -0600 From: Rob Herring To: Craig Tatlor Cc: linux-arm-msm@vger.kernel.org, Sebastian Reichel , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Linus Walleij , Randy Dunlap , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 3/4] dt-bindings: power: supply: qcom_bms: Add bindings Message-ID: <20180611181515.GA32546@rob-hp-laptop> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180607181306.9766-1-ctatlor97@gmail.com> <20180607181306.9766-3-ctatlor97@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180607181306.9766-3-ctatlor97@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 07:12:51PM +0100, Craig Tatlor wrote: > Add bindings for the Qualcomm Battery Monitoring system. > > Signed-off-by: Craig Tatlor > --- > * Changes from v4: > Uses proper units and expands some definitions, > along with changing vadc@ to adc@. > > .../bindings/power/supply/qcom_bms.txt | 91 +++++++++++++++++++ > 1 file changed, 91 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..a1a32d6ab460 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/qcom_bms.txt > @@ -0,0 +1,91 @@ > +Qualcomm Battery Monitoring System > + > +The Qualcomm Battery Monitoring System is found inside of Qualcomm PM8941 > +PMICs. It provides open circuit voltage (OCV) and coulomb counter registers > +that allow the OS to infer a capacity level. > + > +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-celcius: An array containing the temperature, in degC, > + for each column of the full charge capacity > + lookup table. > +- qcom,fcc-lut-microamp-hours: An array of full charge capacity values in uah, > + one entry for each temperature defined in in > + qcom,fcc-temp-legend-celcius. > +- qcom,ocv-temp-legend-celcius: 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-microvolt: An array of OCV values in uV, one entry for each > + capacity defined in qcom,ocv-capacity-legend. Need to say which of these are 8-bit values. With that, Reviewed-by: Rob Herring