From patchwork Mon Oct 24 11:32:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9171 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp457986wru; Mon, 24 Oct 2022 06:36:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6xaxg3smQRgoGsXSQ7mem0vEOZHnF55yEaQEO+Y/fkNF7SXR/Q5o7RZ9otkOywUs9vg4uK X-Received: by 2002:a63:6a06:0:b0:439:cc64:50e6 with SMTP id f6-20020a636a06000000b00439cc6450e6mr27722155pgc.483.1666618611474; Mon, 24 Oct 2022 06:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666618611; cv=none; d=google.com; s=arc-20160816; b=uvILDU0hYKxyTf0P2HaprO2QaZXaiXb5zGg6UX1/Do26vt2BL5KOTy6k+kjTyFdE7V 1k9IXE7VuYjbvsUZfNhelBSq0bYs/VvpDS5k7pK2fOMCmz173SdcyIK1HnkLqLi6ReSP /HmnrmwUuOAmyXPRZbUwj0fVmg8e0RBZPgAS3RAiejB/WwYr3+cbvB11ojIBUCScbvlV fwTF77vCoWVBLD85rE5ApfV2Jby1PP5HBHNM1avkRu1Q7LZO5ONRwWY0/2ZWXiTp1EuY MZGIKCILCKA8JuRx1ZpEQk9glTXbw6XkO1GyNC7aTTn0BGZHIBtaZ6+oHFHTF+CbfDsY z2vg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/QMxWNXxA6U0i2oxKxVqnjqWH4+nio9c3hyRqhQ9bi4=; b=BPm1CqxEkKfDIrfYykYyjgUjMEPYBUgrM9ZNf7rPIMpbcP09zJl9EO80Ld5ks5/1Dg 6VKxuLOa0COHgEKoL8ljHlUkBsQ5vqh4ymDZF+TApVHSe7Ek8r292i00c/NMYiVUtagf 8E655YRpH0DBD2s8sQl/+KOHMv4Wg4eT2sm/m75bMYuuZunCYYNdKxvPh6BSLUd364v6 wG/qcssyJe977TZJrUsl5xsI7g/lyHX9S0fvb5S2sr3rsZFPvM4JhrTZF3R3p2jPpGQ5 5NwZIHnuYdbSx2VQGeSyqg8lEVQ0Ej5rRnhp54JV+TShqGLSnxAfX//GqI++yAK0SFdl pJsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hS3h8rTp; 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=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a635749000000b00458fbbabb21si33025868pgm.710.2022.10.24.06.36.15; Mon, 24 Oct 2022 06:36:51 -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=@linuxfoundation.org header.s=korg header.b=hS3h8rTp; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbiJXNbv (ORCPT + 99 others); Mon, 24 Oct 2022 09:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230267AbiJXN2o (ORCPT ); Mon, 24 Oct 2022 09:28:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DD65AA35C; Mon, 24 Oct 2022 05:32:10 -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 3FBF0612E4; Mon, 24 Oct 2022 12:31:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 565BEC433C1; Mon, 24 Oct 2022 12:31:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614717; bh=XcyvMctpBNh06pi2hf3azrwB4tMOQO3O6k/SbrYlzeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hS3h8rTpes8zJ/3t9UsnTJ6T1dV4b5ayEeTxQ9btdCzB1LJvdkV0n4uvT798g5Hbt m0gWbtdpuONrQrz1DQ14jx20HytYOnmGH+JudWBJtageUppd1h7cyWiV0g1YNcHN9a 84lCbkEN/9notramTHLeYnYZKtkN7ZUgIwHUjxjA= 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.10 350/390] arm64: dts: imx8mq-librem5: Add bq25895 as max17055s power supply Date: Mon, 24 Oct 2022 13:32:27 +0200 Message-Id: <20221024113037.884053050@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747576277165210470?= X-GMAIL-MSGID: =?utf-8?q?1747576277165210470?= 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 e3c6d1272198..325ea100969a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -899,6 +899,7 @@ 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>;