From patchwork Wed Oct 19 08:34:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5279 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp280472wrs; Wed, 19 Oct 2022 05:00:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eGan4EqbEn3uTvtoVzPcbns0N+I4RLHzbhEKG6lXiMWhFeXEcPGztgwmCI2XT/EReCdIg X-Received: by 2002:a17:906:fe44:b0:77c:e313:a8e8 with SMTP id wz4-20020a170906fe4400b0077ce313a8e8mr6540491ejb.700.1666180849991; Wed, 19 Oct 2022 05:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666180849; cv=none; d=google.com; s=arc-20160816; b=IXWK7BoninHl+ahmxBLlRAtazfNmjrknAKjUYc7NsjwYWPi49uK3s2QwrlZoSSVLkQ CEBwb/9UmPwq4sNDqKoyZqsnpXOj/Dfk4BMqsps9pqRejvsZmAXr039IHk4/j44TT8Z9 UdgUmYE6XmdWrixYS0O8f18Sftzo0M1HPM7g8vhWf42ulMBNSoiOcYsLBR1mHNYi/Dza 3ZVoTNW7CmBcnK4zsR/H0nBjVm8kyzRABqamYH1rQ6awzMFigUIEQ5f4kB8VCLB9e/fo rxpVgDssOcD/OvRRfKCjclotXezvC0IUYyAsUFN7Zx7LU128qgrwah8LWUPhMfTPkyJm K11g== 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=sossEWVWk208JAIFFkIwmqnub/OJGDDFs/Mj3nDrfpY=; b=bIrDDjkFtBxctU/vvTSIigRHuI5Q0M+IRVNCXaGoNzbcT91ZdeoPumuQdfMMp9URbH P3mqZug3WzVJeoPY0yqAqVe0FNQ5102qlRP1JhgschOHnkxRx8LitvSNtvk3YH3VHIqG H6N1JIClFS6d6J3XsVmmVitFB9yY4/hcr/Z34qpDuhrtV5kytJCVJCZ+ko4uaNHwaFxp rAxYIaV0CAGp/VJoC1wQfUbgXUDifiXLtQyvrfLNsFy5Yu3e8s73S86+ot8K57YC0apr LkGH03SUOffWEbyBW1LuniByfgpT0nvNSZZXWFn7J5BOoLAsOJqmljYR4yhEv/ZzvtZC prOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QYkQ8OjR; 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 sa26-20020a1709076d1a00b0078c8dadd4bbsi14089507ejc.742.2022.10.19.05.00.23; Wed, 19 Oct 2022 05:00:49 -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=QYkQ8OjR; 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 S230227AbiJSLxb (ORCPT + 99 others); Wed, 19 Oct 2022 07:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231992AbiJSLwy (ORCPT ); Wed, 19 Oct 2022 07:52:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03179DED07; Wed, 19 Oct 2022 04:31:43 -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 sin.source.kernel.org (Postfix) with ESMTPS id AB22BCE21C8; Wed, 19 Oct 2022 09:13:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D635C433C1; Wed, 19 Oct 2022 09:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170792; bh=5WJeNR1Zg58qVpwQnV00zHOWvLfpqG1V3CkVMo5G3kU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QYkQ8OjRInwPfRmkmmUEbKi5ldwDBCYeTBFr11Mowjtg2+rspEENXK12mBy+rKJiP /NkhOZC9k8yt107zmSHeCd9WkhiL7OhIAbMykZote6p6jHNxkt8XENv6j/QPcvCjQA hM9Hsl0GNM2PKUtADbNOFAJMkkYCrj8I8aBLiuyg= 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 6.0 781/862] arm64: dts: imx8mq-librem5: Add bq25895 as max17055s power supply Date: Wed, 19 Oct 2022 10:34:28 +0200 Message-Id: <20221019083324.416436240@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747117250993293412?= X-GMAIL-MSGID: =?utf-8?q?1747117250993293412?= 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 @@ 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>;