From patchwork Fri Mar 18 00:10:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Krzyszkowiak X-Patchwork-Id: 552973 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83626C433F5 for ; Fri, 18 Mar 2022 00:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230166AbiCRAMw (ORCPT ); Thu, 17 Mar 2022 20:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbiCRAMt (ORCPT ); Thu, 17 Mar 2022 20:12:49 -0400 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C296114144A; Thu, 17 Mar 2022 17:11:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id A77A9DFEB2; Thu, 17 Mar 2022 17:11:02 -0700 (PDT) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2At0dQUtSkzc; Thu, 17 Mar 2022 17:11:02 -0700 (PDT) From: Sebastian Krzyszkowiak To: Hans de Goede , Krzysztof Kozlowski , Marek Szyprowski , Sebastian Reichel , linux-pm@vger.kernel.org Cc: Sebastian Krzyszkowiak , Purism Kernel Team , Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 0/4] MAX17055 model configuration via DT Date: Fri, 18 Mar 2022 01:10:44 +0100 Message-Id: <20220318001048.20922-1-sebastian.krzyszkowiak@puri.sm> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Currently, there's no way to supply battery characteristics to max17042 driver on device tree platforms. This series changes that in a way that's sufficient to configure MAX17055's m5 EZ algorithm, by using a standard "monitored-battery" phandle. Sebastian Krzyszkowiak (4): power: supply: max17042_battery: Add unit conversion macros power: supply: max17042_battery: use ModelCfg refresh on max17055 dt-bindings: power: supply: max17042: Add monitored-battery phandle power: supply: max17042_battery: read battery properties from device tree .../bindings/power/supply/maxim,max17042.yaml | 4 + drivers/power/supply/max17042_battery.c | 163 ++++++++++++------ include/linux/power/max17042_battery.h | 4 + 3 files changed, 116 insertions(+), 55 deletions(-)