From patchwork Mon Oct 23 06:20:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 15736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1105874vqx; Sun, 22 Oct 2023 23:21:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6u5vNicsx5fgBEoHiwLd6orggp2SkzHrCJJmzE9lic8aWAUahIXy9udvVPp2HnAHKnDJh X-Received: by 2002:a05:6870:cc89:b0:1ea:d476:d018 with SMTP id ot9-20020a056870cc8900b001ead476d018mr10444655oab.39.1698042100266; Sun, 22 Oct 2023 23:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698042100; cv=none; d=google.com; s=arc-20160816; b=oJsy9P8VyQ1OrLBVu2YO/07Dr0xgjtJ/ureVrZizoCzUjorvHnbx62HYSMxFFD312H +pveFibEwo5US1OmEdyZ6GTMjNaLI07Cu9p08Ij5XkZ4n3bNsiBUy9uasF3mc/PnvQYn fpHJu3XsR38nn1b8cHfWN4wkyDq4I5rK25eexiHebI3rkOMD+muGG3HLc9x3gEHwqOk+ zLWccDhI+ySVaez+s7JVco5xTO/1H+OzKHQaWbnjjc/9QW0pcMiR1nL+dsDSqMt77kJB T1Anw0CqklVBOct3wdeVsbSFL/f1MMzYENPW9Rz2YNs37/BfzlBzObOGkQrjc5zt5Gev +WEw== 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=Lcy19cbBleOBnS08UMhd1Yyjmkns8P/d7XEo0tpsJ4I=; fh=WJZ0ZrB0e7K7PtDZrv0aOFDugF3kN5vtBdwtzw6+lXE=; b=mrINlv2H5XtFSd5N5aH7w2af5MSkNa1eCmPSWkL9OBmCKi9kawFI3QoDh15NHhV4mU pE5eYmCuxT0QDdm4p050JOYShxaVH3EpB8kNejK8PxmnHKtOZbvHYSa/H0zWeuazhxUS JjW55zEUFIReS0TeaaFoom9fawWYRNuRjD043i2jnCYq06qfGLu2p3ctwtysdKjgMaEj o8z2//f5UPjUqubC/QHyt79L/bU21JFovvxZXuSO8F6/+FNqywQN/BQwZLvcZbdHzEVK T4PUMnWmHpFV6Lo/6Hg8JNrbnY1VmWI6efvfH6doaTb15wOEKREZpHEqs9rZCrjF5FNq 3Kww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=zPo5cN9D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id x190-20020a6386c7000000b00577646e2b6bsi5935752pgd.206.2023.10.22.23.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 23:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=zPo5cN9D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 2998880608D9; Sun, 22 Oct 2023 23:21:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233363AbjJWGVZ (ORCPT + 26 others); Mon, 23 Oct 2023 02:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233305AbjJWGVW (ORCPT ); Mon, 23 Oct 2023 02:21:22 -0400 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D325410C3; Sun, 22 Oct 2023 23:21:19 -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 369214C0C6; Mon, 23 Oct 2023 11:21:06 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1698042069; bh=4dXuAwglO4a/qLy/zzCFzx4geirBGhzMB/dhxgDlnwc=; h=From:Subject:Date:To:Cc:From; b=zPo5cN9DIYUypUbh53SjjTp8ncPkGgdIiXk6fWHwryaOP+NPtw/4M/7lgAACeup7c psGkjznGvc1pWZBWrGlqqJ0DX+9BDJGYX7bed+nhWOeln/40qXhBdVpVdJfRPoGzvV RRBzA1f0fuVwxVBRkHMTcy5KZ+p6n9rmkMvyxvJ3qpuukt6znAOIjzUn14H7XFJFfl Ir8Gr7cZhNDUtFPOWdfneIVoN3Wri79/Th4BS6Y8s3SqxLpX5SF1s/A6YQpDsDf919 j/PC72hYDa7BdFte7M1P9zdv4bspc82Zx7SiNrh9HxfGeMviw76JrkwC8Kw5APTC5L TD/hzhYVQErfw== From: Nikita Travkin Subject: [PATCH v2 0/3] pm8916: Add BMS and charger Date: Mon, 23 Oct 2023 11:20:31 +0500 Message-Id: <20231023-pm8916-dtsi-bms-lbc-v2-0-343e3dbf423e@trvn.ru> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAK8QNmUC/32NTQrCMBCFr1Jm7UgSRY0r7yFdOE1iB+wPmRiUk rub9gCuHt+D970FxEf2AtdmgegzC09jBbNroOsf49Mju8pglDkoq084D5c1XBJGGgRf1KEJpMl apz0ZqMs5+sCfzXpvK/csaYrf7STrtf3vyxoVnh0pOppgq/yWYh738Q1tKeUHGjl1B7QAAAA= To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=1226; i=nikita@trvn.ru; h=from:subject:message-id; bh=4dXuAwglO4a/qLy/zzCFzx4geirBGhzMB/dhxgDlnwc=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlNhDOBV0ENqhP6SxR45w7p3/0ukR7TyALrk+mZ RN+opCke6yJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZTYQzgAKCRBDHOzuKBm/ dbsrD/wLU8R0DUYQcnXKSryz0M3dtGe0z2es/wcfYOs4bxHdyhV52FVIl9OkuRXqYFdw38pRzVy +EQNChnhGwb9sCvWFDQYxWCZVXKmm77JEdGp1yr3On+Mw2T5q48qhxN8IrDH16nfNa9ik/PuztL F3kcax9dvxPimtmNifgqW42lgTc+o4zI+L4yVKO+ZnIVLexXIuNZQ8mlJ53c8icCSIPaqZaIDmQ qKO+Q5tSGEnjLRL1/5lS+W8DiKJXrblymGejlO9w3OSEjw9JDI20bdsIxym+NF0c9A6UHzrkD7Q lvN1y5w768IU06Q5Y8CiSEPMGTJLH7zY8sNqTaHZ+kqf7quSfxM2kW/ohc3umuSGCzHsL77mXss w+FdpzsTdQsDzc5Zstzx+L9EX0HD8Cu++6FUVoRJFRr3YpRNFMqclZbQclqnYy91YHYyscdwe+K VC88+fcWeOXzPAyTwT6I45NKPFRAEfC5nlJtOooyoeA74WuiCwBI+I/jM5oiVR6C1V/IXkiA8UT oAuEcKqOS+nlsUQVnA1ihDwP4UXq6NTYxWyNs14c73r9galqklEVahMgKaia8pQoTfjuUGBPwQD oWkG6bNNOpvfjvMGGgxO+FlyT9vGNveRffFIEvD/PV/lQuIxlmL/ag3LXptzxgkRexWWPNlkxNJ 5lPBbaq0AcxCBHg== 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 23:21:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780526193298284054 X-GMAIL-MSGID: 1780526193298284054 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 --- 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 (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: 2030579113a1b1b5bfd7ff24c0852847836d8fd1 change-id: 20230916-pm8916-dtsi-bms-lbc-2fb1b99d1eb2 Best regards,