From nobody Fri Dec 19 06:16:02 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B749FA3743 for ; Mon, 24 Oct 2022 14:20:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235834AbiJXOTQ (ORCPT ); Mon, 24 Oct 2022 10:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235953AbiJXOPK (ORCPT ); Mon, 24 Oct 2022 10:15:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFA9A2A955; Mon, 24 Oct 2022 05:55:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4F00D612F3; Mon, 24 Oct 2022 12:53:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 628CBC433D6; Mon, 24 Oct 2022 12:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666616018; bh=+styq6Jq21Ief3L8ZjsCQgRD0FJUdPKMPpihPHWPOy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BLkDYn8kOxlc/GjPtbe91NCADvyAOPnx+AWVX/tM2T8xfbwy4V96Snhw9j7rOL2ps w3UwlZznbFpHQxQC+iWAyMNg0An2RfqG5YlaElJox7nd/1d0DdZ9fykfJU11un9AKb 7T/bnnkr+tCR8+9yTaauEIQ3p2HuI3QU52CkhIz8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Krzyszkowiak , Martin Kepplinger , Shawn Guo , Sasha Levin Subject: [PATCH 5.15 471/530] arm64: dts: imx8mq-librem5: Add bq25895 as max17055s power supply Date: Mon, 24 Oct 2022 13:33:35 +0200 Message-Id: <20221024113106.362197633@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Sebastian Krzyszkowiak [ 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 Signed-off-by: Martin Kepplinger Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64= /boot/dts/freescale/imx8mq-librem5.dtsi index 460ef0d86540..c86cd20d4e70 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -967,6 +967,7 @@ interrupts =3D <20 IRQ_TYPE_LEVEL_LOW>; pinctrl-names =3D "default"; pinctrl-0 =3D <&pinctrl_gauge>; + power-supplies =3D <&bq25895>; maxim,over-heat-temp =3D <700>; maxim,over-volt =3D <4500>; maxim,rsns-microohm =3D <5000>; --=20 2.35.1