Received: by 2002:ac0:a852:0:0:0:0:0 with SMTP id c18-v6csp12262ima; Fri, 21 Sep 2018 08:42:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaFHG7H4J1TrWY/PtGtkR8q37VmPRZ8oQsfimxFyZ5EaokE1F/Qy1NarYMLo10hDU2VC/DZ X-Received: by 2002:a62:d44a:: with SMTP id u10-v6mr46911116pfl.144.1537544532479; Fri, 21 Sep 2018 08:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537544532; cv=none; d=google.com; s=arc-20160816; b=P0Y0iyPGaa7LJN9LjSTJoK1Svijo8FGlttQp2uuCHtiBQDqdet95UtqY1IDcOQFVIN BwU10x4aRxGOwy8WBQgTrdVlKQOKP3b6TwcvTuJd2+z54tj93eIvAXBFSMm3x1qoxGGY OufcFyTN/15O4F8mH2CnjbHeZ8b+stHzXah9iWs/hD24Eamo7f+TQ4jURsfK3t1qu4z0 4h+bED5k+6dfNDmFgEq0ZW1H47DVROq1yABpPywOkjuKk4PMPKP+UngLnDspabGyZnDc UdG+lY+t0B/N1CThbMFz/7NwBt8wUefWxqIQLZXjtFUHbX6gYRhlavdBle5fuFmDe1rq FDRQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=pkFDCul34hIhWd7S2ibRl0Dwd0s0rGpS2Nwb4spgIzU=; b=Q1y30lVl0UfYbMf8DTYvW56cxW1j2cM3zYSEufrwzgzE4HXaSYwIASxaKT5S0LNcCE VNUyIbs9CJS2TKjYQDhUzHSim6ZS2WAd/GxWiGmHfZYENLbvhMXbCySAnaqoiFIKxQwE tmWGBrSVLnagECi4kBkPUYEJQSWhtLAKWtcjy1qhk+6NjVfbr+E55MpcpyUwybwIqeho J5HVXf23utd7Z9N771ylPFP5TW2kEVKirPEt/7HEqSWYDr2Tp9E8g3aQVyn5s/fyMLni nFBx8CfU6lgBpv65o+rcWr30eKZb4A2Gzn4aTfj6DZWXGA6lOrruMWWn/T///SD6Wp0j KWXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NDZ4dr9c; 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 x3-v6si23843185plr.138.2018.09.21.08.41.56; Fri, 21 Sep 2018 08:42:12 -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=NDZ4dr9c; 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 S2390381AbeIUVaX (ORCPT + 99 others); Fri, 21 Sep 2018 17:30:23 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:44282 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390316AbeIUVaW (ORCPT ); Fri, 21 Sep 2018 17:30:22 -0400 Received: by mail-io1-f65.google.com with SMTP id u12-v6so7645640ioc.11 for ; Fri, 21 Sep 2018 08:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pkFDCul34hIhWd7S2ibRl0Dwd0s0rGpS2Nwb4spgIzU=; b=NDZ4dr9ccjiGoWSNT9X7ScBVIxj6npmaS7gLwKVe3jgp6kv2bogRBad2GKCl8hAHqt WMOASTXPpXXCSISfCgdvbPfy+/0gLjZBTyEUmcu4M2pTXA172AVebPb37A7RMdSLBjbG mhtQIx9/PRQ0idma8GCg7Z7XbvbXeC5lps9Nw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pkFDCul34hIhWd7S2ibRl0Dwd0s0rGpS2Nwb4spgIzU=; b=ObV3Xb7qLqPeTff3x/eDdjYy65hFDYtIA50jbapeEJoLlknzKLF5gb5smWMeI6pb0X 5s7E+znoSCh76Xc6DeFVImXYhR7oHCNbDeWk3mMXXlpJ1ZcKmhRqfYKyD7EaXOH8HOsH mGs69qxoO6XfXDpSGpRZ+HU3l2pIjB+V8ALiaxxueZZ+WCiBVi8cmjByQKkRxCCZpUUG 0PHDmR2nTvmr4Cn83UnKL/E/tPUh1zZjMV/pEMIn3lHCDGLd9YvDAMS7ZzglngSCNGwQ vBB9dQphhgnIAM3v63/GDfhAsvKYQNUpWq/5WvGtEEY0BZvY7sj9vTvLfFQP8hyMLuQB d8vQ== X-Gm-Message-State: APzg51BRifj3bRkcpj5ygpkJ2VWrkJcwbcMXBsYHe2d0EpfX4VnBoE3/ mXcQDbuUGWJ5ChnZ7PMwDRuO+JTDOWEjC3B7HVTZZQ== X-Received: by 2002:a6b:630a:: with SMTP id p10-v6mr37197316iog.175.1537544456576; Fri, 21 Sep 2018 08:40:56 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <20180920165847.6xqzeoqzqkyotshx@earth.universe> From: Linus Walleij Date: Fri, 21 Sep 2018 08:40:43 -0700 Message-ID: Subject: Re: [PATCH v7 3/4] dt-bindings: power: supply: qcom_bms: Add bindings To: sebastian.reichel@collabora.com Cc: Craig Tatlor , Baolin Wang , Rob Herring , linux-arm-msm@vger.kernel.org, Mark Rutland , 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 Thu, Sep 20, 2018 at 9:58 AM Sebastian Reichel wrote: > I prefer the second binding (with mV -> uV), but I think it becomes > messy when temperature is added. What do you think about the > following proposal (derived from pinctrl style): > > Proposal C: > > ocv-capacity-table-temperatures = <(-10) 0 10>; > ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, ...; > ocv-capacity-table-1 = <4200000 100>, <4185000 95>, <4113000 90>, ...; > ocv-capacity-table-2 = <4250000 100>, <4200000 95>, <4185000 90>, ...; I think this looks very elegant. It's going to be very easy and intuitive for people who need to maintain these device trees and it will be easy to handle in centralized code for all platforms. Even with the microvolt notation. If possible could we go with this? Yours, Linus Walleij