Message ID | 20230916-pm8916-dtsi-bms-lbc-v1-0-7db0b42f9fb1@trvn.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1862458vqi; Sat, 16 Sep 2023 15:03:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhDnf1OkFZF2FRL20zRFGQawrD3fK36sm7n9q9x1m6X7vstFt9abov6L1uyzmgbRYiEdom X-Received: by 2002:a17:903:244a:b0:1bb:a7bc:37a4 with SMTP id l10-20020a170903244a00b001bba7bc37a4mr5485042pls.24.1694901817104; Sat, 16 Sep 2023 15:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694901817; cv=none; d=google.com; s=arc-20160816; b=QDhJpkxHh1LR71gEJGRO7Vdjbkb6558izE463+1B2wq805YQX1bBSDURZBbS0w6MA4 qVryDWWnaWTD57XjZrPm3MnBIQZ0I1kwmgcsz4E41pjMRFKWwmo4+PynfX7FqSw6eKeL 7b0GNh9l+UPwjfgfRuFMvwA2Edd9rAkq2Y8w3+aIV510mKoy20so5zpkVRZNSLj7rqDq /03jOKDOw946kuBjqXer0ERbIGZGGXPFnqwZBz90+PMG7/yQqKJ/PxlEmW/yDsqgC5KZ ByESaTQSoUSv6j+69korrgAenr4S82SgxvBv5+2jsNCUT/txv7nMPDV4ItiuVOCpfsiu JemQ== 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=AD+jd0BIzc/+ikghJqGuup+4nuj8XtC80EvQkY1366c=; fh=wxvTvy8S4HsbZsby3Z97u7GcLaOoYa16rXKJ9e/v2/0=; b=mhiOwPgh/NBNGHSsBsGaNw+/wklV4VoF93CfsUejYjKoc11bTfosGvBFYQkGKaCQtM cxiUr7bDGn1GTTPZU49rBK4yvmxm5GctDHvzZv9yejSGtyiCAuCfXKVe+dcGxlt8Tc3M XLWqMPrjXlaVwPG5bTkLGMaDmFoqwhfB2xhcAzlFOu6yh1IVxtLFXP8rAvK4p7m7NZF6 dMAPSvqUvpfZa+Bd6x0voR0HkR5yb2cU93u7CF16zJPUVFH/xSN1mOt82DJWh2KXwew1 aqH8O2JJ72i79E8pBqw+hsk/gsK1rS27q+MF8695vy2NYFcFWBS1c6tDkvkTcWGRvK8f wKmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=mKoRrwHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id p12-20020a170902c70c00b001b89ecd8e66si5380278plp.188.2023.09.16.15.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 15:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=mKoRrwHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EE1D182FCE9F; Sat, 16 Sep 2023 07:08:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239301AbjIPN55 (ORCPT <rfc822;toshivichauhan@gmail.com> + 29 others); Sat, 16 Sep 2023 09:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234724AbjIPN5j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 16 Sep 2023 09:57:39 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8C1ECD4; Sat, 16 Sep 2023 06:57:33 -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 BC94941398; Sat, 16 Sep 2023 18:57:16 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1694872647; bh=MViHkGlLv/u97rBJ/FjSx/gh7zCQGw3oonUyY417+LU=; h=From:Subject:Date:To:Cc:From; b=mKoRrwHWp+cz81RvemG9kjDpD9/9yhruQMerx8NmQ8nAuZ0pLdZZc7feh9cNcduXx LpuXoE/b4gXTHw1yYFsxHBSgqe44W9yGd6HsEOqFJ2BfqZFVSZ+Le1pCCTwRS8Gqgg rWqJ2EyfwMPG8z2u4dRziDsvi0v/0bK0i73dGeirP7N/l/z/nw8CFDkpdb978/dlSN qomo+NSyXEv0MhVEPClZuQ9vDtp1myd6ENeO7z/2iUbZHaxxLQZVSnD2YUJbsj5r/4 /sE4vzAbSbBLGubrDqJDv6NF9dBETAdFsYXKPkVjZD98TxshJouWnsZ+biQ3dehnd8 6KOEKZODqY8Rg== From: Nikita Travkin <nikita@trvn.ru> Subject: [PATCH 0/3] pm8916: Add BMS and charger Date: Sat, 16 Sep 2023 18:57:03 +0500 Message-Id: <20230916-pm8916-dtsi-bms-lbc-v1-0-7db0b42f9fb1@trvn.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAC+0BWUC/x2MSQqAMAwAvyI5G7AVxPoV8WDaqAE3GhFB/LvV0 zCHmRuUo7BCk90Q+RSVbU1i8gz81K8jo4TkYAtbFs5UuC/1h3CoIC2KM3m0AxlyLhgmC6ncIw9 y/de2e54X+oznOWUAAAA= To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin <nikita@trvn.ru> X-Developer-Signature: v=1; a=openpgp-sha256; l=1051; i=nikita@trvn.ru; h=from:subject:message-id; bh=MViHkGlLv/u97rBJ/FjSx/gh7zCQGw3oonUyY417+LU=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlBbQ7KqiACdXvoSnyyJIuDr428zEhrxUPmNouu sk4hkJqkfmJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZQW0OwAKCRBDHOzuKBm/ dWNVEACSmRkdD4veP1CKbIDPQpcN4D15jSanmB6UZ+nKgJdUptlOxvtrYr8JX4IGI/8XGzmuPho WbcZHvKb89vxSvdMGls0hFBiOIrMxfT/dnqCEviGCJE54vbwYBEmbk9WRh17u5QRvmtXiYyuLoM jgSmxEksflHXsgIeZm1E1hOWEiMbwx7rOplBg1YhJu7yXR2Q8iZxVBMiHs9I8uMY/4cIdPVI8XC 8zRdFkD1EoqFjM+Fv0TM7oJ9M0pxwIqG9SpKlDZemRz+ltKDAAExuhfmJJ5dGWU5pipcQlI3/gy +OADrikVkN72MTPiKlu5Kxsgv7f2Su88IfIWIaFPL+C6W/ORoA8P290y+txQgotrVH3VX3E9JNK vB7zhGa1/taqKi1m0DFeKN/pxEOAoCl8PVu7554DWTUJe8Nd6IHHQpPpAgsfIb2NCWocLx3MyW4 0rn+eU4uWP6XMRgE7E8Pg8Qo7zscwrjA8wEhbMNjtX7DCjd22SMNe/OpyMEFnYnqX3iyufln3hD BMrKEgj0ZgCP9kIObW3Pnkjl5EnGF+59bFs9BtMlRvqLUEHT9XicNSnqEWocgIy7ZE/j62cEli3 RsZyxs5jYZmTQlTTGvPvGEbCkIfloYNxW1PV5a0kZWUxdWrZQHl1BoXWRGWwqpW910oMNXmq/F3 DxCZ+TTIPGWF/aw== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 16 Sep 2023 07:08:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777233367917358629 X-GMAIL-MSGID: 1777233367917358629 |
Series | pm8916: Add BMS and charger | |
Message
Nikita Travkin
Sept. 16, 2023, 1:57 p.m. UTC
This series enables VM-BMS and LBC blocks in the pm8916 pmic.
The VM-BMS is a simple voltage monitoring block that allows the software
to estimate the battery capacity left.
The LBC is a linear battery charger for lipo batteries.
Add both devices to the pmic dtsi and enable them for Longcheer L8150
which makes use of them.
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Nikita Travkin (3):
dt-bindings: mfd: qcom,spmi-pmic: Add pm8916 vm-bms and lbc
arm64: dts: qcom: pm8916: Add BMS and charger
arm64: dts: qcom: msm8916-longcheer-l8150: Add battery and charger
.../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 6 +++
.../boot/dts/qcom/msm8916-longcheer-l8150.dts | 43 ++++++++++++++++---
arch/arm64/boot/dts/qcom/pm8916.dtsi | 48 ++++++++++++++++++++++
3 files changed, 91 insertions(+), 6 deletions(-)
---
base-commit: b74e981ad267d71d7ffcc085b3b9b5de736fa279
change-id: 20230916-pm8916-dtsi-bms-lbc-2fb1b99d1eb2
Best regards,