Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1022036rwi; Wed, 19 Oct 2022 05:57:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60qF9fZo5GEtKGkbNATiT9NnwWPBqEtoDekA1+Ag+EcVNyTtdKe/GXPjMo4s5uUKUgvxGv X-Received: by 2002:a17:906:b08d:b0:782:d526:3e36 with SMTP id x13-20020a170906b08d00b00782d5263e36mr6656517ejy.358.1666184274889; Wed, 19 Oct 2022 05:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666184274; cv=none; d=google.com; s=arc-20160816; b=B3ajxCrbPMQWhxslPigMvaRg9ezdvNf1XSJAPIYYrTCTHuQfsHRp+zHttwhW1n9uRn GyYaunepKNRy6jb4X3IojsNcgF/q9mhRmqpe5uFrfwQuN1iDIZeXUUO3cr6+31NEmUwO GzUweAeG1/zz18eBMrSU3sDsfHOXZfN3sRuh3Z2XzehkbaaZFtkPYuBL8htY6lBSZiHY FRa7p8eNa8ntG68b9jTKbb6a4ik9ZDUIIHAN0NFTKTvAUnrV9NMgJdEoG75Dsl2ObItx fJv7PGm71+hZo4hjnfwdd1xgvYJcEMf0Wk2PGhEWWcmfIXHxYmBl7AyG5etqsh93nznH JoIg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go9-20020a1709070d8900b007879f5efba7si11758085ejc.872.2022.10.19.05.57.27; Wed, 19 Oct 2022 05:57:54 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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>; -- 2.35.1