Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2381611imm; Thu, 20 Sep 2018 12:14:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYKRtMYP8X1g50sKmZYcU0zxBxZ+u8NzRJnXlUevNARWOzVoWNtyMwAcwLv1DxG4VMaWgmW X-Received: by 2002:a63:3dc6:: with SMTP id k189-v6mr38002358pga.191.1537470871331; Thu, 20 Sep 2018 12:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537470871; cv=none; d=google.com; s=arc-20160816; b=vmUOVlq5MjPLrnfOKmnCxOv5B2pkUbYgYPa5RUT3ksYL0EdTUdFqZDVqNG4iwd5xPC 4OzCJZeeNmcLiO9MfdFbUqGV+zTXunwDcMC2p6UPs6nUxEge44MRPZe/ZwuPp0zTSDiN To0HwZKSf4j1S2vrJwQ4dViBigYbNa+kLrfKlPEiS5ifG/tWGkbJE8ncrd9ASBc1/MkY piSF/RzySMpt4IhBvTbnHAptq4bbBDurB8WzSDwC+2h/4aFm6FXPEJAv1Rw4he3wM3kg R5d9yBZdMOP1R4YgtZCX3VNzwYU/wtYrv0Jtr01IcysnFpw+225Gi3uTLJeuoLfVNRXV uEuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=7UZffiZbIMv5K7TvvhuvQ/1USYMYxFet6EpiUX4mTJ0=; b=szYL7xXkrJfu05UMmwERQYyurx/PTp+XNXmKOfFcKM0s6uRzIJ/W21RtMoF1isxjEJ nX0KfceRvxbNmbZG6fsLxG8TqmCZfu9vzFmQ6Y8/bdbxvHKV32vp00vGR/9N345iXTOJ heeLIBuxPYpNfYWBLqstNDY6bHg80ECnhrRprsqvDi+1ILeu4JnaWWeySCh8jv4tOlWh vgSdplA+aHvSDRgyCPYGzx7NwV1X2+9glSEUWvLrWOgLy/PGY4wu3/REYou1e0JL8MNk D+z2NStW8KHwfGZ1Lm1ft54GM4s4paOoq6vSSD5xnoPYqJ95/Gbv6sa3aRu/G/LxUhfQ 4wCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MgEtHDfH; 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=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 d33-v6si24938587pla.292.2018.09.20.12.14.13; Thu, 20 Sep 2018 12:14:31 -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=fail header.i=@gmail.com header.s=20161025 header.b=MgEtHDfH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388228AbeIUA65 (ORCPT + 99 others); Thu, 20 Sep 2018 20:58:57 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35812 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbeIUA64 (ORCPT ); Thu, 20 Sep 2018 20:58:56 -0400 Received: by mail-wm1-f66.google.com with SMTP id o18-v6so689961wmc.0; Thu, 20 Sep 2018 12:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:cc:from:message-id; bh=7UZffiZbIMv5K7TvvhuvQ/1USYMYxFet6EpiUX4mTJ0=; b=MgEtHDfHBZSxOy/uZGxIyCzrws1+NCNVIgZaS5+44s//UBWBLAzvYeCZV53I02J+Li uc8XLGeNz8oAJys1Lrr5vqrsNZdtFmU5iXIGNKF9tVSKwZeUnPYDJbrAMlMYXwCE9GI8 x0RXfeRovzpg/zv4j65dPfjWOKQMjypbVkG5A6D7Lxaocuy7F1ckE0K8X7fWLmQsaGxP HjHk7Nm4Jkt/HnsWZpJZR8a+Xso+sqW7oe1T1aBq6T09Bfw4T4V1K/lA5A0mVugff5eP Tvnylv0cKck+rrpdqeDUEMUWnYXlT8CtHd1/h/wLgtG074haSE02SQyNt2Yox2itgBHe BxlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:cc:from :message-id; bh=7UZffiZbIMv5K7TvvhuvQ/1USYMYxFet6EpiUX4mTJ0=; b=av9R1RewBxLJ9av45gWzC+f7xaUFfkHSLWOTY3+IWtqKih5NNwlv5DRwaX1IKKD1uh 3F1KzmVcJZjSCkZd+3d0eyM2Tpy4slCG1SwCFxtbGV5pBBGYJHZBulSA9zHhSlRfZ6bU xCdVbGJtJPSwuC0j8s+NTI0yMYwqvZvFoa1ynexgpzbrna83kS/wJPTXTHVa/AQFKL3L wNDkB1khjET/CKq9CIAdAR33QxZVMX/Fhz/XpaHLOf10xGktz+VkypU3ZzJGcEWLhhc+ gZKlAJpqfcfgB+BNvJQPK1k1NO7yHb5bvmY+3c310YjohLX+0vjpxy8YrKKy6fHmp0j3 GPRg== X-Gm-Message-State: APzg51DaSHbHcPSUIE+v2y8eGMXRpcbRxiANSQH4G4mLQcbZjFa7Bxxn YrSrNRngCVbdqy03WuXA2A== X-Received: by 2002:a1c:9b91:: with SMTP id d139-v6mr4312891wme.50.1537470836933; Thu, 20 Sep 2018 12:13:56 -0700 (PDT) Received: from android-dhcp-8-1-0-d4-38-9c-a2-1f-05.home (host86-147-9-252.range86-147.btcentralplus.com. [86.147.9.252]) by smtp.gmail.com with ESMTPSA id j133-v6sm3671386wmd.12.2018.09.20.12.13.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 12:13:56 -0700 (PDT) Date: Thu, 20 Sep 2018 20:13:52 +0100 User-Agent: K-9 Mail for Android In-Reply-To: <20180920165847.6xqzeoqzqkyotshx@earth.universe> References: <20180407135934.26122-1-ctatlor97@gmail.com> <20180614151435.6471-1-ctatlor97@gmail.com> <20180614151435.6471-3-ctatlor97@gmail.com> <20180916121045.aptj6nciwskfg4st@earth.universe> <4BBA3F28-A769-4F09-86DC-1E3906C53B26@gmail.com> <20180920165847.6xqzeoqzqkyotshx@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v7 3/4] dt-bindings: power: supply: qcom_bms: Add bindings To: Sebastian Reichel , Baolin Wang , Rob Herring CC: linux-arm-msm@vger.kernel.org, Mark Rutland , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org From: Craig Message-ID: <5039A15E-E604-4D03-AFEF-4B139EB18A30@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20 September 2018 17:58:47 BST, Sebastian Reichel wrote: >[Dropped a couple of people from CC, added Baolin] > >Hi Craig, Baolin and Rob, > >On Thu, Sep 20, 2018 at 03:32:29PM +0100, Craig wrote: >> On 16 September 2018 13:10:45 BST, Sebastian Reichel > wrote: >> >Sorry for my long delay in reviewing this=2E I like the binding, >> >but the "qcom," specific properties should become common properties >> >in >> > >> >Documentation/devicetree/bindings/power/supply/battery=2Etxt >> >and referenced via monitored-battery=2E > >> Thanks for the review, what bindings for ocv would you prefer? The >> spreadtrum ones or mine? > >Most importantly I want to see only one generic binding supporting >both use cases=2E As far as I can see there are two major differences: > >1=2E Qcom uses legend properties and SC27XX embedds this into data >2=2E Qcom supports temperature based mapping > >The second point is easy: Not having temperature information can >be a subset of the data with temperature info=2E The main thing to >discuss are the legend properties=2E I suppose we have these >proposals: > >Proposal A (from Qcom BMS binding): > >ocv-capacity-legend =3D /bits/ 8 <100 95 90 85 80 75 70 65 60 55 50 45 >=2E=2E=2E>; >ocv-temp-legend-celsius =3D /bits/ 8 <(-10) 0 25 50 65>; >ocv-lut-microvolt =3D <43050000 43050000 43030000 42990000 > >Proposal B (from SC27XX binding): > >ocv-cap-table =3D <4185 100>, <4113 95>, <4066 90>, <4022 85> =2E=2E=2E; > >I prefer the second binding (with mV -> uV), but I think it becomes >messy when temperature is added=2E What do you think about the >following proposal (derived from pinctrl style): > >Proposal C: > >ocv-capacity-table-temperatures =3D <(-10) 0 10>; >ocv-capacity-table-0 =3D <4185000 100>, <4113000 95>, <4066000 90>, =2E= =2E=2E; >ocv-capacity-table-1 =3D <4200000 100>, <4185000 95>, <4113000 90>, =2E= =2E=2E; >ocv-capacity-table-2 =3D <4250000 100>, <4200000 95>, <4185000 90>, =2E= =2E=2E; > >-- Sebastian C looks good to me however I do kinda think it should be millivolts as I d= on't think any hardware reads in microvolts and the zeroes make it look qui= te ugly