From patchwork Mon Oct 24 11:33:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 9476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp480600wru; Mon, 24 Oct 2022 07:21:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ptaTsKM8UWRSdFw/AEyZHENWXP/UqjVxqFUPXhiI91LRxYjPOJbFdKcrcbO0JuyfaSiUx X-Received: by 2002:a17:907:a05:b0:77b:b538:6476 with SMTP id bb5-20020a1709070a0500b0077bb5386476mr28301412ejc.324.1666621278694; Mon, 24 Oct 2022 07:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666621278; cv=none; d=google.com; s=arc-20160816; b=x45L3qlVo7mNnebzYm0xdRtAI9xQE/BSL6aX0+eZc7lhfhUgftT89io+I/TwddmQx7 7jpj06Ah366iDiw9HtqYCzLp7LaZImBFxDMogofx/nJxfECZYs6mme1WPajV1Ii60q1J Uii4b/rodQbgW8eNrRPCOyqhdV2/fETwXEwwRI+Wgdsu1JIDQzrRPLAiDR4Qv6lRPGbu RaNXf1MkWW+81ukLaqoWj+ozNaEHDjnIbN1ZS8DaCTvH+kjMJGvA76259AGWZJ025x7a utDGfPaV9JueCf4u2JapcS8X4SYRIfgdg35F04FvAJ6NV3VY/40z7tT2PCeCfeco22cg N/NA== 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=EckkPDzF5nvS7kQYgxKlTwokkV6lvgY1sa8jIytRGZM=; b=gwVrGBTkNOhf8muljxqT4AZxePVfA2V2Lvijpl9rvmDTQuonWXRx8A8xwiYPBlyXUo Uiw7xJ6aivfjPChY0UNJADbFVn4oxeOXeTh+t7T4j9vR9IOdT6EaSAnzZAQObe+zNQ6R O6gxrD4tTYIPdwoyxbLbVHnDlJdaS2D+V2W1UI6y0veKW4nW2WaGbN7VVyFA36Ks9XH0 qiy5kRwgcsyCyZ7k4+TjeTXyoiZcJYxuyE3pbvGO23cD7cQJdZmZv37BuEMUGjejMYbR HbQ9lQ4Rjo/a6Sg6UnIN8pR3gbfMatcZgWRQFWV224leYvy/4nQ6mFtvZYT9jEfVs3qS jvbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BLkDYn8k; 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 jz4-20020a170906bb0400b0078dd73ae297si24865592ejb.172.2022.10.24.07.20.53; Mon, 24 Oct 2022 07:21:18 -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=BLkDYn8k; 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 S235784AbiJXOTO (ORCPT + 99 others); Mon, 24 Oct 2022 10:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235953AbiJXOPK (ORCPT ); Mon, 24 Oct 2022 10:15:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFA9A2A955; Mon, 24 Oct 2022 05:55:01 -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 4F00D612F3; Mon, 24 Oct 2022 12:53:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 628CBC433D6; Mon, 24 Oct 2022 12:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666616018; bh=+styq6Jq21Ief3L8ZjsCQgRD0FJUdPKMPpihPHWPOy4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BLkDYn8kOxlc/GjPtbe91NCADvyAOPnx+AWVX/tM2T8xfbwy4V96Snhw9j7rOL2ps w3UwlZznbFpHQxQC+iWAyMNg0An2RfqG5YlaElJox7nd/1d0DdZ9fykfJU11un9AKb 7T/bnnkr+tCR8+9yTaauEIQ3p2HuI3QU52CkhIz8= 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.15 471/530] arm64: dts: imx8mq-librem5: Add bq25895 as max17055s power supply Date: Mon, 24 Oct 2022 13:33:35 +0200 Message-Id: <20221024113106.362197633@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113044.976326639@linuxfoundation.org> References: <20221024113044.976326639@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?1747579073640368262?= X-GMAIL-MSGID: =?utf-8?q?1747579073640368262?= 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 460ef0d86540..c86cd20d4e70 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi @@ -967,6 +967,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>;