From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AC0CCC433FE for ; Tue, 11 Oct 2022 15:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xQvgM7WUZ3N2cwK4iNkP2PJK9yX47TBbdaAg13rkLC0=; b=IBLVsJVziJGye0 +FDmSQvVow0bmwEeP11/sgT/0+3J7viEv3XzICj/8gz4d5eIlJ18WmCH7hiGRs3lbSajGdcdGneAr pFXxbf6CHslCZKuFypaYaspEK11L1dbd1E5l7liyFLHQF/KlkKoc9te66K/o+Yf743KL9RaLO/vAO CB7u0O82hLuLLYaMJmqWaD+311VFIHufheWGuwOJBwkr+Cpx1V61NjlGx3LZvx2H1syiQoPB0Igdp 263IOqrkKjc5KemkHKrOybXJU0D2ZsHetoGCqbhrs34E7Ig/QKDl+JrX1WJtEy3H3eC/oPyeIj4R+ 6m0BlWdQAveAhEexOcVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiHDm-004owj-SI; Tue, 11 Oct 2022 15:31:08 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oiGcr-004YfX-98 for linux-arm-kernel@lists.infradead.org; Tue, 11 Oct 2022 14:52:58 +0000 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 ams.source.kernel.org (Postfix) with ESMTPS id EC992B81627; Tue, 11 Oct 2022 14:52:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A298C433B5; Tue, 11 Oct 2022 14:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665499975; bh=na+7HFezGN2FQd39+JFPTtDdI+dOFc8VB2mQvPBTYNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AUfkFh5czLLd434slEU+UoCMniNQoVhNboIz9BV2YjXRN/1iGVYMwg8vwRYmeiqDb PinBOK9b0ACcirbXj60NsToBst14rFcTMwZ9DK8I77E3FVwn19Dgx5GszLzPb64j/x 1oHZIxw017Wi9Lc05jPx2P23+kyGcQasONbefLIaUU734uJQbVtao9x8AebHOFsizq AeCeDi9nf7iuUS1PpBtZbKcfSHpfWiQGlqgwgw7Y+HgoYmDxal+HtbI20alIl3f4ks hg1bDVjDmfviXlcMLCWzLwQ1o+KjkMsXx0iVq6dXirRJa/0om2rpkeDgBp5Zge/yY+ C1086c+0J6qmw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sebastian Krzyszkowiak , Martin Kepplinger , Shawn Guo , Sasha Levin , robh+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 14/26] arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply Date: Tue, 11 Oct 2022 10:52:21 -0400 Message-Id: <20221011145233.1624013-14-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011145233.1624013-1-sashal@kernel.org> References: <20221011145233.1624013-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221011_075257_526009_4DE8FC6F X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 @@ bat: fuel-gauge@36 { 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>; -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel