Message ID | 20230728-pm8916-bms-lbc-v1-0-56da32467487@trvn.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp615490vqg; Fri, 28 Jul 2023 11:23:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJtjSS0iwVzAhQOK8krgGkZQlhs/Ca9Qb8xvuBHceMDzPq8kpfKz8S1qZDpz1eXel13T85 X-Received: by 2002:a9d:6ace:0:b0:6ba:a084:6a1b with SMTP id m14-20020a9d6ace000000b006baa0846a1bmr3614823otq.10.1690568580104; Fri, 28 Jul 2023 11:23:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690568580; cv=none; d=google.com; s=arc-20160816; b=NjuJiK7qIGFIkB0+CGrLEqqUNe6fygyfib9gvIaluiKTzLIHYoeyr0J80lJbveL5SO FlKdva+heUPeWTMpARnf7+WoNjmPKoh0wqybioXwmmtUOWWtIiDyQb1T1AeUhjnfx0T7 L1fKhi9GthnL5beIJ9Ie4ngQOmXqfLoO5Mzvcm8ErLo5dbSWyUwlKOMeBFlXURVQ1sCO AVc6HSvmMkenM1DlZlrXLoyMp7MFxIWGoZqJiMTMz3Ah2thtfHkJJTlH1LE7sENIDwbf /D3GXw7pQZP7FTy+SSkxNDkT9jbqXnW+MNRuiQZc3iGf2oIXT94rkyDHj+EHYXdQZe80 kb9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=J8bYsk/IiKaJtHQ/PDTYtd5G4Io20Jj3jxyG924Qito=; fh=DWfKZrqDT5uR0d7BPg516BB12nZg8AlVJgKxCaTggqo=; b=SsDunS/U5GOBlaO3Ghutb/uMo3084JvQXrqgw8byEFGE/sNrOa3Dqdu+3jopfXBi/A IfeL7psrOQ0kNPPpbpODeHUzeBpZ5Iv8wwL+XVlWyWNKffEjNy+MvY6IqT6mopdUxI5h JbvxlyFhfV1LBzgEqS30yt7bdBghfa0TMHer2cO4Bf9FdAqcIs/foS6jr39z1BYSQ2z7 HixOwW+aV2AlT8vQNtzVGmBFWLUnDPojSKJdbUuD5RWnRzAIvrQALTaN9pNZtXP6s3EU 6DRpxETVJVpI9CexZoh1vnc7xm+aUjPwmyZaDoeBlRHCsnww7vcz5Wk5wR0KwT5WsAL0 Z7lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=h5gga1ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x189-20020a6386c6000000b0054201a3f08dsi3217791pgd.592.2023.07.28.11.22.45; Fri, 28 Jul 2023 11:23:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=h5gga1ui; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233113AbjG1R3c (ORCPT <rfc822;hanasaki@gmail.com> + 99 others); Fri, 28 Jul 2023 13:29:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjG1R3a (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 13:29:30 -0400 X-Greylist: delayed 487 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Jul 2023 10:29:29 PDT Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42DBE35B6; Fri, 28 Jul 2023 10:29:29 -0700 (PDT) Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 5380B423EA; Fri, 28 Jul 2023 22:20:18 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1690564821; bh=sly5Ld9FbVW+KuV3/jOurF1zGgRbbBgyAKHydvLe2F0=; h=From:Subject:Date:To:Cc:From; b=h5gga1uij9+G4EIydWxMgCA48eZC9USCAN1YH54pngMO/L6mFSYOzIMNwI9I6jBEw y/EqYH1iEF0oUxEgAtmgdPWeRB3WCpKdn5hBR8iBOaNc7dmurs9IFg95ZYqypikrmZ WwpaTZ0Jl6jujRAG47xNKF7cdv7OSfgu2ZEjrO1Qn65zGMaM5gcy1t9bagBADpBW2u +lHPyeUNctZAgy6T4aw1o8Eiv3ydZRM1wLcxugfxXHDU//RYCAcDhZvL9s+vAdHHwY UHUjWD9IL2ff+P++4ij7drI0RcLihLpCsEX4w6ZyNUBIOKG46RSm06xNcUY3d0ffgS ++VHUlAv+uksg== From: Nikita Travkin <nikita@trvn.ru> Subject: [PATCH 0/4] Add pm8916 VM-BMS and LBC Date: Fri, 28 Jul 2023 22:19:29 +0500 Message-Id: <20230728-pm8916-bms-lbc-v1-0-56da32467487@trvn.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKH4w2QC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDcyNz3YJcC0tDM92k3GLdnKRkXeM0CwNjA1NjI7NEIyWgpoKi1LTMCrC B0bG1tQBtO/ypYAAAAA== To: Sebastian Reichel <sre@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Nikita Travkin <nikita@trvn.ru> X-Developer-Signature: v=1; a=openpgp-sha256; l=1329; i=nikita@trvn.ru; h=from:subject:message-id; bh=sly5Ld9FbVW+KuV3/jOurF1zGgRbbBgyAKHydvLe2F0=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBkw/jPIoA39vFC6JD42KtyRW/tttLijfv8Un9SN 7zXwiIecpuJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZMP4zwAKCRBDHOzuKBm/ dU1hD/46X6YBSIWGiN+/XspUNixstd2qBtUZiBw0pcQCSghLg5zrbtoBA79jF1tCOmAdmHhAWVD h6DZwoUPVfNCfxk+bHfsh2R59cXczV/En2I3SVttRyVTGE91Ic11Otvn8HTtB4sBHJmZwCoWTJN Q9bIVu/qTZ1S+9GrfyZaqbK6InHQIBy6F/5g4IuHzPuz5c5MAl3/mk+jJ02owMgiFluAj9/bAkY +VVgfSFKLiNLGU9GYyX4XjlfJhTnpTNTqO/xen6BJkrSdBjIoxhSDhg6SbDLh7UZ+Ipe4+Szv5g K/8derIyMV5CwB77LFYY69reXcIgPInjpSXoTy3ydscOcZKB4CxSTCc7fwiGWKAvvLmg2tel/vq Cy2/zptNTageOri0xmFya5XcsMrPTmcJCKbOQxzPjcK8AW9KjNss6gF3oVG9ufz/kpIf+AGl9C6 m9Mo5Vf9xWECoPsL5rd88+UiBRgAO6lZdffD+56qaacYhHUCEKa5h0XHMN6+2JOKH2L44kE+X0X nsW8kFj/xyEdAEILMpyhEZsL3EwQAttmKZ//IjwLrn2I/iY21+Vq2ba8JlKMXEYDw5uXLkubs6X yFdTE30k0XJ9l03LiXAmoe3RIK1jUCQK0UfZFvcf5+qZSCASHnaRvULKKlrjPE+G4qlWaRxXpdI OekT+Yp5hMI1ywQ== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772689639225134048 X-GMAIL-MSGID: 1772689639225134048 |
Series | Add pm8916 VM-BMS and LBC | |
Message
Nikita Travkin
July 28, 2023, 5:19 p.m. UTC
This series adds charger and "fuel-gauge" found in Qualcomm pm8916 PMIC.
The LBC - Linear Battery Charger is a simple CC/CV charger, that works
autonomously after the current and voltage limits are set.
The VM-BMS - Voltage Mode BMS is a simple hardware block that provides
average voltage on the battery terminals.
These two hardware blocks are used as the battery charging and
management solution in some old Qualcomm devices.
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Nikita Travkin (4):
dt-bindings: power: supply: Add pm8916 VM-BMS
dt-bindings: power: supply: Add pm8916 LBC
power: supply: Add pm8916 VM-BMS support
power: supply: Add driver for pm8916 lbc
.../bindings/power/supply/qcom,pm8916-bms-vm.yaml | 64 ++++
.../bindings/power/supply/qcom,pm8916-lbc.yaml | 93 +++++
drivers/power/supply/Kconfig | 22 ++
drivers/power/supply/Makefile | 2 +
drivers/power/supply/pm8916_bms_vm.c | 296 ++++++++++++++++
drivers/power/supply/pm8916_lbc.c | 385 +++++++++++++++++++++
6 files changed, 862 insertions(+)
---
base-commit: d7b3af5a77e8d8da28f435f313e069aea5bcf172
change-id: 20230727-pm8916-bms-lbc-3f80305326a2
Best regards,