Received: by 10.192.165.148 with SMTP id m20csp1956462imm; Thu, 26 Apr 2018 04:41:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+B2nM8OeJe50Pw2m2abggxFKb1K0zHX2rmg6UOzCb4ScnrRRx3CJO2xjNkHUfJHn6PI7/8 X-Received: by 10.99.144.196 with SMTP id a187mr26936659pge.189.1524742901878; Thu, 26 Apr 2018 04:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524742901; cv=none; d=google.com; s=arc-20160816; b=BIQWmX/TGuCg3xZ6gYHa7VOa+iK4saT/K+5UzELOAOITyXBEn4+fNAXFmWimCN4RLw dGygh0A+n5dnSFHGpdTCIMBWUGw/D7NBQvraU0RJqdEg99rnTcmSa6yGXNvbrfXf+nU8 ST7k8BVN9nMdSZyfX+0kfehQXjHtUHOqx0zo1ZY6rI5nyqEakMzPj0bfcQOgL4LzOLT6 1q4dOZtugt6/7IyiVPcYyIIiw9BK+/PLf/RkukHwDveOUlPSVUPO0W4pgIjoquXo4d8d 7hfGFlsBmLcAJLRm3WttScRtGcEoEHGcGkB5PmgZ+SWnDo0Ive5oUHAHlsDnLULRSD0J h5dQ== 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:dkim-signature :arc-authentication-results; bh=uS7+Bo5SDfGUPuYxM7qjce40T5Pf4RFPl5ZCv3nzD7E=; b=okaAUaMq2xypcAp8zb8SIHFid3nvO/ImJQ1Abx+s+EpDMo+AC2rPt1y2uM2gAMmwS6 EMZrk3hjIAoQIjsKKF21+A5XSYJ/UI/eg91yyPgESmeX+4Fx+d01AyK1ywMs2+xuRZ8S kN0sGjjQ0unFShaf6ZIVwjQboH5yrcrow4faucakemOeD3UmznhgydmeZJbnAmiIKuDz qJU7LDZYgWa02x+hNTWCZ0rI0jU2MFQZY22JtBoKiYsOwnEdVHVSdCEiv+GvIaq0HIJq 5aREAUINzpzTJ+mf4vsCicsFdQCEvODy59i5AcMu93xzTnCogjvvdO5WuKna4HTD+qML OmwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PU85+3OF; 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=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 e65si18238310pfa.74.2018.04.26.04.41.27; Thu, 26 Apr 2018 04:41: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; dkim=pass header.i=@linaro.org header.s=google header.b=PU85+3OF; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755483AbeDZLj4 (ORCPT + 99 others); Thu, 26 Apr 2018 07:39:56 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:41376 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755504AbeDZLjv (ORCPT ); Thu, 26 Apr 2018 07:39:51 -0400 Received: by mail-io0-f196.google.com with SMTP id e12-v6so7619006iob.8 for ; Thu, 26 Apr 2018 04:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uS7+Bo5SDfGUPuYxM7qjce40T5Pf4RFPl5ZCv3nzD7E=; b=PU85+3OFqArfach59rhiPfceKSfuE3+vUSFeVL43o+oGf1Co+B5QB4zL4a74Aw52jX CSvf9pL/1ZsKRLqUGFqtdOi/9xOfxJwAu5RAtJHLrJuJKHF9Vxw+tC9T3jLxKWrFvSSQ 37EF8cMicWy8P1dTYHSA93CS1QxxGUY+t39QA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uS7+Bo5SDfGUPuYxM7qjce40T5Pf4RFPl5ZCv3nzD7E=; b=p31so1ufduqEmAdImxqOFNU8mhyCgx1mWLQHcz4sSHwMgGHlo0biX9SR2cBnPXwNXQ 8WOw3q8EDr453F/3jXIEWQtg5JcWn2p231i0/+6UL6m+qyyBqct/cyfpJOdT3iiyznZ6 +Ba1dtfyDy5uUtUdAdg1WTiHs6kMODobEdzVNbmiQ+zmKt9MTR/o9dVdzhSUOSzjIFoe kv7PJnMRg6Avrq8UYww/yFRt5Gwtuz1V8blbTIFuondrNGdFsHUuXz8HpintNT9wrswc AMjEeVKL5+tW+oKVuRlKIiuKKN3+JhiWcriYBclEHsNsb/6HdhEoD7Z8f/URapFPc5m6 JDsg== X-Gm-Message-State: ALQs6tAnAK43ZyGWeQ8HhiSJ4j4swLTNd555nEZNpvfub6r7xUdGmF6K pjwppuAFFlHCIZZ1E1t0kfTiIlJPwe2L0BBbPQ7O3A== X-Received: by 2002:a6b:1b12:: with SMTP id b18-v6mr34424762iob.175.1524742791211; Thu, 26 Apr 2018 04:39:51 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:2793:0:0:0:0:0 with HTTP; Thu, 26 Apr 2018 04:39:50 -0700 (PDT) In-Reply-To: <20180407134712.23131-2-ctatlor97@gmail.com> References: <20180407134712.23131-1-ctatlor97@gmail.com> <20180407134712.23131-2-ctatlor97@gmail.com> From: Linus Walleij Date: Thu, 26 Apr 2018 13:39:50 +0200 Message-ID: Subject: Re: [PATCH 2/3] dt-bindings: power: supply: qcom_bms: Add bindings To: Craig Tatlor Cc: linux-arm-msm@vger.kernel.org, Sebastian Reichel , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Randy Dunlap , Linux PM list , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "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 Sat, Apr 7, 2018 at 3:46 PM, Craig Tatlor wrote: This is very interesting bindings! > Add bindings for the Qualcomm battery measurement system. > > Signed-off-by: Craig Tatlor Please expand on acronyms as requested by Rob. > +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". These are fine (and good) as bindings go. > +- qcom,fcc-temp-legend: An array containing the temperature, in degC, > + for each column of the FCC lookup table. > +- 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. I wonder if these are really Qualcomm-specific. Can't we just cut the "qcom,*" prefix from all and simply define these lookup tables in a way (with units) that makes sense to all kinds of battery capacities? Maybe spell them out though and avoid the abbreviations. Just put those in the already existing Documentation/devicetree/bindings/power/supply/battery.txt so others can reuse them from there. You will see that those bindings does not abbreviate but spells out the natural sciences definitions to it's a bliss to read for everyone. Yours, Linus Walleij