]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Fri, 2 Sep 2022 08:42:13 +0000 (10:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:22 +0000 (09:58 +0200)
[ Upstream commit 6effe295e1a87408033c29dbcea9d5a5c8b937d5 ]

This allows the userspace to notice that there's not enough
current provided to charge the battery, and also fixes issues
with 0% SOC values being considered invalid.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index 587e55aaa57bb971bd9715b6faae45eb67806356..11f56138c53310fc174ab868fad0b0fbdc3c695a 100644 (file)
                interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_gauge>;
+               power-supplies = <&bq25895>;
                maxim,over-heat-temp = <700>;
                maxim,over-volt = <4500>;
                maxim,rsns-microohm = <5000>;