Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp834210imm; Wed, 13 Jun 2018 09:01:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI1mlRGwiepxrNziw7RMYUWe9gnVg5/tj8qEFPO1WuyDWjl70vdZMQ7+xMwSnG/Qd6jxC9M X-Received: by 2002:a62:48cd:: with SMTP id q74-v6mr5360711pfi.153.1528905676573; Wed, 13 Jun 2018 09:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528905676; cv=none; d=google.com; s=arc-20160816; b=gjrAuwR0JHMcS8I1dk2U8qzkLHXRlHGzIb9l7nwAqACV4gB3WP3oQxsFTKXrRG3eC3 kATPWg8odAOgdPBGYaZU3ysVGyESWGiAV3SKW5RAwU+MpGYB4GRXrvseorrQJCGW4rxn WafWHKI6ug3tVFQHAvZbceXNJWzKCZNlHwJJ46ywoZqOC19C7H6gb5p8i4azdyEMvV7I uDromZS83Y/Yichhm4idFPssLmHO49AkO3PjoVaWvgolyiMS/4+nb/z5pPvMe2IbyNjj 7rNsxHd4KivldXwPKtWWuSZl+o3B+Ab9Ao5dp7902dKd7VRV7N+k4O6ZY7qr4fcAYH7w BMHw== 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:dkim-signature:arc-authentication-results; bh=6uN8KLVLEeKgTySSIUdMQ7iszYPM8XSsACbggqROSvc=; b=Qu3OIR9sZNMj0yU7LGdAcmKECyoFs0+VplnuVEbiT9mDnWlPNd+QHhFxweB1E/LzmH Tytry7FcoXFwUwjoJu5gKcVi6vDQjhdLdP9CeiHAkFLs1Wal3kUKyW5iB1IQtwhnXaY1 mvU246ziyHbS+7JyBYhuX+4ykKnL0tXxfmLGvkNQkwyOCgAN8ZYoP2FI/IPX3G49bv77 1ZF8ckCsyxApgIp77A3QMCc80BHt/PecbVa669++5J5dBT6uhgAWRUq4IEByTDVH9NVh IyWThUPoeLzLsBvkeVs8oxKJp/W5nZRHUHfHFgrucBoWcgQ1cqW27hY5j/LxRsTGZnG8 1l3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qDCrE6LW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l189-v6si2595725pgd.528.2018.06.13.09.01.01; Wed, 13 Jun 2018 09:01:16 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qDCrE6LW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935986AbeFMQAc (ORCPT + 99 others); Wed, 13 Jun 2018 12:00:32 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:41294 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935726AbeFMQAa (ORCPT ); Wed, 13 Jun 2018 12:00:30 -0400 Received: by mail-pf0-f194.google.com with SMTP id a11-v6so1647135pff.8; Wed, 13 Jun 2018 09:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6uN8KLVLEeKgTySSIUdMQ7iszYPM8XSsACbggqROSvc=; b=qDCrE6LWSQyMKGb9wxgV0iSXHX9SQYq2KRzbH9kLvaa6+bazdhMlAjCm9Wb3eC7IQP DW/WKnsqlEPCHHeaUuwWZhhX7y/smQMNg3HNjUFjxb/ykeYeyob4w+bAItbmeZW0dd49 YvAqYeiTgseXhHdUs7f7WYYk2G5wlCtLUY+eTDC874uYHLKKqOEPWaqarlVL1pZDb7xl U8bIg28+tGKLbgrytChycEG5naNxDiw/n3taac9pRYTITAThkTiMApa+COdak82lqP80 //86Sk5nTfx6x6yDKpyplZ1yVsxDcY7u7yUMFM9rZUwYqLSAGSK25ISBH0kUnjdIPbCF YoiA== 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=6uN8KLVLEeKgTySSIUdMQ7iszYPM8XSsACbggqROSvc=; b=OgSEICT9Y8cq/je1kXwZrSon1AriwfPMYmqaKnNW0xTZq2h12LJ015VhuWQ09VNrbV Vlub20FmudJyOMgEC6BmOoK57NoclDH87GgG+SG1ZfO2tWmdqsyVFCdRAtduI6bHmslI JJx4bE+X4HvreSwKWyWKcLuQeivCvK7OR4UWIJgDmOc4ykapSeq5wHcbhx1ANvNIkKz4 0+bCaLeBn6foaoWnQxwfmRdt8kmK8xd1beiANLlDpKpJcww4x7wZTKdjgHTzhb6L1I3g 3B2wqM8Eswe4+KU8+f5Ix/7E7B6qUPlPYwJ8orGkRrHdAbU+GBnlRokji8ozFLV0Ar9E +rUw== X-Gm-Message-State: APt69E2iE2KunGZXUVu2qXKeEqYgK91AEMZKNFlSlFikHs/KZ1UP4nda fMDQzkpyOxns2gPw2Y58Gw== X-Received: by 2002:a62:c8a:: with SMTP id 10-v6mr5465238pfm.27.1528905629825; Wed, 13 Jun 2018 09:00:29 -0700 (PDT) Received: from arch (host81-131-105-100.range81-131.btcentralplus.com. [81.131.105.100]) by smtp.gmail.com with ESMTPSA id y23-v6sm6388903pfa.73.2018.06.13.09.00.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 09:00:29 -0700 (PDT) Date: Wed, 13 Jun 2018 17:00:18 +0100 From: Craig Tatlor To: Rob Herring 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: <20180613160018.GB10090@arch> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180607181306.9766-1-ctatlor97@gmail.com> <20180607181306.9766-3-ctatlor97@gmail.com> <20180611181515.GA32546@rob-hp-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180611181515.GA32546@rob-hp-laptop> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 11, 2018 at 12:15:15PM -0600, Rob Herring wrote: > 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 Thanks for the review, will mark as 8 bit in v6