Message ID | 20231026-pm8916-dtsi-bms-lbc-v3-0-fad1ff22306e@trvn.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp449003vqb; Wed, 25 Oct 2023 22:54:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFIrTm4CUnKxU30pPRO9ihtrk6l2EXY3hCKpKh2rpDYLwyKVg+U2f5Qo8goBMLT/0twUOXx X-Received: by 2002:a05:620a:440a:b0:76d:93e1:99fd with SMTP id v10-20020a05620a440a00b0076d93e199fdmr19664535qkp.11.1698299668762; Wed, 25 Oct 2023 22:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698299668; cv=none; d=google.com; s=arc-20160816; b=K9hzrk5iv0e4oqNXl5406iCLfrywmCoPsdwwzlFRCiEwDs36QWPCgUVNUainMZHPg3 kA9iHG3J91sGdt+5QUaswXvKCmhDM6gbmxhBgK52+TLV2gavZbyd/5IB9B4eHR8yu+G9 z0U68dvBAtylRwllvx7DvzK44yT2rMUbk5G+0dLLFe2c78VEbDxOhq7CBDT6/1rfjRSs e7xoQGw6ZSmlAsokS8LoLJ81Re0zPqxLqbc1YN1uQcwhduEy+/ChPQs1VfUjxK8zd+ug Pra8uqXJ0gq7U+fa/XjtLJdjDresGVXTc4V8Q3L5cpGHvGSn0WQqewKmACT+ly8gRL2D A4mQ== 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=yd3nSPK2M/adTY9zU7pCFOoQEDKndYpcMarAfoHsCVg=; fh=MinvCrbEH/5r9phSqDbaHyFZUTzOu0CkbEibBNEs/So=; b=BDsmXCBWkpOIInl4DCWXdswABUiHnxzaeEbdJLn98MXya50p8Z7MITtbFSocZLzqfK JvEOKRXX6y8jFmLx7R4PqWNgIuOL95y0MSUpEXAlUiSzlIjITT7vlMX6lV4u9DO93RRY VHb/kKi06RkS57tVK0x/0IpFx3jfpSz1qhCVHMKiiZLQKF7tQXNzWTWoqG8+22zPsm/O MTLbiUHDL/sIz6lvMZmr/f2n5VcUDgC7GPuUS6FuAilvdPPluvruRJYoEx1IdTxP1czc om8sfxd64C/mPHPWwC03tIA+ry4AFt+7AMlyGRaBuZgahPGaN48cvD5/ai5Fj4mrdGae DrdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=tp2oNbxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p18-20020a254212000000b00d9b9ac89d7fsi13159916yba.169.2023.10.25.22.54.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 22:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=tp2oNbxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 2C1838226F30; Wed, 25 Oct 2023 22:54:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343824AbjJZFyQ (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Thu, 26 Oct 2023 01:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjJZFyL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Oct 2023 01:54:11 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E84F137; Wed, 25 Oct 2023 22:54:09 -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 C6F39408D9; Thu, 26 Oct 2023 10:54:04 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1698299645; bh=gDa6AVN3vo7ERUBFuN7/nhEFecN+h7HA4AxNspjfA74=; h=From:Subject:Date:To:Cc:From; b=tp2oNbxnkDn0WideMtOIogIjIaTH8HRvTYtEgcbxvqZpdyFHNyM+3TOowjwYxq0P9 r6WLzcz4p5iOPaJxCl7EKKvkueab8V7JnoP4mKonwBGtp4oMR7nyc3atgM8D4egJiu RBhIw1JXVaZq1dVGIPDsDQvsPsU8hj9vFyZjUzS5b+RsytT62+8jNf5Ntc8+I5DeDz JU9zt7mSOZ6X6L+alw7H9UIKOx7sh6IyqEn7YQp8jFuBWXH8NHQeJmjYbvBSfh8BsM glss2y/nCTPc2AhA6v2y9FuXVaGVVelramX2C/XCWMzVhPCNGAxO/S8OrwKnQ4I/mR XQ6IcgrHcK9qA== From: Nikita Travkin <nikita@trvn.ru> Subject: [PATCH v3 0/2] pm8916: Add BMS and charger Date: Thu, 26 Oct 2023 10:53:43 +0500 Message-Id: <20231026-pm8916-dtsi-bms-lbc-v3-0-fad1ff22306e@trvn.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOf+OWUC/33NzwrCMAwG8FcZPRtp06HWk+8hHsyauoL7QzuLM vrudjvoRTyE8H2QX2YROXiO4ljNInDy0Q99CXpTiaa99jcGb0sWKFFLo3Ywdodl2Sl6oC7CnRp AR4qMsYoJRbkcAzv/XNXzpeTWx2kIr/VJUkv730sKJOwtSarRmYKfppD6bXiIRUv4EVSZ3wIWQ deatSVXo+avkHN+A1bv+iX2AAAA 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: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin <nikita@trvn.ru> X-Developer-Signature: v=1; a=openpgp-sha256; l=1256; i=nikita@trvn.ru; h=from:subject:message-id; bh=gDa6AVN3vo7ERUBFuN7/nhEFecN+h7HA4AxNspjfA74=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlOf749S6qy8jn8gFHv8ya0UmTDBMZ9bqqadoK7 ScEvd5m9xuJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZTn++AAKCRBDHOzuKBm/ dS9LD/9T7iD5tvyD/ej0dNBcSXEA+mrYHcS+fWieVOrXJJu9QDAdVLRrL09Te/pKn16lv6gYldk qcWjgKc/VbJLUU0BPCxjI+cWVuu4oJh7CkL6fKfT5PgXZMv1yTZgNVkuyrJkFlBkVjEhVHgJ7he R7zsafIyL0Fm5AwrTl0iExtiAVVK8xYwXjqSfMvuQnE94jegWAf7orBJgq0o9mrhI3KJyP4HSi2 kTAeRwqe6S9n26O3Ie/Oln6UZXjyiP5eDiXZlfI1eKHfyGys3g7/xcqFeqkZIFUQAKbHgcgKGM/ dRq1p6GpuVQQCWRgnqJhgaDtzUtMFOopNWLBrt2guSz5oROYiWphHUd8wz/RbbFEX4dW/YmxJV5 hHauAh5shEmPhheBUxnm/6vq2BbR0nT8dG0Bzel8KazGuIPhUsvizB72MUEIPBM6LQXN/flm5O2 Q/88tvHbabjoKgtdRG9ZMpalbRBmrJ4Akoid4eAQzsuVYzWsMvns/UgKPaWj2TqHZxkE7dCsGrS p8FufmY8iBC7CsQiTzahhEbycqKiO/wnqF9pCTgj2bHwrWq6n37z2YykI8ctnuTDOIkdGthxk8o KEK0Daplz5Gcvai2lPjZGWAmKjgWJAtlfZJteIz9gDddVYQ+J3EDckcDnQC1hPcjgVV+x38SfOr xCnD4i7oO7WRkGQ== 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 22:54:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780796273424055938 X-GMAIL-MSGID: 1780796273424055938 |
Series |
pm8916: Add BMS and charger
|
|
Message
Nikita Travkin
Oct. 26, 2023, 5:53 a.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>
---
Changes in v3:
- Drop 1/3 (dt-bindings) as it was applied.
- Link to v2: https://lore.kernel.org/r/20231023-pm8916-dtsi-bms-lbc-v2-0-343e3dbf423e@trvn.ru
Changes in v2:
- No changes - resend with minor commit message edits.
- Link to v1: https://lore.kernel.org/r/20230916-pm8916-dtsi-bms-lbc-v1-0-7db0b42f9fb1@trvn.ru
---
Nikita Travkin (2):
arm64: dts: qcom: pm8916: Add BMS and charger
arm64: dts: qcom: msm8916-longcheer-l8150: Add battery and charger
.../boot/dts/qcom/msm8916-longcheer-l8150.dts | 43 ++++++++++++++++---
arch/arm64/boot/dts/qcom/pm8916.dtsi | 48 ++++++++++++++++++++++
2 files changed, 85 insertions(+), 6 deletions(-)
---
base-commit: 2ef7141596eed0b4b45ef18b3626f428a6b0a822
change-id: 20230916-pm8916-dtsi-bms-lbc-2fb1b99d1eb2
Best regards,