From patchwork Sat Oct 22 07:28:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7673 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1108329wrr; Sat, 22 Oct 2022 01:44:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ZhkTr/tm2sUfRpgAJ+Xnm46vo/j0Rnccf9UMQGX9MvO3zmWL8wBvWQclQxZ8m4fTsoPth X-Received: by 2002:a05:6402:5483:b0:45c:1336:6d9b with SMTP id fg3-20020a056402548300b0045c13366d9bmr21353213edb.100.1666428253532; Sat, 22 Oct 2022 01:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428253; cv=none; d=google.com; s=arc-20160816; b=PasO2Cik1fJfN/BUUVbSRpAf3Bx10biKdepaA1cDASaVEGQvXVYm7MlZTICjkQ+6Ov FH9Zy77g7+9L4mzZNYvMDnFRcAWmQ0mLYwTeZxb8s/pNo2bZZgcfdFuWlSDKBPh+Ry5u MTA0mXKOU3XAJEJBO7YXOa2qkNM5b6CQ7O+jZc659ojZ3CSA3pAHBF07Vavgsj15CVvZ jBOUVCQHIrwbbHbRasovV2DlUJylyhX1rEf4a7Xv49pknpEe76WH/aR9HX4o8ke8UJWg 6sEqw92xX6OWy6KlHbV+eE5rQAi3BhCS2JWzj8ETuxn+sYcEoOXrjWa0RUPfZ8C6VrQF 9h7A== 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=lfeW0cifs4TbJYNPN88aMQje0bqdDAa/QAWN3Yfr2Dg=; b=xwKDlX09t2nYT2UteQq7ClJpL+MGWqm+Cjbf4O1vXo/LexVUpdAYmyUIlVRoptIlD/ OO+DbGqI+/7Q8y5rIFveyrhVvya0xXLwTuYqpJwCl3SmnMqLDFmY3Umo53Zu0XIS/9tv hrrs1bXJ1GZniJeRjeiWhy/SXvaZnLS/OOQGetstAwgsWmccTGNt1l7gjTrwRG0W5nBC 3vSoeqolbfdRr+liYLNt9cMaB2IUgl3BQUxC8DhbgkbJAozjILgOYHZQkEnH3j+WDldE FNW3oEzAeiHQXHxqaxJqckA5Dy5ZHgkHLoKYXKAqVs0qmXh6vhb0rEIcLeLrQkYtu//J 9qpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=G4LgoH6X; 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 bv16-20020a170906b1d000b007809c50fd78si18884635ejb.262.2022.10.22.01.43.49; Sat, 22 Oct 2022 01:44:13 -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=G4LgoH6X; 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 S234784AbiJVImp (ORCPT + 99 others); Sat, 22 Oct 2022 04:42:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234905AbiJVIkg (ORCPT ); Sat, 22 Oct 2022 04:40:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA202C6E09; Sat, 22 Oct 2022 01:06:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 69014B82E0D; Sat, 22 Oct 2022 08:04:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C55E3C433C1; Sat, 22 Oct 2022 08:04:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425866; bh=8HZAZLu18rQXJO9oL8pm8b+Lx0P+qsOk9LqgjcoX2Zg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G4LgoH6XFr7ofdCTfe1HJzduxkBJChDG3sbyO5ML5dpYKPQdE7W+kEcNiQEhT5dO/ P4HJrh4WX0HAXKHSBtNY8MTDTLP6ejIyB7oxaxYlSBmKUpr85JStysuOwdNjzsm0OX 3ns8qzOHU/qANonkRXGj0GXIWnW/wx8Nf437HdXA= 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.19 641/717] arm64: dts: imx8mq-librem5: Add bq25895 as max17055s power supply Date: Sat, 22 Oct 2022 09:28:40 +0200 Message-Id: <20221022072526.789058181@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747376672173613176?= X-GMAIL-MSGID: =?utf-8?q?1747376672173613176?= 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 587e55aaa57b..11f56138c533 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>;