Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2044140ybh; Tue, 14 Jul 2020 14:11:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJbsb0A+7oRMS54c7AV6jWNHLJlxsv4XqsCEcP+CYr2jRHomuhvDEui4uz5yrKdaHX+hiD X-Received: by 2002:a50:9dc8:: with SMTP id l8mr6507560edk.248.1594761113418; Tue, 14 Jul 2020 14:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594761113; cv=none; d=google.com; s=arc-20160816; b=xh2d3A8H4dnNhm0U8cmKXDN7ZXeCpkWCMRcmzYInTtR2jlzXgGIGIpsyqG+zQ0Yf6e FSaN/NE6yflDDoyX0LYWAjZz3zbFIzm2991UxYaRxhgGMfiQnRb0IG/ve9EFmuTvPiML KQ7usS8we6hvqwKVK4Td4oUFLQQGuvhDZNFIRP0pS5u+8f8swiJoFANFVyunHNJR1ePB NJhMMeCwq0p4JTdNYUkZzt37Mp5ZP0JRMtItwFa0DbXosP3h3Nlc9ekMdP8Oy0SaUgix 8PF14uN7ZDDwvgZTXUZ1J8eDbLw68YHgIBuVRhYoJ0UIM4FkPen8UxbpS9JqGrpFYe1u Y40Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=47xVzqClcakdpwxsWPSzbhTXJk9iY+clY3tNe/dil2Q=; b=moMpZMBR/uNFNYKJ9leUFl12MoSYkZEckMI9RgO30U/zq1H1ykxBuSnGl2MIU5hLDt RpXzMkSxJ8xfEFOfjYt45ZIbabT69qE4TACmvhhzgFW4SXGVuMD6HnCJjXS0eD1hX0Gg CTmD2Yr2zh0Swx/N9awxuH0yxpVtjHv8uf+yBielaS9HovZR7NdSS6vLtD3T2JE/XyUj kg/xbtIRPglHDBFY8JF2cyA70UVwRH0SDbJj9ryc7GjNqvO6Tb7k2ohWV8DQ1oV5pIUO 0mzmiwwhoNPWDYeZBknZ7Zvy7yewSiywzvSgprZ5mMieP8R3Gt0tmzL5AY0ewPZ9YNbh /Z/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb5si9897192edb.290.2020.07.14.14.11.24; Tue, 14 Jul 2020 14:11:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728107AbgGNVIT (ORCPT + 99 others); Tue, 14 Jul 2020 17:08:19 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:39237 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbgGNVIT (ORCPT ); Tue, 14 Jul 2020 17:08:19 -0400 Received: by mail-il1-f193.google.com with SMTP id k6so57500ili.6; Tue, 14 Jul 2020 14:08:18 -0700 (PDT) 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:content-transfer-encoding :in-reply-to; bh=47xVzqClcakdpwxsWPSzbhTXJk9iY+clY3tNe/dil2Q=; b=LL4uvTkqgTWkNsTvc97n7Q+onw5+8y23ts5Q/NKy2mSW9RUd/z8uMRIHEJ5pTGE7J6 QVYm9rhGZLRbo3+uSzCQPzEfqzF7W1+qMjOoJij1fatqv2ysrrAz97Y2NEpspElaF80U dfcvDeeRbG9BCojenUaO8WcBd4/HIaR9jXzo9o7envLQR4xRb/vR31IQXiFXW7v6Ox9M 1BepSVNXBZuxwyqGECfsH++Zcu5KHa92WCeAw8orStL4UDjA30q5dTXsUrddBz+q7Xie g3bIMFNVSkndc1FF28vl/A32ZAIwsBYUtExOJLNMrI52yTVJt7vUKi1kWAaX3qRiVz/i cI+A== X-Gm-Message-State: AOAM530447q/v6ZkOIyKdIxIpwWzALD0PCY1d0oSbB06PG0cNJI+Zp7K BCVaxSewU1FLrwcCvwGVHg== X-Received: by 2002:a92:cbd1:: with SMTP id s17mr6598323ilq.43.1594760897955; Tue, 14 Jul 2020 14:08:17 -0700 (PDT) Received: from xps15 ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id n7sm84082iob.44.2020.07.14.14.08.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 14:08:17 -0700 (PDT) Received: (nullmailer pid 2919365 invoked by uid 1000); Tue, 14 Jul 2020 21:08:16 -0000 Date: Tue, 14 Jul 2020 15:08:16 -0600 From: Rob Herring To: Iskren Chernev Cc: Sebastian Reichel , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jonathan Bakker , Vladimir Barinov Subject: Re: [PATCH v3 2/6] dt-bindings: power: supply: Extend max17040 compatibility Message-ID: <20200714210816.GA2918005@bogus> References: <20200624155633.3557401-1-iskren.chernev@gmail.com> <20200624155633.3557401-3-iskren.chernev@gmail.com> <20200713190310.GA546410@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 14, 2020 at 11:49:44AM +0300, Iskren Chernev wrote: > > On 7/13/20 10:03 PM, Rob Herring wrote: > > On Wed, Jun 24, 2020 at 06:56:29PM +0300, Iskren Chernev wrote: > >> Maxim max17040 is a fuel gauge from a larger family utilising the Model > >> Gauge technology. Document all different compatible strings that the > >> max17040 driver recognizes. > >> > >> Some devices in the wild report double the capacity. The > >> maxim,double-soc (from State-Of-Charge) property fixes that. > >> > >> Signed-off-by: Iskren Chernev > >> --- > >>? .../bindings/power/supply/max17040_battery.txt??? | 15 ++++++++++++++- > >>? 1 file changed, 14 insertions(+), 1 deletion(-) > >> > >> diff --git a/Documentation/devicetree/bindings/power/supply/max17040_battery.txt b/Documentation/devicetree/bindings/power/supply/max17040_battery.txt > >> index 4e0186b8380fa..554bce82a08e6 100644 > >> --- a/Documentation/devicetree/bindings/power/supply/max17040_battery.txt > >> +++ b/Documentation/devicetree/bindings/power/supply/max17040_battery.txt > >> @@ -2,7 +2,9 @@ max17040_battery > >>? ~~~~~~~~~~~~~~~~ > >> > >>? Required properties : > >> - - compatible : "maxim,max17040" or "maxim,max77836-battery" > >> + - compatible : "maxim,max17040", "maxim,max17041", "maxim,max17043", > >> + ?? ??? ?"maxim,max17044", "maxim,max17048", "maxim,max17049", > >> +?? ??? ?"maxim,max17058", "maxim,max17059" or "maxim,max77836-battery" > >>?? - reg: i2c slave address > >> > >>? Optional properties : > >> @@ -11,6 +13,10 @@ Optional properties : > >> ??? ??? ??? ??? ?generated. Can be configured from 1 up to 32 > >> ??? ??? ??? ??? ?(%). If skipped the power up default value of > >> ??? ??? ??? ??? ?4 (%) will be used. > >> +- maxim,double-soc : ?? ??? ?Certain devices return double the capacity. > >> +?? ??? ??? ??? ?Specify this boolean property to divide the > >> +?? ??? ??? ??? ?reported value in 2 and thus normalize it. > >> +?? ??? ??? ??? ?SOC == State of Charge == Capacity. > > > > This can't be implied by the compatible string? > > > > >From what I can tell - no. Here are multiple examples of downstream code: Okay, Reviewed-by: Rob Herring