Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2498997rwi; Tue, 11 Oct 2022 09:28:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7w3MqmUQHV57oakELRBRHIF3FKVvzN+BFpwKacIoD8hBv8cBwTTT5aZpaU0Tjx8Rzaxt9i X-Received: by 2002:a17:907:746:b0:741:4a1b:cb1f with SMTP id xc6-20020a170907074600b007414a1bcb1fmr18874344ejb.370.1665505697260; Tue, 11 Oct 2022 09:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665505697; cv=none; d=google.com; s=arc-20160816; b=M+gOewqFtXmX5JK3C3/ICgqlxuJtv8E1L6FkZsgRY6bSY/EjCQHpc/aBPHRR/H3KXB 3W8WILPcUcwrPgaky2zeaMy9CZWBWaOHbXoNwRx7z/TIMvJa6qJEy2LWjxSFEuV1jdlS ecxnzUwsDCqCjyJIwrubtWfji9lCv1DSt36Luz7dsqmsZlHFPtUl/vGH6wS2O2n12txE 5P9lVDQ3ydqpN5bQMseagQ3myz/m/He7A8jQh2sy83EBkXZRbCVBotWP+BMjBQxKrPOc MCJE4P2AJRV+tp2hjLnVLa0mDN4ayaPdTRqbyKohw6/D7wL71rfH9Xi7gAko3MeDkh2f m5Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WXbe6VlqvrdggmC6G8xkJY3o3GVJb3LCpzTAiTCZl6c=; b=bSmwSSlXFIeAodDl5GwcWx7ArYV1yj2WOg98vQPj8FrBpqVLceFRs71OwiPLpG8JAW tDQhkFstm3oxkRomkRMiHIX1ofuse/OwnAPgOiwErM2dXRYtUJlQNH5A8rtAYR3r82BW 81rDoxHn4W6qOR4S3vSegn2fj5yu1AQQVJ5Z+gHZLXyVnat1WNE7kSEqGC3aZBYqmwqw lmrEiDuAtsBMoRkFOJJE94eJP38Ud+D4Utbl2P/pHXTzFmDkhHVHemsiqg5uJ6AhPXPR smRzR1sQXEV5iwKhoDSdcwc9hdeVRfjdot7m3IpeSAa6nm3XmqIZeI57RFj6KQrpLlow 8/4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQB6opUH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u24-20020a170906655800b0078d404c4082si12422251ejn.398.2022.10.11.09.27.46; Tue, 11 Oct 2022 09:28:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SQB6opUH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230167AbiJKOwT (ORCPT + 99 others); Tue, 11 Oct 2022 10:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiJKOvE (ORCPT ); Tue, 11 Oct 2022 10:51:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42B879837B; Tue, 11 Oct 2022 07:50:52 -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 AE1BD611C3; Tue, 11 Oct 2022 14:50:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38694C4347C; Tue, 11 Oct 2022 14:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665499851; bh=nyiYCt6mhFl8NKKhnEpgJZ9DLSChqFQ3/CufAzPYGbw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQB6opUHlJFyTiOiJJX/8MzaXErGMzj3ULNtuzRZZ5860akpTE826yipSWzKqEerc 56HsKzPWl4vuWI16jCkVRNIuIlMAednrF7MnzPHkpVTp8svdVWlmriZAIERGp8Va2H SS8AnyZ9OaHETsW/3Rs/9mKg3oc/WY8Ay9IXvg6bF3nG9DT9swRsQwDdu15Eri7K/s QKUhFUU/caad64n1I7PCfGb55svQMOifKeXkTAl0lMZp1+wWDs+puwvzAQjzObwCOd tMZVnzgvYGjyIDbZXL8DqeHRvDOP5c3s1Z+pxZC7doIGknl+tZyL7/ULQWH8U14V27 c+y9XUty6ThKQ== 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 6.0 21/46] arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supply Date: Tue, 11 Oct 2022 10:49:49 -0400 Message-Id: <20221011145015.1622882-21-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221011145015.1622882-1-sashal@kernel.org> References: <20221011145015.1622882-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 9eec8a7eecfc..127fc7f904c8 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -1077,6 +1077,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