From patchwork Fri May 26 21:50:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 685961 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 1A88AC77B7C for ; Fri, 26 May 2023 21:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237856AbjEZVu0 (ORCPT ); Fri, 26 May 2023 17:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236975AbjEZVuZ (ORCPT ); Fri, 26 May 2023 17:50:25 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C829116 for ; Fri, 26 May 2023 14:50:23 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-309550d4f73so1949668f8f.1 for ; Fri, 26 May 2023 14:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685137822; x=1687729822; 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=cQCHkaNjg7B8uU70YTMMcfxcQRpMvCAxEZvOsfZMRn4=; b=Ow3YxLP17Zqa29Aey3cY0pPBNGhz2PrLE8lnGicxk9K85oBJImSo4DfSThw5tUajqx qCYlEkTHxR2AX00OwK85JNe9P+Z6A5hvv60EriUg1QM5lPRz6XWPgp33rLTRkDRhOMLd /7dcYMusxjFfADqij18bJksICd1u6VbL6+7TK8lM4YCkoYXLmuckloELifDFuTorYruF 0V10ffwxffKs2YzJhKNO+iLiQllt6qbKD+YCwLhhhFWx1ym/7xKeS47d0a6p8HELy2Um I+Uzi9XwvuLOxP+O1N3CQsn4mfPlerQDvgWm74884IlnjFoQ4LT4Rr3ziTiBcb9FkBe4 SEtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685137822; x=1687729822; 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=cQCHkaNjg7B8uU70YTMMcfxcQRpMvCAxEZvOsfZMRn4=; b=VBOEx2FSM34zd+B9d5VXYgnomkAWcB4w/L8dDJ8jxZKALDQlt97i4ivQB+NWBQUBZ1 bkzOFjgC6+b2Pv5zE6lUormV3f6S2khlR79X9xCp3coihZcYe1l9WVfkVNSoricCzG5M 3WMF3BjpOYf/XOyahsNRK1AGw+oeJaLLvxgkyBEUWXWPmh+A0S0yGay2KFLK/ORCJ8Sy cfPgMVsT0fELnXoZWXGZC+Ta0+Nx/f73vHZ1oawaysp6CmErL44SlveEpcNS/Bm0yDpz RcFz1V0QNt/8RxhbQoqQfH7e/Tyw0hT8k7fBSo2HsWHg5KoLMa7r1cDT+iuHOCKKOEgD ZKtg== X-Gm-Message-State: AC+VfDxAih1ZvoOnLqaxnZfEJmSRv/SfDjbCgQTyRExvSe1Xk1MHsDwG d/1QzVC30moVli8JUyYq4yFG2g== X-Google-Smtp-Source: ACHHUZ5JI8azDWbtYJ5p/awvoWr/R01yB85YkSVPgTFvz6NU3+xhvAiDCkkooqKdhQorP5zEjTg7Ow== X-Received: by 2002:adf:f990:0:b0:2ff:801b:dec6 with SMTP id f16-20020adff990000000b002ff801bdec6mr209626wrr.20.1685137822090; Fri, 26 May 2023 14:50:22 -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 u4-20020adfdd44000000b003063176ef09sm6294314wrm.6.2023.05.26.14.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 14:50:21 -0700 (PDT) From: Caleb Connolly Date: Fri, 26 May 2023 22:50:20 +0100 Subject: [PATCH v2 1/5] arm64: dts: qcom: pmi8998: enable rradc by default MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v2-1-2a5c77d2ff0c@linaro.org> References: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@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=2853; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=KQMlmNGA0rqIPBYDI45x978bAqVpLcrpgsv3EKXfkS0=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkcSmcDxBSLRfUW/nw/+6z2OglwYoSWL5PwjlKA /LpjdCjXu+JAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZHEpnAAKCRAFgzErGV9k tqy0D/9h6+4PRGuk6ftIFfe39FKKryOb7re0FJdc+6hycJ6u4X+7u2pIFfdwFXfDGTG1O6mfeJ7 nkXVFDm4epPjVOwLVjKKfGLX1ffwhm3/OL3yvDjn2XoHN0IsXJ7ynU2AGF0SDowAhXZQUgjjMLm /VUMC8ICmJpOGdjMcQJfpcdrA632bEjTi1ngR8FH8YCH2taAF0oGz7TqLYkKqLNIO2/HyZocY+U fvlCfbAdw6hgD4JXtdiilc6ZSSGwfK79EIKi6j8Ypkxnq2fmMsTP62Lh5az0LjYY19wDtFbfaiR mHO4wIHLBVpKw4bsDEpsQIJlk9pytcT8MT9QRS2DEN+JctoTZ9O2+o/uvq1V3DvHwzU4Xyh9AA4 aapMQWYIpZMeKxen5w0HmhB0PCsuGgsjsoGceND11A4vCPT6tedZ+nHDI9PUpfR5R4SQ9bUJjV7 sgz75di6E7luAtRKFuSMATQQikDHXGXhMjJEkxIUal13aLWCbgj9qUYKCOLnKdJ6TPiNnTfAjv3 rumzG8o3YVZrX8sfaBPaS5mx1k6Gh3At1rIcdj+0BbgGikcH9kb+Lj8Cx9LbMX/qrS80tDfUJSY vXUg6lDDgGz3x9VIlgnT0VnZ6ZHFHWvGolzhI4eafXjtlHV+BNFe3tgxxTGPCXntBvWAOvjGnCr SjLirpTUZziZIQQ== 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 There is no need for the RRADC to be disabled by default, lets just enable it by default and not clutter up DT. Acked-by: Konrad Dybcio Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi | 4 ---- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 2 -- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 ---- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ---- arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 4 ---- 5 files changed, 18 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi index 062d56c42385..68e634f8212c 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi @@ -279,10 +279,6 @@ vol_keys_default: vol-keys-state { }; }; -&pmi8998_rradc { - status = "okay"; -}; - &qusb2phy { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index ffe587f281d8..be6f60bfc26c 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -23,8 +23,6 @@ pmi8998_rradc: adc@4500 { compatible = "qcom,pmi8998-rradc"; reg = <0x4500>; #io-channel-cells = <1>; - - status = "disabled"; }; }; diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index e14fe9bbb386..66087af02d74 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -649,10 +649,6 @@ led@5 { }; }; -&pmi8998_rradc { - status = "okay"; -}; - /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */ &q6afedai { dai@22 { diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 5c384345c05d..55ee8dcf27c3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -480,10 +480,6 @@ pinconf { }; }; -&pmi8998_rradc { - status = "okay"; -}; - &q6afedai { qi2s@22 { reg = <22>; 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 5ed975cc6ecb..1915643f1c49 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi @@ -346,10 +346,6 @@ &pm8998_resin { status = "okay"; }; -&pmi8998_rradc { - status = "okay"; -}; - /* QUAT I2S Uses 1 I2S SD Line for audio on TAS2559/60 amplifiers */ &q6afedai { dai@22 { From patchwork Fri May 26 21:50:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 686520 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 F0233C7EE23 for ; Fri, 26 May 2023 21:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbjEZVu1 (ORCPT ); Fri, 26 May 2023 17:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjEZVuZ (ORCPT ); Fri, 26 May 2023 17:50:25 -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 735F2135 for ; Fri, 26 May 2023 14:50:24 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f601c57d8dso9848655e9.0 for ; Fri, 26 May 2023 14:50:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685137823; x=1687729823; 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=WOCz3+T2w9sOysh4OH02Mb2Vo9XiIzUGn2nWBKDv8qiF2qI4CS2xv9wxdOwjxg7aC+ n24WduTJUM7e4mifdMIUX3LP/VQLV81NRYenO9hLV5IaRVnW1vabaoBr/ykC3hPD2AEz nEAY+8NLvd9lcj9q/4Kvqj8v54BWKSc9VgQB5bWlNP1FA0fgn9zGGE4sa12RBTo4bGvV CIxrttKJOrP1cHfBndxuPCAqwB8XXo56j9uQJDMzr5nk2tt3p5VOP37r+E82UBG3+x8I Jwnyypq7k5/X+WwsdKaTaI5/aJK1cylbUs7+J+J1PKP9kFBRisq04BAoAemUBllPTXxX TpIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685137823; x=1687729823; 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=UxItJgd5cGbMGV3QUcDBN4FYBtb/X87d5oIKviQpnlqJPOTdBDgGSh82kyktgtDa7/ 85S6R2Tkrhw+n1JxMoIhovqx3JzbFx6P7RmoV8UStxNJpDswoonlF/iErKntDKLeJb1P /Fd//NZk2hWOLVknW/SJCc4K5YoVimLnvkuPBqV7qRaZRJXsu6t2JMYPQ8o4DESDQaBF M4T5hRB/j8sdsMp6NRkPQd2CC0JlZMEvx+Ikvl1iWrKiPLSY96s7WZeTGQWj8I2MjK30 sb7oeKn88wh3fHu/HLJv8Jqs9q02VYr5UcgWiM0IKbJE19hv3/FfZqaWDN5SzPSgf7Nf 6x9g== X-Gm-Message-State: AC+VfDw6RBjlEMnr6Gf2qv0VUzMDFd2/bIS3Dn6BMJbTNEDrvcZdjKJl YULiL0pfkNQpPAp1gj57mstv1w== X-Google-Smtp-Source: ACHHUZ62NdY/c4asWcIPpb2ciue/qZD7lbbOi5RPQJE/J+S3h0kqUAeBJ0zD4FJaffs2+2WGok2XgQ== X-Received: by 2002:a05:600c:3103:b0:3f6:6f26:7254 with SMTP id g3-20020a05600c310300b003f66f267254mr225498wmo.3.1685137822871; Fri, 26 May 2023 14:50:22 -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 u4-20020adfdd44000000b003063176ef09sm6294314wrm.6.2023.05.26.14.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 14:50:22 -0700 (PDT) From: Caleb Connolly Date: Fri, 26 May 2023 22:50:21 +0100 Subject: [PATCH v2 2/5] arm64: dts: qcom: pmi8998: add charger node MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v2-2-2a5c77d2ff0c@linaro.org> References: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@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/ZANAwAIAQWDMSsZX2S2AcsmYgBkcSmcJh83dgx/vdMkmo8yA4tTfbWaU/NRm2mq5 zj0hk+HixmJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZHEpnAAKCRAFgzErGV9k trHyD/0SnCVzBKQAtfwFECnThg2WWnWcacI6IXdPXLF6QxPvLaL3U0exz1zj2zfcQrGPijR9q4v oQ7ys3Wz+xrOecS6AMqCyVtGqOV8oFAwMav0sejZ1dG7ZGojbvAL2UYSBMIl+JFnVPbZ5LmlwnX uvdBKIHl5o5QIzmLRqyy91qhbG+dm7y96HB7QM2xGPsZ+Yo1WTRYXkbZzB/j5rEaNy5G6pfmxvH UC6IQQHDWcDb78u6LdY3QnOqZ9A1uKITolMmER/xdhl0TPi+Mv0/GmSlgvMTBEAIZGeMCa+iA7C 3ej4F+8AEVeXbYsdw1CO09TTmm29dPtTicjyP6q/CFwOlnk8Mffdik0AZSiCWq0ZIvolJbStGD5 9oG1BK58T6P9SN7sy2MNtNn6ScVndFa04xAeNjTDta1vPbS/t3rWh+MyQXgOTLANY4xRcHnBRG8 zowJh7qsFg6eLyRhRdDyDtgzlieqSA4v8JepVwsxiV5jWHHkD6rU0t4XWkFySaxYrFGHBVA/lRG PfHiHGo4tg0v0ULGkyr9ccxHhHRLalEXSTQVLeuh5lk2d36068bUASNioZ4Sc2bF9ZiZ6lTnfqg OwQ5fwnN1RJKdNtZBqtOUL2YuscYctMVqZ9JoaBCkiC/wMGYFPOdRwCp/ZtAXaMnNycuKDgV9og 2GwlG6FaCWUPhAg== 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 Fri May 26 21:50:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 685960 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 DF674C7EE45 for ; Fri, 26 May 2023 21:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237543AbjEZVu2 (ORCPT ); Fri, 26 May 2023 17:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237412AbjEZVu0 (ORCPT ); Fri, 26 May 2023 17:50:26 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CB8FF3 for ; Fri, 26 May 2023 14:50:25 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-307d58b3efbso794711f8f.0 for ; Fri, 26 May 2023 14:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685137823; x=1687729823; 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=rSmVapjGY4609B8VseiXBSPMlIsV3BDKD/4/5pbhv2g=; b=fODsJkj+Hro2Wfc0z3784TStz/6r2gHhSteMjBS+uU04NTFJl+XFPzyXCHjT9VIupM kHeB7IxUibhFug8qiXTAi1s0FdqHGMHNsmXDdnpJrPKjdfaDbRgcrr+NE85n3EwFX2I7 SdavXuAzQPFfyjrKUSTUFq5z8hFJzvcibR2kJqqIn+BoPs438FzWNZ2Qyhr0e/49en8c cMA8q46y80kxVALSdzp/5GeRxiEZ7PjpuZUcWr01RXP/A7TpyLlF9koNtMKQJxkgQdjd OicouiWz8PvMXr9vGKuc4pzCfUsEW4E53mKY0XOQtbinEaQiGwBL22n4tafapXIFh62B Fqdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685137823; x=1687729823; 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=rSmVapjGY4609B8VseiXBSPMlIsV3BDKD/4/5pbhv2g=; b=D0wVQ5RQTscZKaK9uX0ep0/k1/02aIxK3tRcmQgxC2vl2hkdTAzszhj+OAJTrYpUA0 n96IQ4U2AaFhter/M60XabTV1k3naULNGOyZg/oBfuitiwKYWP7gjg/OAWHP0nYMBlv8 uiV7I5QFnt8VitG3yOwvsggzTP65fHlVYBN0EFOTPHXi5SMVa6JXZ7a0jUU6zzZgHWXp IDyAtPFJ3oenanyrNx7t8nxWQ0MZPoDoLhUChFvW81nkkS8PQbskfO3EmqZLC1MQl2uQ vNx3WkszfowsJLaCiCBjP8CjRwqRPe4p0+yaCX/IgNh9Ui+0pgUNMCkSEkZ4vE8AXV2P XJEA== X-Gm-Message-State: AC+VfDw0TIUNI45LUxA1GzM1QDHpSJCp4OiOH0ISwcRVr3fpdpwSPq9T l2V0u8TZd4Hsbo1sxq+NG5v7xQ== X-Google-Smtp-Source: ACHHUZ4597CKiEnG6ZGKVxpPpAmPNqvo/bpBooYfiEBcPxzY91RQ4xC2VRpDx+7NIGZBAi6EVYYLuA== X-Received: by 2002:adf:f10e:0:b0:307:8e50:34c6 with SMTP id r14-20020adff10e000000b003078e5034c6mr2449447wro.52.1685137823708; Fri, 26 May 2023 14:50:23 -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 u4-20020adfdd44000000b003063176ef09sm6294314wrm.6.2023.05.26.14.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 14:50:23 -0700 (PDT) From: Caleb Connolly Date: Fri, 26 May 2023 22:50:22 +0100 Subject: [PATCH v2 3/5] arm64: dts: qcom: sdm845-oneplus: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v2-3-2a5c77d2ff0c@linaro.org> References: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@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=1853; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=AyeJbiuz3WEehh/6aaynrQbFEhw+gvf37a7oFpCMTYc=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkcSmcdbbCgMaVjoB9CCMMj8UI/65+76bJZR78Y mkXRF2VpaiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZHEpnAAKCRAFgzErGV9k tt/MD/9KZTeRvBj45NLbqEiXjoqFtf4TxoWSQTNt+lKxkk27noMwUHXCQgRMzDQUVoWIUznWeXy TnSVBgJrOcJq31wbvTXZJqkg2+J87gF4ojIFVK+SvvUZQA/HlCNR41oRYc9cyI48QrESH6h4BC0 aUIADvWREkC5Uuprwy/WQ9q94cGvzT91rmFFIscj/HdNvWafUYVbO0PHW2TMt9EGBQUC646u3PN 2hCXikvreP2XDIi9p9r72tyz91limeZXoXvuS0B3MlRWIOAy57Gch0oNvHmwXogwc9hcUOOh91a ljIC3XgpG2xLttGS7L26JQKW2Dkj/hfkP0IZ1Z/lEMef+e1QqbgNA/WsX9KAXHypBC6gb5nusyk JTmwV23J93dFDyZKc7ZZJazdKn50p0KiYOqbp5Ng/JR2mARONBvoElBWbpTkE2oP7cn6pe7jtAV b+oZdYykhcUjVquFxEJZq1zc4HoytdNJ6/tlysYw3SAohFel0DRVKcKpUZ2SqhRbMdGz6H5KmGe otc7hbfIZ8uWOU1+ZpqWa+iOp5P7AISTv7X2pTmrVplnF8bXKEWt/B1fhfT7OWXBEcgxgDSbbpc W+/DW8zPUzx7cqWqndf8/5VqRauh2ABjfIWiRsJfm4EtubXpUq2G0+MY5YqCejCMB49bdIoEmH5 j5eUMhnuosI3cOQ== 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 charger on both devices, enabling charging speeds above the default 500mA limit the bootloader sets. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++ arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts | 4 ++++ arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi index 55ee8dcf27c3..364adf416c4f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -480,6 +480,10 @@ pinconf { }; }; +&pmi8998_charger { + status = "okay"; +}; + &q6afedai { qi2s@22 { reg = <22>; diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts index 6cdda971bb4b..623a826b18a3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts @@ -51,6 +51,10 @@ max98927_codec: max98927@3a { }; }; +&pmi8998_charger { + monitored-battery = <&battery>; +}; + &sound { model = "OnePlus 6"; audio-routing = "RX_BIAS", "MCLK", diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts index d82c0d4407f0..9471ada0d6ad 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts @@ -47,6 +47,10 @@ &sound { "AMIC5", "MIC BIAS3"; }; +&pmi8998_charger { + monitored-battery = <&battery>; +}; + /* * The TFA9894 codec is currently unsupported. * We need to delete the node to allow the soundcard From patchwork Fri May 26 21:50:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 686519 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 C53D5C77B7C for ; Fri, 26 May 2023 21:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237674AbjEZVu3 (ORCPT ); Fri, 26 May 2023 17:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237968AbjEZVu1 (ORCPT ); Fri, 26 May 2023 17:50:27 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B70135 for ; Fri, 26 May 2023 14:50:26 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f6d3f83d0cso12941945e9.2 for ; Fri, 26 May 2023 14:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685137824; x=1687729824; 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=LbbKXkEwNc8+Wi+7L4Y9FUnUfGWKREA2C+RjRq+6R1I=; b=jebmOqrKt2pcISZSGHiZwykJv1ftJHZVHf3oqTOzuOA/bet9cpxKVCzOVy43ShLMVH LqgdOh+Wb3duTANx6H2cZDSlEkcw18mvLZGUCZQSnWWnmXBKVP5nA0NGoFbXNt7E32BI pAFp3iEWj1yNVbXGeP67nTxwwb9QPkBDVEeWNzNECa5JNlFPH5SDyzO/ZbzxMBMbzTnZ V1YgGVx/qQEGZmjVjRg3yO0S8YYenlySM5yAp1RCaL2/IciMWIXTRq6oyAhTe9ug7jbu rq74Qzjd8NHCITiDZzeFCO/7o4HfWzhrpP9lyPv6f/pLCizKh/eENi0+CIjBO7VbN8vc iqSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685137824; x=1687729824; 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=LbbKXkEwNc8+Wi+7L4Y9FUnUfGWKREA2C+RjRq+6R1I=; b=BCOm5qsjgBxk+Htoi/DkIDfuQ9ZLmQeGjEd7/gkF6+tg8U5kY8kfJrCQfg8Z/B6+0Z za2K5SeCmllMUnClq+gRIeW/kTAalUHw4E+GqBW0/qTdr9f7rJ0dTg4RpFshf5SD998x R8HVBiSU6Y2naWPYU97gEHzMlbiesOyVvOJv9kCJlEqBme/sxtImLd9hAlAltENB5LJP q7c/+e2QHuYJCaWnu+ZGgTnB+YYe0vBdvBUnaOFA6Oow2GjjKCj41vWKl3khP51drMOn x2lw6fcZFmKPRyg4cdmSQcNoDMZDYLEw4rrpHJCwWi7TI7pql8jI0EEJ88XXd8FboTLI A/zQ== X-Gm-Message-State: AC+VfDxPPtyspBeKqM84FWBFAgEzGscJqKWpSttC4bzCYjOsXJ1Tj/Oo 43DRyMIUD2cHoc+o3h+wMQ6wFw== X-Google-Smtp-Source: ACHHUZ61EpRUrODQNdqOsDPr5voBi3qNDTxvf7SK+DcehCnjCW/wnFf/3SpXviRBgSY2smFQW64J3Q== X-Received: by 2002:a05:600c:2141:b0:3f5:fff8:d4f3 with SMTP id v1-20020a05600c214100b003f5fff8d4f3mr2773445wml.7.1685137824477; Fri, 26 May 2023 14:50:24 -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 u4-20020adfdd44000000b003063176ef09sm6294314wrm.6.2023.05.26.14.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 14:50:24 -0700 (PDT) From: Caleb Connolly Date: Fri, 26 May 2023 22:50:23 +0100 Subject: [PATCH v2 4/5] arm64: dts: qcom: sdm845-shift-axolotl: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v2-4-2a5c77d2ff0c@linaro.org> References: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@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=941; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=2/Cc6BpYgqPsrx9w4jVR7e8BD1UNIMng3Nd624AJy8g=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkcSmcOjg5t0ENlODajWGoR5qw9sEEiSaWJnStn 3T86SsDMhyJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZHEpnAAKCRAFgzErGV9k trS1D/9vwhkTOZpbZwWTaRjEHsFDyVCHjfytKTRT63TO6u9GsW8XnFhw4T5br0kMVRvGEtqwz8b Qr+QgYup7s1Hzqd4tskC3zh5tG5xhOEb7UP8ubRKkJxTnju2T4UEba9rLD5ElRexlW5qr3YIykn Vn5nzCx+2dVmKRUmS7DAHb1UTM5+2FY93uVEME8hlCiQ5HEmUvtpbC+/mJIy8TzIPfsg2nEUVZ9 Xpk0tPdUJRA9OCeUXGNP5hkdRZrukNcz7g2k7BS/+GybXdPEddLyBQALTToWHTGp0mzON5yi1au zShiB4/wSEom4APXhnRBp4QI7P6snSibEN3mt4fjXwv59sYjot8iUJLEmtnR5H6LzsT/ekRWzVq TUaxb5EihMxOL2BEXNPwjWtTaAmvFhfkvVH6rQx62sZc0fu1FneMgl6QdnlYb2EFtQ34doTOBfd k9si0YzGNwdXFcK39zOAaarwSDNf7lTekMEqoEQpjjnGL+rcXWDDiDjUIOiGX9Zl+/bwDElEJjL li2LArtTY1fu4MZc5A5EmeqKkvWhv9xkTQXCiBCs+9Wfoch4pwjgi/gn7407+ufkakz0BLt7ID4 ja//NpWf1mXMk9qOxi3OpKDE2/tYJXU7fBxV1X0po1KLm4+YscZ/uBB3XUc49pslbA5JMRSe4ip bGWlcAy6NLz0Bag== 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 | 10 ++++++++++ 1 file changed, 10 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..de5f26fb780b 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,12 @@ pinconf { }; }; +&pmi8998_charger { + monitored-battery = <&battery>; + + status = "okay"; +}; + &pm8998_resin { linux,code = ; status = "okay"; From patchwork Fri May 26 21:50:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 685959 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 6BEBFC7EE43 for ; Fri, 26 May 2023 21:50:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237957AbjEZVua (ORCPT ); Fri, 26 May 2023 17:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236975AbjEZVu2 (ORCPT ); Fri, 26 May 2023 17:50:28 -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 B1BFA119 for ; Fri, 26 May 2023 14:50:26 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f6d01d390bso12908075e9.2 for ; Fri, 26 May 2023 14:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685137825; x=1687729825; 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=er/2tuStc06EOJAYB0EC0jKDQF+rhEFocuKHGZ+uPaY=; b=dbHNhiexvqcQIvBBx61Rj2SqPYE/CBJTFGnQOi5PQrYfQmqqwnSqxTOIajoEgnx1Gc Gt+zXxA3+JdWzFsmmQJc+ZEXfp2ppf9s6RGzgDgc2E9q1MW6BLjPXDDs0zKubGLxTt34 k95Jg6+RgElnyUqoI9OTMD1WOO3pz0Ph8qJIHRvgRgnGSsF/v+m03SjKNhC2pJZhQ36/ 9HGRiHiFjYh3LxCPkHmkpEqxA8EgORY5BY1C9zNHALu23bPTnYywVt1WTvxCQVytwQHj cZivVrF9ZKzdJIXqr9jsvTO41Uutzg38UY5dRjpO1sJn16aoNRe7yVAiFUnr1MeQxk1o 4muA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685137825; x=1687729825; 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=er/2tuStc06EOJAYB0EC0jKDQF+rhEFocuKHGZ+uPaY=; b=H4jSWjsKmPu/xk+WHNk1X5Fesbxugl8xMWw2y4N5AlLfZ1agGFzjoAssNGiflEhpiF fKSQ2tiuhrIZOwd2hPGzGmq1vpVsNkM4iuCl2fxYzW4MVO8JZpn4uCvKhhmQu8ra+6bG JHJfAd+xkmchngslPq8ZgzsaoTqiH64BOMhXHtSyYSIR0brs6UamD8EY2lHNgKbGRLUE rUvCUGzXQPnv2AIvK9cByliScSv4gHOMO4+WqrQg78A61g+X5Uur/6anhpKcAFr7uWsj AS0yrqkymaGjfJO0wPeS/l34Glp7FPw4dCIMydNJ2W+CVsdAOodjeKi20XE8QiMpSgTk l5PQ== X-Gm-Message-State: AC+VfDx2bmHd8SxUaih1JFh5IegW9x9Ed2EPtJFVVidReSrfHqAP4QZq wz07v1nAbr2W8ap9GOjJGnP0XA== X-Google-Smtp-Source: ACHHUZ4h3F97kw674IYL9xtz7a8u+ZZsGXwyGv6N7y4HIF0ZLx/vUkW9YkJC+lxmbD73aes0lvJ5Lg== X-Received: by 2002:adf:e4cf:0:b0:309:3e48:f400 with SMTP id v15-20020adfe4cf000000b003093e48f400mr2789165wrm.18.1685137825357; Fri, 26 May 2023 14:50:25 -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 u4-20020adfdd44000000b003063176ef09sm6294314wrm.6.2023.05.26.14.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 14:50:25 -0700 (PDT) From: Caleb Connolly Date: Fri, 26 May 2023 22:50:24 +0100 Subject: [PATCH v2 5/5] arm64: dts: qcom: sdm845-xiaomi-beryllium: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v2-5-2a5c77d2ff0c@linaro.org> References: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@linaro.org> In-Reply-To: <20230524-pmi8998-charger-dts-v2-0-2a5c77d2ff0c@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=1246; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=TWdn+N73wTGUSjs6c9D0VmHIB8Wx2mCJogU9cJy2wTA=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkcSmc5CpiRZ2Q7Ru4yPYpv1I2fGMJsvMYY+x+b VGowKFFlnmJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZHEpnAAKCRAFgzErGV9k thoTD/9Z4Ax636Vned+uscdxImWart6i6LOH+2P+Y9xstVS23XWqkjQg6wea8MHrSSWUgu7BW5N j6mZE9UUV160GTGvGUXa33J2u93uUbeYuxRpeUuYNbmvekTzcruX6eB6WB1TLop3pR0hA2aYmP/ /aT5Gafk9wf9tNBTqb/8CcnlzO8J6UnVRHYD2V++F4bzmA7qeoaupnuUpYvW9Al9Lt8yiG5+dc8 lK389PDSnjSkB6PW1Mhdmmj+ZIgsQTNZprxaIjkFK9LEyH9S9aQcaKdzBho60I0SdUUvhtoOjAb 4Orx/6FGvOZ8AckPCMrOKj/WPW7CgacjQoGcfq0SnOnFaObNp9fbzzT+vtcBVxdvU8L9vDmS4Bj sbr+rQ1cTMSADxGMElW6chA7PvR1v/A5U9JBYDYfClXQu04VMUDo0xbj6DOkfVWh8BPV9k7Lzyj zsMoD3peKvLM3nObjQVeJU/h3/AafBDwA/VC6dOaDhvlm/vY19/Xoy8C7owD9X21eVf4uCcy+xz nbE7EY86KywGG0a7hcqNb8IhcgE3r4u8qQ+q5VGpXh+7XNYFpkpVn6snoKuGWxFnyauiX3Fw812 pQ7Qk2AIxku8k8c1pqq8hn2cDonwnV7nbv02UimTUJvSzFc2To4Jw9P0HP5oN8/+jAZ5QS2Navk yM+C/O3jc19gBEQ== 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 --- .../boot/dts/qcom/sdm845-xiaomi-beryllium-common.dtsi | 14 ++++++++++++++ 1 file changed, 14 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..f7fd897afe1e 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,12 @@ &pmi8998_wled { qcom,cabc; }; +&pmi8998_charger { + monitored-battery = <&battery>; + + status = "okay"; +}; + &pm8998_resin { linux,code = ; status = "okay";