From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93211C433FE for ; Thu, 18 Nov 2021 01:57:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7143461AED for ; Thu, 18 Nov 2021 01:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242407AbhKRCAk (ORCPT ); Wed, 17 Nov 2021 21:00:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242400AbhKRCAi (ORCPT ); Wed, 17 Nov 2021 21:00:38 -0500 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F19C1C061766 for ; Wed, 17 Nov 2021 17:57:38 -0800 (PST) Received: by mail-oi1-x233.google.com with SMTP id be32so10620689oib.11 for ; Wed, 17 Nov 2021 17:57:38 -0800 (PST) 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=4GgIJU0V+ih5Gpji1Pi6wi66j+iNTVRk7nYTxCGKEII=; b=R3NdEUcgp/SALb49E79HIfh/H9l6vgFtcPngo8gtuOL4QeM6wSmOrH2fKAMtc11F1O uR8rQJ/5+9tqYbKiRXHMtALAW/b2OMnExwVlQqBRrIP/VPUDixGZpKtA5yjqESqc7shX qanJvyIVLUlP7LtyYMPUttshh1V065F/X0ieYn89NahGTGvMh54DNL2wBAQvQ1+ql8nB PbkTlM8rPIKD3eY9ZzcOgrAeEYImePXBTpjIkPVrc5eMnYQctQe3u89f9sVQQdvPCo3U nnhhDXlOCxmUtF97Z7kIJaXu77l3Oh0Fd8DnW3JBmEEB/cHHTVWdpl57ofXo9ENm685C VGZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4GgIJU0V+ih5Gpji1Pi6wi66j+iNTVRk7nYTxCGKEII=; b=ZVsP7ttlxBBxFSQ0fh2GRRscaPit/9MzLQu/jXeULjry+T9d5PRHjbBJt40+9sQrJz cj8yu473a3QNiwKPTJpVCEIlBaYEzC4r6/r/HVm6ditGDhDvJk7tPUWgqVOLOYQwgk/8 GVRgJK6pZ1Z8bekN2BZg0bStHyEBE78tIsPpRdcmAGOEtnmwvRtPHO5tvd113d5+0H4b M5lFHo7vD9vW1JrnruHa99llEqnDKM2gf045PEyZOmThSl84ql0H/kImqNxUllJmBMHO x5/TYgUBoC+t2eaB8nG5K7z3SDTY586sZUsbGTG7unb6LrAvHss6aCh1VOpzX+UPPIED D2iw== X-Gm-Message-State: AOAM530TfCMkAUWdZtZpj6Sq+t9fFXTp+gE9SQutrWRsEKXCFUXw0OR6 7xlzXv9cmUZPVo7Vh3rkoMd0OcIhTCWoMsTfHBnRHi37QDbaoA== X-Google-Smtp-Source: ABdhPJwUZxZy+oDrVbVf3E8Uxu6BnHQNyTmrLqFBNwedah57MWTES9fU07YwFkjK4DKiKLrVOUn5MDF0Qc6cHwyKKO4= X-Received: by 2002:a54:4791:: with SMTP id o17mr4452519oic.114.1637200658149; Wed, 17 Nov 2021 17:57:38 -0800 (PST) MIME-Version: 1.0 References: <740503b6b6439e01959016223f1ae464e82824c3.1637061794.git.matti.vaittinen@fi.rohmeurope.com> In-Reply-To: <740503b6b6439e01959016223f1ae464e82824c3.1637061794.git.matti.vaittinen@fi.rohmeurope.com> From: Linus Walleij Date: Thu, 18 Nov 2021 02:57:23 +0100 Message-ID: Subject: Re: [RFC PATCH v3 1/9] dt-bindings: battery: Add temperature-capacity degradation table To: Matti Vaittinen Cc: Matti Vaittinen , Sebastian Reichel , Rob Herring , Lee Jones , rostokus@gmail.com, fan.chen@mediatek.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 16, 2021 at 1:24 PM Matti Vaittinen wrote: > Some charger/battery vendors describe the temperature impact to > battery capacity by providing tables with capacity change at > given temperature. Support providing this temperature - capacity > dependency using the simple-battery DT nodes. > > Signed-off-by: Matti Vaittinen Since we already support providing the capacity at different temperatures using ocv-capacity-celsius and the array of arrays ocv-capacity-table-0, 1, 2... you are introducing a second parallel method of describing how capacity changes in accordance with temperature, right? What do you expect to happen if someone specifies both? If this is an either/or situation then the schema has to guarantee the exclusiveness for each. (I would probably just use the formula you have to calculate a few tables using the existing method but that's just me.) Yours, Linus Walleij