Re: (subset) [PATCH v5 0/3] Add Xiaomi 12 Lite 5G (taoyao) battery support

From: Sebastian Reichel

Date: Sun Nov 08 2026 - 20:39:11 EST



On Mon, 05 Oct 2026 18:43:00 +0200, 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--;
>
> [...]

Applied, thanks!

[1/3] dt-bindings: soc: qcom: qcom,pmic-glink: Document Xiaomi taoyao compatible
commit: 0d9bdfd21820c8f4900ec304979972e4948f0005
[2/3] power: supply: qcom_battmgr: add Xiaomi taoyao support
commit: 385b733ad1a94af3c6f3bd4bf418f2f30a3b2bae

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>