Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4831469ioa; Wed, 27 Apr 2022 12:05:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/AEY1juT9XY495tCgXRoEUFxgK67xGq4jMGJZi6erxcnJXwcTVuIc+iPC/GNcLdTxfwGW X-Received: by 2002:a17:90b:1b4d:b0:1d9:bc90:f7ea with SMTP id nv13-20020a17090b1b4d00b001d9bc90f7eamr9839358pjb.223.1651086306310; Wed, 27 Apr 2022 12:05:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651086306; cv=none; d=google.com; s=arc-20160816; b=tQ34AvkzVAKV7VLfItK83OZRlH7eMTdUjP/Ma6CZRkqpBktri1ckWinriY0jxk06rB j0QalDfKK1M/PZjSndqjLPZvXbxObQx6P4CYIgjfpjGl49RNvZ7LPystoLdQgTQR4wuN UrZoMg8s0NokEZj4lzKJGIGqd+c5emgbXyJ/paNTlumuykV8CELE5spLOEGoNplw7HBh +5wjLRH7BZNX5vRKqXPJBr/kJqPjorGLd+3UG7YGN51Ao2rTgx7g1yvqo9k5dCakBgvM SFkbDuwjKrISoigwi4Mjypqtnc5J0/RJsiuCI6SbY+aeWSpz5vVzSIVdUqBMbg/ZndFN 6vAw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eVrG7ytRhvfMLwg4sL6jbIdDhYj5gKeUGxhEwn4Bejk=; b=MRgHeSntJkYAXXCI3ZhVFHi5m0+/dTSkP7TjhJ/iTqTvHYQO/OSwFGOhdyF76HowYi ufCxOiZx8kwyxS7qrUMgxcGOq7FzhIZzUPgRqIq7PEqJjg4BLCzi4qkgxMv/fwzGzDRr xlnV9DezONw5Lb347ZEU6LpbdI0OBw3gzPnfJmm17WOZC8qvvVa54TKdij1V+UcMLGwH 8zPzMbwLiUO2EBfvx9RzqVd3XFJRXuU+4DEhuC20c6fTe8l/TKf/7blHIPKpsaIwd8jR iBe68F8z/MRyRD4xHB8gYN0vkNrsCTAOyq2nInAxN01E+iQ2BRlqMBHNLo/b37hgqoJw oUxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZAC4yqnC; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a170902f69100b0015881788556si2660757plg.530.2022.04.27.12.04.48; Wed, 27 Apr 2022 12:05:06 -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=@linaro.org header.s=google header.b=ZAC4yqnC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231358AbiD0S4I (ORCPT + 99 others); Wed, 27 Apr 2022 14:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbiD0Sy4 (ORCPT ); Wed, 27 Apr 2022 14:54:56 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E4F972F8 for ; Wed, 27 Apr 2022 11:41:23 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id k2so3718120wrd.5 for ; Wed, 27 Apr 2022 11:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eVrG7ytRhvfMLwg4sL6jbIdDhYj5gKeUGxhEwn4Bejk=; b=ZAC4yqnCU6wxempNAQjukbfA7gdhyP8AD5WocLKEYsl/gZINdkKhmxS+6Z2qcNMADd mGOsyczPBem9bXvz6wIfp0Wrg6RVR/OFnMOgte2G0zwYWb8axX09E5A8PFRl75F1P5On w2dCiweJHmbMEs+gCfSsr7PB9jYWgVGl7QVtBKtB+/XY2mO88bRGKbJjb2Rd71l30nhJ exqWYro7lwYZKkXqwSLahj2abOPV5zQAyUIwVz1GQ91qXC4IUPWY7N/RCpgocYvLQrjV 5GyLrVQ2Vw6t3gjIDFhEK4U5i1xGGPQBR6xbhCeJ9i7RvREwG9sJusvMGZv/SRPmQzaq 567w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eVrG7ytRhvfMLwg4sL6jbIdDhYj5gKeUGxhEwn4Bejk=; b=EDnFix/OC1fqhYmZ8i67zt29MJkB5R3F8mX1TIvkbXc/a6PZsus5vY8ooq7biJ2g9s GGk79erodLXT5ppVteGJtXh/pv/684v1fPrHsKUlPRo3YbNnf6x8Qx0wzp+Z4XDbOWQW FXHhMZIEchUApumQpsY1HIwObUTNmW8u62D+wNl7lumAdhccScZb7NqMHzEpoE2dk0aP im3wbQwtc7Wrn3jp+SB371f0i855u42fsw8JaaXCnUOJQ/nT07tEw/QSsqQiCc+sYZ3W RHXdvLSp5F2bnlj3PMzLYqGm7SCaztqsvkrvTHxp1W9Qc38H0asVm8929idUw4ho1MYy vzYw== X-Gm-Message-State: AOAM530EDGF0mOdE8/Fka90iXI5dIeXMgHvN/5aiG0L5uki/mnguMBEO CkD3zAORHyudUcX/3/GMz4zFZw== X-Received: by 2002:a5d:6211:0:b0:1ef:85dd:c96b with SMTP id y17-20020a5d6211000000b001ef85ddc96bmr22790270wru.456.1651084882164; Wed, 27 Apr 2022 11:41:22 -0700 (PDT) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id f3-20020a5d64c3000000b0020aef267950sm1992798wri.49.2022.04.27.11.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 11:41:21 -0700 (PDT) From: Caleb Connolly To: caleb.connolly@linaro.org, Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Amit Pundir , Sumit Semwal Subject: [PATCH 5/6] arm64: dts: qcom: sdm845-xiaomi-beryllium enable pmi8998 charger Date: Wed, 27 Apr 2022 19:40:30 +0100 Message-Id: <20220427184031.2569442-6-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220427184031.2569442-1-caleb.connolly@linaro.org> References: <20220427184031.2569442-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Enable the smb2 charger driver and add a battery node to report the battery stats correctly. Signed-off-by: Caleb Connolly --- .../arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts index b3b6aa4e0fa3..1a5e127d7a43 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts @@ -109,6 +109,14 @@ rmtfs_mem: memory@f6301000 { }; }; + battery: battery { + compatible = "simple-battery"; + + charge-full-design-microamp-hours = <4000000>; + voltage-min-design-microvolt = <3400000>; + voltage-max-design-microvolt = <4400000>; + }; + vreg_s4a_1p8: vreg-s4a-1p8 { compatible = "regulator-fixed"; regulator-name = "vreg_s4a_1p8"; @@ -302,6 +310,11 @@ vol_up_pin_a: vol-up-active { }; }; +&pmi8998_charger { + status = "okay"; + monitored-battery = <&battery>; +}; + &pm8998_pon { resin { compatible = "qcom,pm8941-resin"; -- 2.36.0