From: Stanislav Zaikin <zstaseg@gmail.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Sebastian Reichel <sre@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org
Subject: Re: [PATCH v5 0/3] Add Xiaomi 12 Lite 5G (taoyao) battery support
Date: Thu, 3 Dec 2026 15:17:41 +0100 [thread overview]
Message-ID: <7ca4fea0-f4f0-4cc9-8fb2-bac4aeea3e37@gmail.com> (raw)
In-Reply-To: <20261005164303.1208127-1-zstaseg@gmail.com>
On 10/5/26 6:43 PM, Stanislav Zaikin wrote:
> Xiaomi 12 Lite 5G (taoyao) has an additional property with ID 12 that
> breaks the parsing in qcom_battmgr. Fix that by introducing separate
> maps for lookups properties in both directions.
>
> The other approach that I tried is manual shifting properties:
>
> + if (battmgr->variant == QCOM_BATTMGR_TAOYAO && prop > BATT_CHG_CTRL_LIM_MAX)
> + prop++;
> ...
> + if (battmgr->variant == QCOM_BATTMGR_TAOYAO && property > BATT_CHG_CTRL_LIM_MAX + 1)
> + property--;
>
> But I found that more obscure.
>
> Will be happy to switch if the maintainers prefer this one.
>
> Changed in v5:
> - Fixed the commit message (patch #1)
>
> Changes in v4:
> - Added Konrad's r-b (patch #2)
> - Dropped RFC tag
>
> Changes in v3:
> - Fix QCOM_BATTMGR_TAOYAO enum ordering (patch #2)
> - Order in qcom_battmgr_of_variants[] is already right (no change)
> - Revert the qcom,sm7325-pmic-glink SoC fallback (patch #1 and #3)
> - Rephrased commit message (patch #3)
> - Design question from v1/v2 still open: lookup tables vs. inline shift
>
> Changes in v2:
> - Keep the qcom,sm7325-pmic-glink SoC fallback in the compatible chain
> of the taoyao pmic-glink node (review feedback, patch #1 and #3)
>
> Stanislav Zaikin (3):
> dt-bindings: soc: qcom: qcom,pmic-glink: Document Xiaomi taoyao
> compatible
> power: supply: qcom_battmgr: add Xiaomi taoyao support
> arm64: dts: qcom: sm7325-xiaomi-taoyao: switch to device-specific
> pmic-glink compatible
>
> .../bindings/soc/qcom/qcom,pmic-glink.yaml | 1 +
> .../boot/dts/qcom/sm7325-xiaomi-taoyao.dts | 2 +-
> drivers/power/supply/qcom_battmgr.c | 86 ++++++++++++++++++-
> 3 files changed, 84 insertions(+), 5 deletions(-)
>
Hello Bjorn, Konrad,
A friendly ping on the remaining patch. The binding and driver were
applied to the power-supply tree on Nov 9.
--
Best regards,
Stanislav
prev parent reply other threads:[~2026-12-03 14:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 16:43 [PATCH v5 0/3] Add Xiaomi 12 Lite 5G (taoyao) battery support Stanislav Zaikin
2026-10-05 16:43 ` [PATCH v5 1/3] dt-bindings: soc: qcom: qcom,pmic-glink: Document Xiaomi taoyao compatible Stanislav Zaikin
2026-10-06 15:54 ` Rob Herring (Arm)
2026-10-05 16:43 ` [PATCH v5 2/3] power: supply: qcom_battmgr: add Xiaomi taoyao support Stanislav Zaikin
2026-10-05 16:43 ` [PATCH v5 3/3] arm64: dts: qcom: sm7325-xiaomi-taoyao: switch to device-specific pmic-glink compatible Stanislav Zaikin
2026-10-14 12:51 ` Konrad Dybcio
2026-11-09 1:22 ` (subset) [PATCH v5 0/3] Add Xiaomi 12 Lite 5G (taoyao) battery support Sebastian Reichel
2026-12-03 14:17 ` Stanislav Zaikin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ca4fea0-f4f0-4cc9-8fb2-bac4aeea3e37@gmail.com \
--to=zstaseg@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox