From patchwork Wed May 24 17:38:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 686041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89A37C7EE31 for ; Wed, 24 May 2023 17:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235277AbjEXRjK (ORCPT ); Wed, 24 May 2023 13:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231688AbjEXRjI (ORCPT ); Wed, 24 May 2023 13:39:08 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27A7C13E for ; Wed, 24 May 2023 10:39:07 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f611ccd06eso9794095e9.0 for ; Wed, 24 May 2023 10:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684949945; x=1687541945; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=z9LWN7uiJnsfEyNjOznDeARmPA/LULcuUMnMk07h5/0=; b=QVTMLZvIGyBaGffa+cYsRbbyWSH9YND8mjK3yKtJqG7CVJCjjIk5CpoPw5vwoZ6EMZ +8jZYHtYWKzWYZxRJDLk2jhTEwclHcOO+JoD4S68n8VAxdCfG0ejwkUBJqoQcjiCDXDb QokuPlBDRyzweWvjf1hrFOT+FXH/qFWs2uMeh7yG9x7+B6150r0WXvuDr6AHeFQgu8Sw XAhnp3febfahckoK0bgKQMO7cseggD0Q7tI6Ty1LfmE85rxlQk5EsbM/gYZPbwQE3VL3 z99us9221ChW2Pm0HtcqO9QWb58r94DIhGoUkyGny0iYxQ/Cqa8RHo2PSWNTFHq9UgPt oyhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949945; x=1687541945; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=z9LWN7uiJnsfEyNjOznDeARmPA/LULcuUMnMk07h5/0=; b=Y6RSCsY4dLtH8mx4qZX4dwxHBnj5lqsLoYdsI4H3FCv+KqV33nTx2cdzGH27CVQVvf v7z5gZ6qLN3p9qH5c2QEml55wgrnaMYv9V13Qhlr9hyZ1Alqj1pUScvcgqbtN7EfDyUh vWMdGUP9kN1cYVP/0QSJ7mf7Ic6kITy0WYBeY2aVYzai9Xxw2f+BspVbGF97acf2v2+J fKxHAcuBYsWknqChBXADlbytUbH0xy96iXd1NJ7L7wrwF02jhHHpt6WK1z8kcrfWpSXt IOvYrfLPxYq9NM+074W9GnBXGWIw43IrWocRYs2OOfvT+tMtMakfKem4WpQYRdsbAPuv l2bQ== X-Gm-Message-State: AC+VfDzVwuxWv/u+uFgktRrANq/Qhl1D7eHCIKJ7BBljy+JWdiz/WiKh VuXZ96WCMoboMmtzhg2TWfZix2FXusmWbA1ZGr9C/Q== X-Google-Smtp-Source: ACHHUZ6utyOsCujwcaH3IqRsd2lxVSn7kRstpKnhFLpuJ35Mjoc71xY8Hsd+n5TtjxAKDBpyKoTMKQ== X-Received: by 2002:a05:600c:205a:b0:3f4:26d4:91b0 with SMTP id p26-20020a05600c205a00b003f426d491b0mr356360wmg.40.1684949945545; Wed, 24 May 2023 10:39:05 -0700 (PDT) Received: from lion.localdomain (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id l17-20020a7bc451000000b003f4fb5532a1sm2993053wmi.43.2023.05.24.10.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:39:05 -0700 (PDT) From: Caleb Connolly Date: Wed, 24 May 2023 18:38:54 +0100 Subject: [PATCH 3/6] arm64: dts: qcom: pmi8998: add charger node MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-3-f9334afc4505@linaro.org> References: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=1269; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=NNDml/1564JCkxp4dIc4Klv6pOfclI3jdMcVHpTokFg=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku17GQF8dXNo/HVnmsz1mMD/IIVAuw3CA9eM Ps0gvWMwfiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k trIdD/9NBEHFKzHaJO3liPlBu3wM3dwEPca5dBIXw8JFedjgBhKn6GgMYND7o/9N8dGI5MEhCWI n+OMp6EalyTjyEsawfhMD7sC5PY4C3szGtPApGTvwzWIBcC4FOngPZkGTdpFaATSySOWgKsH2Xq 0wQTCv2N/YZaQHTQoxDAqSWjR2Q86OJpX5JZ2Q9V63OkQVn8nXSPLoTRlP/wQwr8COebDzxxBCl Pw76hhrIGtKz6BxNXZ91U7GuecVrP1mmatcoK5RAVtKw7FX3WJ9qeECc74BjRMHL1PA7M+23MSF 5O4MNcBpioQadZiGECMTIjYJDSJ6iCbgd58dwNqIcxUfS7/LVtZNUvlBuy+D0AW4AU7SmbjcqF8 tfC1ZpYJJftM2MM/x4u+1U7PuEVp1eHbRCxhyjn3MOIJuK6eGPslPeC3x2sDaKsJ9kfHzg6A9e0 ue1or+F/agnS3yd0S+4IuRug8p52+vw4tgT9bNgsx9NWGIJY5Hh9rB1SjPCHVLiCgsGNZ4S1roF X+zMHrjgOB5wHdxaYSqM43KnFaf+/v3rsEz2gEPrUneY7oQblOOwsjVq7hSZEiZz9NlBhPm6Yf0 RlPA6bN5jlXrVkTdF7i85rS67CDiNJrNs/RC4S7RAAo3KPULYNUo7Vi+Jxio3/QblSBuS7bTs7j deg06g66Vnp6gsg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a node for the smb2 charger hardware found on the pmi8998 pmic following the DT bindings. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index be6f60bfc26c..73f51451d21d 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -9,6 +9,26 @@ pmi8998_lsid0: pmic@2 { #address-cells = <1>; #size-cells = <0>; + pmi8998_charger: charger@1000 { + compatible = "qcom,pmi8998-charger"; + reg = <0x1000>; + + interrupts = <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, + <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "usb-plugin", + "bat-ov", + "wdog-bark", + "usbin-icl-change"; + + io-channels = <&pmi8998_rradc 3>, + <&pmi8998_rradc 4>; + io-channel-names = "usbin_i", "usbin_v"; + + status = "disabled"; + }; + pmi8998_gpios: gpio@c000 { compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>; From patchwork Wed May 24 17:38:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 686040 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC4C9C7EE45 for ; Wed, 24 May 2023 17:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231280AbjEXRjM (ORCPT ); Wed, 24 May 2023 13:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235540AbjEXRjK (ORCPT ); Wed, 24 May 2023 13:39:10 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55947122 for ; Wed, 24 May 2023 10:39:09 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f60410106cso9959285e9.1 for ; Wed, 24 May 2023 10:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684949947; x=1687541947; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=EFRpfOgAemmobrPyj5/6+5l5ZSGSv9HGDmWDnbrjeGI=; b=o43bHwJTVhFwhegLH1AWD+ExeObFKxgkmYvQjhUH4jqymDaoiyC6Oga33WNk6DQtgL aWFVYNwXscZvIem4sfnMJygP28lm+qYaFNq0fEAkiYOXnkOhS+2uTjw+HA6ffE3TnHsF Gm3/pw5kCAs3d/3VmhnODQhLfNEj20pbVbZ7jGCq8YZoP6DfMIui3EohJ9TUMOh8SMqL 2zl8dz7Qhn9idsz0u6VhKWVFlMGmg03VVo73GzNauDHOI9sbrXPKlOPRDf4lEo5w2GnD ilUX6Nfg4g4eEaAXGWQj7Gg7mFp3+YP2S1vdVQpfy1uz0ObdRy02SaQ31rFkeTSnDKhm GPGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949947; x=1687541947; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EFRpfOgAemmobrPyj5/6+5l5ZSGSv9HGDmWDnbrjeGI=; b=asMqdtMkqFlWxpokwKBbB2jy++bq0IWjRMCNinzTUvNDUAGvIxjRcP53mRH6Wgj17Q WoBLHIT3caB7uUokIJM6bRsRr5nk6vHNmWcywLnj9x9U//0w1I09vzExth9r5MhZkc7f yTaQdIs/yeqHR14+VvSH9TbTpNPn+NSdYEF/y7dDEWbXEQn3V7Fnb2aGS/jQGf1SHLT5 q2iLFXqcqujwFqvH0J3DpKb0Unt76IURwDipnRYv59cgyVwTtOZnFr8vYUo0/ocpArAk MJvfIAy00RXt1Hmj5BY9eC9SrY1G0QjwrG1U9YcQcjsjTo2BNMRH8upB87KDqKMW3V+c xTXA== X-Gm-Message-State: AC+VfDxNoeig7yu9B4RkAqQG2bunkBQMhEZiWdwZyvGAFD12FKil7Y9i FHsarSRGSMSDpC+xJSZbUDQ0SE0A0jrKUjQemyTNEQ== X-Google-Smtp-Source: ACHHUZ4iFybeQrsZ+JMvAZvBqeQKewZ3WRIkvssf0mWHctBFt2dBfZLDMilLnAGsjFtxHwUFmzc7QQ== X-Received: by 2002:a7b:cd1a:0:b0:3f6:8f5:f9ee with SMTP id f26-20020a7bcd1a000000b003f608f5f9eemr395095wmj.26.1684949947204; Wed, 24 May 2023 10:39:07 -0700 (PDT) Received: from lion.localdomain (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id l17-20020a7bc451000000b003f4fb5532a1sm2993053wmi.43.2023.05.24.10.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:39:06 -0700 (PDT) From: Caleb Connolly Date: Wed, 24 May 2023 18:38:56 +0100 Subject: [PATCH 5/6] arm64: dts: qcom: sdm845-shift-axolotl: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-5-f9334afc4505@linaro.org> References: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=935; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=c0cAnT6j/U4OJJbr0Wl5brf37cZLiHaOow4CrkWfhbY=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku1umekLdHjw8bIs+aMGv9ctSrY9Nqh9HcSO NJ7+qTRxWKJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k tthBD/0crRgaEynYAsNVQj7qHYTajULPqAjtj2SYQr/pGzyJTpPzcL0q3wlIvbT2nWH/QgKIN4t Ek2kNG8fxMYiPP3i02nuSjPjiKEzFg0SP6pOVkg/CZqcXywfbXhjLtvc0ENvyiWJlq316uV/gMh +U5yU4xaUSGdiww7GiUaKBSidLrcJwC/eyS1b8wzqazLJWxuf8cFShelt2YEcLgfUdf89efwSfP CSjSIVfsOmOgoYJYAmB5UwccjxqLviP9FZOdj/TmaTh7dlBsn9Q47JiFSUQd3K/iKeR+fnBcBns BM6Y+ZGd89rl97rr5YKwvir7VaeTROb+Mz8Eh7WGxTNwD3QnHHhcGpFIS+WEHuyT6vPzcaXVE2x zT6/iZU+tV+as03M4VQXto4A+x2AYOko6M0AhcqMMndFGO6qjhKcvvOhx6FrKWcV3LmhM7ns/hz qhFL60Db9Vtbk/+OE8lEh4ptP1AW/oFilUP+DhhuJDZbO+rT73BAWUxdo+xVOfVFRJyV4FUGBWl 9Atnv6e5wI7nD3iB7rigUIbb821PXAPyuafmepdfYLKm/5w4ZOtnUbJuI6zSo4LjwfTQiM3npft cNvf98cF20AlQVNCRgnVlh468Ayxx0BGDsdav9yR0kEtzyvx6V1645M4HudDFLi4ecbP27Env8p ZNFiilj2NfP9NLA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the PMI8998/smb2 charger, and denote the secondary SMB1355 charger which is used for parallel charging. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts index 0ad891348e0c..bb0f55c52a95 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-shift-axolotl.dts @@ -494,6 +494,10 @@ touchscreen@38 { }; }; +&i2c10 { + /* SMB1355@0x0C */ +}; + &ipa { qcom,gsi-loader = "self"; memory-region = <&ipa_fw_mem>; @@ -522,6 +526,11 @@ pinconf { }; }; +&pmi8998_charger { + status = "okay"; + monitored-battery = <&battery>; +}; + &pm8998_resin { linux,code = ; status = "okay"; From patchwork Wed May 24 17:38:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 686039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBAB0C7EE37 for ; Wed, 24 May 2023 17:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232141AbjEXRjN (ORCPT ); Wed, 24 May 2023 13:39:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235815AbjEXRjL (ORCPT ); Wed, 24 May 2023 13:39:11 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B689F130 for ; Wed, 24 May 2023 10:39:09 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f6094cb2ebso10309485e9.3 for ; Wed, 24 May 2023 10:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684949948; x=1687541948; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=yraIyPA2BgDA4BIOOp7PQH949sD2z61pp/1v2JrtXPY=; b=DY31kIh3aVYnf4wn/0At0p5yFpWyKnjUqsxQYy7bLxQHzyFrKSzTBlgRRHbdcTLFgU Qgg+DRA9Mcw5Xwe8qB063u3aZaqr9bIsv6w8y1ar6Vv3np7H/CShjxccdEalR/+WMZ5x +O1kKsPuzOoldU00zzPvW/6W77Pi0Me8+L8i0S2CsxEYKagO/kOpKPenNrLvc5GgXeZp yKl6Eh16JBjT5Q/Mze+0Liq/Rxw2/SodmpcvBUq4rQd/oQ1pJatzabv/CN7pDy9djXB/ eNAd1E5cnsWN1Z89ruCBfyggY1XkaCit/ttnVAOh88MiKX6p4ljCL9RKXFOQvRbOveMK Avdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949948; x=1687541948; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yraIyPA2BgDA4BIOOp7PQH949sD2z61pp/1v2JrtXPY=; b=Gun+6Jl8M/isOw9KsoaLDSZKwRyOPk7yDjY1rlVSdUmnSxDbzFLQgbGglU3fA+M/SU jMTXEtSXKLXpwhum/93h6+uHh49wSKVu6F/k+BUJ39jEKwW7dZ8raffvPe42U2/1M8xf ExOGHp8cYZn9QNDEJqLMP0+nE7J0tLqOsrmwkg5IZ2rILF1jjYTsMLeKoRDunLnCwK1p 83aRoxKtWC+CHqRhgv043Sp3Rb5Siex0kHKkV+4LCeofJPGAU0Zj3iOdSqJYnvLks2Oz qK+BPYh+zdp0po4FILOB8qwIyMMZ2ZDY9ZaqjBLrGIX4IhKxpZtWvMdgZQWyzVpqlNFf o3ZQ== X-Gm-Message-State: AC+VfDzBR/rmL01GEv3TbXL9sLymn3ac6xhcRMEzn2U+4RAw/qzyPkf6 yHVJrRGfPo22INCP2rp0Fnwr7g== X-Google-Smtp-Source: ACHHUZ4NaKC5+C9EVQJYZF90OvpHsU8S0zaefx3Fy0napWhJqMm0j/KvuVGrHLcKuqFoH/Sf2BkM6Q== X-Received: by 2002:a1c:7415:0:b0:3f6:11cb:4926 with SMTP id p21-20020a1c7415000000b003f611cb4926mr497885wmc.22.1684949948093; Wed, 24 May 2023 10:39:08 -0700 (PDT) Received: from lion.localdomain (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id l17-20020a7bc451000000b003f4fb5532a1sm2993053wmi.43.2023.05.24.10.39.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:39:07 -0700 (PDT) From: Caleb Connolly Date: Wed, 24 May 2023 18:38:57 +0100 Subject: [PATCH 6/6] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-6-f9334afc4505@linaro.org> References: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v1-0-f9334afc4505@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, Joel Selvaraj , Caleb Connolly X-Mailer: b4 0.13-dev-46309 X-Developer-Signature: v=1; a=openpgp-sha256; l=1243; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=ToLXeAXHYgqFaLcdjgSd/3kgLEeAYg+/fgo08zw4cTg=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku19HgF5fzwDwv9U2d4P8Fejop2E9wPj6+io /2YrwJpojqJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k tts0D/kBmYxYj9KrLGWdwPOVNinxqTdresr8OhmwTdMqOfYymjS3B/F+eqhVCAJEG7y/7zYt8Eg EZJYjN0rCTTVmnjwaw2nXuiVhdlPy6ZzApN9+sZpVWEyKwDCWOFtXlIT8UaWQduum1jF41J/Jf0 rtTyXmfwp034WkiC1K8bzz79szRThBWd0A7YlyDmw6rTmSoxyXl5Q5NNPlQtYqEUYx9QNHD4j/U zymKWWwbI4/whNxj3MdPEx5Nas5EECSMxhMjpXyy1Yb0RpUagCL9mFv6AvAwtsT6qNjikmJQTLM SvdDvdcNIjZej2w3yo8IrUGRCifmx1tonxGm+olDCyh1AxeauPvH70YUk/m34VRgexkbUwUHdaj Iy93sbdoP1dWbW414mOXs5M79hrKTzIXfS2+v3ljXK35i3JvQGBQjqmwldyOHW5+Uxv2Jh4aX83 lCR149QAbh9Y2on4VHYadwSZ7AU4iO7w727Bo6WW+yUb+gJaaf8UA0+Lhr+5/qPCv/ClYEcAJsy u3GlOzIhpgSdyevteZvWNcOOmHSaMzWUi6bVWZRL2FTxnzy/oOW1GB2qd2fvsa2GCMmknZRcw3c HQNN9gCFIS4YqBL/3M7QSVg4Jlqln3u5lFK4mGvIHPGUNTl4njNQSnlSbAAJ+ODWGTABJ4n8ata ojZbcl+0E4UUCEQ== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Joel Selvaraj Enable the pmi8998 charger and define some basic battery properties. Signed-off-by: Joel Selvaraj Signed-off-by: Caleb Connolly --- .../arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi index 1915643f1c49..2060b31648fc 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -115,6 +115,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"; @@ -341,6 +349,11 @@ &pmi8998_wled { qcom,cabc; }; +&pmi8998_charger { + status = "okay"; + monitored-battery = <&battery>; +}; + &pm8998_resin { linux,code = ; status = "okay";