From patchwork Fri Sep 24 12:24:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12515187 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C798BC433F5 for ; Fri, 24 Sep 2021 12:24:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B094460F24 for ; Fri, 24 Sep 2021 12:24:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245627AbhIXM0U (ORCPT ); Fri, 24 Sep 2021 08:26:20 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:57328 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244453AbhIXM0T (ORCPT ); Fri, 24 Sep 2021 08:26:19 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 31B754019D for ; Fri, 24 Sep 2021 12:24:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632486286; bh=DkGkpzaVc54413YUBT4LyqWFFj4kahuTNwDNF7TcYfE=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=rRODUHoxsdc2jlxzia+vCNo713SaLp8O7bvuv6kpX7aL/xTyKfdCdgc7qj/vDp596 lxoZGXnh2KzeOrgOgrwaYpWtQBjnetqoRmw36xNhrbcmIOuT0G6ji15uF+mWVp9le1 PRoQeLMoP4khk2wAClPZMuHg7idp8Wsc/A51FUMNaPAHV04QSqDYLeBSleCmPzfHBx NP7qQcgjU64vYHc8i6t9Yp6qV4DsPB1ERAnd414EU9ewO6FzpBytoM3FmI3Rt/ON52 6z7V45yoy6WiVYc0p+A4esYMY4tzaN1P3TlXIHxxOMSZPnQM6s9hGDQ1fa5Q5iS6TG 7tJAlFHMb3Ocw== Received: by mail-wr1-f71.google.com with SMTP id r7-20020a5d6947000000b0015e0f68a63bso7910995wrw.22 for ; Fri, 24 Sep 2021 05:24:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=DkGkpzaVc54413YUBT4LyqWFFj4kahuTNwDNF7TcYfE=; b=rxXfiR0clE+YbLdJk2ICRzm+8nE1d/L5NoBhmUgKI6f3/HQIM52o1vB0ecoCkqsgvE wrQBl+QSsTmTMi419JErWmJEJLWCDf873ci3jyKC/QoAD1OoAV9UlcqvotLoEBZvkTJ3 L02q8EvEgLepzvyccvbeGTc2pJnk7qjieUZ42IrgfrIzmuauPMdHXzxLp86cndLdU1Dq uTpm0fc2wjHyOUKU0BWdo8nYMj3HHGyDnUkVCczlrOWxv15jbiC99iSgCZhtYcRQ4HjX YXGYTbPujDpoZiNWIRgG8+o2cILMt3onNJ+C5WBjFRiTWJc3sZ/dcdTfasSHiR4FW677 YSNw== X-Gm-Message-State: AOAM532QrD7f/WeUGahdOd1wc2wupWkYjaHUzwArU4Z8tFu4SVeZ7yMw j8deyX78riM+a+nvdTTywBZrPrQvkn7NE6xKAXEJY7kYtBtQCnOdVs5HaC3utkbr16IWFUX3AYD LTfWMWQvljQ9KV1x8pDMEFDO9yf6jIN3O587R X-Received: by 2002:adf:d23a:: with SMTP id k26mr2094774wrh.215.1632486285831; Fri, 24 Sep 2021 05:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEB0qa3TAnqaeE56H4VDw3cxmOzfMwfE8tlyEFcfLPhTr4L4dkNuPDnddVRADKhD2AML7hMw== X-Received: by 2002:adf:d23a:: with SMTP id k26mr2094762wrh.215.1632486285653; Fri, 24 Sep 2021 05:24:45 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id k18sm7865957wrh.68.2021.09.24.05.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 05:24:45 -0700 (PDT) From: Krzysztof Kozlowski To: Iskren Chernev , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , Sebastian Reichel , Hans de Goede , Sebastian Krzyszkowiak , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] power: supply: max17040: extend help/description Date: Fri, 24 Sep 2021 14:24:07 +0200 Message-Id: <20210924122408.101323-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Reorganize the Kconfig driver description and mention all supported models. This helps when choosing drivers for given system. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Hans de Goede --- drivers/power/supply/Kconfig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index fcc7534edcb2..6e4201922f59 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -366,18 +366,20 @@ config AXP288_FUEL_GAUGE over/under temperature. config BATTERY_MAX17040 - tristate "Maxim MAX17040 Fuel Gauge" + tristate "Maxim MAX17040/17041/17043 family Fuel Gauge" depends on I2C select REGMAP_I2C help - Maxim models with ModelGauge are fuel-gauge systems for lithium-ion - (Li+) batteries in handheld and portable equipment, including - max17040, max17041, max17043, max17044, max17048, max17049, max17058, - max17059. It is also included in some batteries like max77836. + Driver supports Maxim fuel-gauge systems for lithium-ion (Li+) + batteries used mainly in handheld and portable equipment. + Supported devices: max17040, max17041, max17043, max17044, max17048, + max17049, max17058, max17059, max77836. Driver supports reporting SOC (State of Charge, i.e capacity), voltage and configurable low-SOC wakeup interrupt. + Driver can be build as a module (max17040_battery). + config BATTERY_MAX17042 tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge" depends on I2C From patchwork Fri Sep 24 12:24:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12515189 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68E85C433FE for ; Fri, 24 Sep 2021 12:24:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 57EBE61164 for ; Fri, 24 Sep 2021 12:24:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245412AbhIXM0V (ORCPT ); Fri, 24 Sep 2021 08:26:21 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:57354 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245444AbhIXM0U (ORCPT ); Fri, 24 Sep 2021 08:26:20 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 1F98340268 for ; Fri, 24 Sep 2021 12:24:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632486287; bh=MSnDqZAnVcwcTc3AHKewpUeqeJxfFM7DuBuKMJowR+s=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D4tguKU5p91J2sbp4k/6hCF9kZztTOz5/WaEejygGLFkojwXmzIftHblUoesLUWPR bkUZWMQg52JR5hWrBFI8j9lSF0DRNdRe3JfyVSsWL7p7kZB6ndGf+Hik19Opsbc721 qtjLo3/MZBnmLyeGYqocFORPqAt6j9KSpymFRBFQA4/C34sDBgEFpRyi9a872ULoDU 47aPq3OcClictQGspilOw9Ck/3krHKuXyTnSAN6yeWF5amINNtxKNbH5DxzjFVpyZU zyY4oGd31CQDHW4bR/vxl3A5vEJlHUUttmBOfdibdSTXhTCrs7WM7KF9ByoyBZp7ky ZKOAtGWjRfFIg== Received: by mail-wr1-f69.google.com with SMTP id s14-20020adff80e000000b001601b124f50so7935156wrp.5 for ; Fri, 24 Sep 2021 05:24:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MSnDqZAnVcwcTc3AHKewpUeqeJxfFM7DuBuKMJowR+s=; b=gOjTN1vX9pRp5OrRYitj/syYMexjNxSkQQZif78y5GxdXLsLOqcn5nqnQ9f/RGY5cL 2HsOBQmuJKL4CvEUCVpOT2CzHbkpUp1XozWDOCBy2Lt4J3sje220UR6aAQm91xc06+gG zN30REHpBh3rm3mNGT+CAAjd90Kq+I/xGEavBTSds7QelyzjXCInwIyiXsWHCmxgqiks PXAG919ZrDzvsBycIVSuuK8sf2f6gNedxlbdlCJcc84eI+s4PHOvF0i2u8uvRosXYhW2 IaFQyI7WR94K6jKgSPMNcqd61fMPYL6Rvsdi0suWeT3g2v/mV06lFQNnHCd4+7LpHUQb VOEg== X-Gm-Message-State: AOAM531n2vCvGrPG1L8/K3lGMQmzXhvL6vHfUMCMbbHZMNhaHeU/FvY4 KtPtE9m0xptE7Tw8ud0pXGpzPGPBU27Oh/v1nhQsZk5jCRSoOJoe9s5xYKmuF21IFZbfkVTCUV1 oEH7gi2U9jjk+NKiepre/OaasllxAftnHB+ja X-Received: by 2002:adf:d1eb:: with SMTP id g11mr10955145wrd.31.1632486286849; Fri, 24 Sep 2021 05:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAOjGm4g+OeKFY3HI1DtFoi4p0HEcm9Sz6LIxq1ZeyRYPNibNHr87XSWZMh4Ww7ERtKqE0MQ== X-Received: by 2002:adf:d1eb:: with SMTP id g11mr10955133wrd.31.1632486286714; Fri, 24 Sep 2021 05:24:46 -0700 (PDT) Received: from localhost.localdomain (lk.84.20.244.219.dc.cable.static.lj-kabel.net. [84.20.244.219]) by smtp.gmail.com with ESMTPSA id k18sm7865957wrh.68.2021.09.24.05.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 05:24:46 -0700 (PDT) From: Krzysztof Kozlowski To: Iskren Chernev , Krzysztof Kozlowski , Marek Szyprowski , Matheus Castello , Sebastian Reichel , Hans de Goede , Sebastian Krzyszkowiak , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] power: supply: max17042: extend help/description Date: Fri, 24 Sep 2021 14:24:08 +0200 Message-Id: <20210924122408.101323-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210924122408.101323-1-krzysztof.kozlowski@canonical.com> References: <20210924122408.101323-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Reorganize the Kconfig driver description and mention all supported models. This helps when choosing drivers for given system. Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/Kconfig | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index 6e4201922f59..ad93b3550d6d 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -381,7 +381,7 @@ config BATTERY_MAX17040 Driver can be build as a module (max17040_battery). config BATTERY_MAX17042 - tristate "Maxim MAX17042/17047/17050/8997/8966 Fuel Gauge" + tristate "Maxim MAX17042/17047/17050/8997/8966 family Fuel Gauge" depends on I2C select REGMAP_I2C help @@ -389,8 +389,11 @@ config BATTERY_MAX17042 in handheld and portable equipment. The MAX17042 is configured to operate with a single lithium cell. MAX8997 and MAX8966 are multi-function devices that include fuel gauages that are compatible - with MAX17042. This driver also supports max17047/50 chips which are - improved version of max17042. + with MAX17042. + Supported devices: max8966, max8997, max17042, max17047, max17050, + max17055, max77693, max77849. + + Driver can be build as a module (max17042_battery). config BATTERY_MAX1721X tristate "MAX17211/MAX17215 standalone gas-gauge"