From patchwork Wed May 24 17:38:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13254375 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 9A4F4C7EE32 for ; Wed, 24 May 2023 17:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233428AbjEXRjI (ORCPT ); Wed, 24 May 2023 13:39:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbjEXRjH (ORCPT ); Wed, 24 May 2023 13:39:07 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B21132 for ; Wed, 24 May 2023 10:39:05 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f623adec61so8590865e9.0 for ; Wed, 24 May 2023 10:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684949943; x=1687541943; 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=aY4E79MucXEj1G8uY/IFTqYqJbaTpE1l8iCW6N5c1W0=; b=O6i5GvsayStomqsVWgN7cXot3KUPkVot8vYwvIA1QVth0FUoVJJr+39pE9/lkQmuxk mPgU57vrtWrwMYrVA5FKSRgedDSJUxS97gVfkXNIhf+BqoxBzQsnClK5PLPbjpKdGZlg nj1VhQn1a3BJqb0+EvAr0fWySqsEniCFeZsJK4cM5fgFdNzB6x0VJuIlPpBnzeOa1eCV 5AZnXO8IX6mhi0EDJqmvHsbmbH0LY1CsgzDOMH83cm55qRxr2SETROIITE1hJ1FfMZFM YnoO10cTpCdnkjO1TH9ZiLt6hKoIu70L/5S2hiwwtsVfF2utCVRE9MmdgLos1KgQ7lm0 EL4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949943; x=1687541943; 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=aY4E79MucXEj1G8uY/IFTqYqJbaTpE1l8iCW6N5c1W0=; b=PXU2LMuhrGwiVT0BcC+RZIHsxEWHNFTkI+0vrfVS22/L+2DdF6qWtJ/YiMicWQz45L 7g2e2gbE4CEisdEsSgXei5bZxVnS+3iwig47PEjoNPAULjXPiWedsMCvTNtf//9zCsOy 9V/+txkUt/XAKOqCcna0GB66Tq0ofFX7OhnkEybSJcuUWibWGEe1WqCHKUcOf+I0mmby In5o/vDWgryF8B+Nhg9RjjTtdOKyYMyBFPdeqdDw5mZBgu5PfJAAjxdnvylXxzaIifo3 YaSve+ZZx7qDZjJqOi8HCKQ6Fog6UGZ466g9mAJB78E+utlZmRbsTODvFHVAbhRoAGoV 08TA== X-Gm-Message-State: AC+VfDw1dsHBvikhM0U8EkTxrmR9BekqO90qYbZLWvbJhYKd4rZAqfW0 nImytBkp499G/wGH21IF6CI8t2ltJrLnJJw1E1yfnA== X-Google-Smtp-Source: ACHHUZ6o1IOsj61ybZlJHh7IYbyEZKARqRMyx3CLNFpmGNskUhTtwo7N4WmfmFZBUWBDexi1uQGFYg== X-Received: by 2002:a1c:e901:0:b0:3f6:490:a7f3 with SMTP id q1-20020a1ce901000000b003f60490a7f3mr351607wmc.9.1684949943682; Wed, 24 May 2023 10:39:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:39:03 -0700 (PDT) From: Caleb Connolly Date: Wed, 24 May 2023 18:38:52 +0100 Subject: [PATCH 1/6] dt-bindings: mfd: qcom,spmi-pmic: Document pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-1-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=820; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=zH+WGeDPvM4ddhJTfMtpW+lYqeFC8v10YNFeDn3WGJc=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku1An1PpKhDnNw1Dcsgd2jrzBFFAA5MX/j4j mwhvdVXx+OJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k tsKZD/9jSc8i36r+eZXZt2NCJljo9IMuDmgls0ldEx9sfesyXwRk6uPjMqOrCqYI4YgyOgh7Xkl Cl4qeidUJayHSBBQEXunwVgZq2DDybH5VYrYQMDILb6cSO6HJTT2HYZ3uxiInXj7tgfgCnzXe7p 7xyYQH10D/foG37UjQ1Iu2oQjoCprrJH009/pwMP7EvuJPMuhIAIKR6hbhCNsrb/BvMD7iNYfBO Qlbwwmx93a2TtOCvz2z689eL1+OYsgl6qvIQIEJQwP71mv5OQrsSBpS2KqyStX+a3vrFVz+19hs sbQam9oZ7UTNeK5vLQRYQgA82Q4o3H+LzPyybXHJN4a8Us+jf1s2rag9rAnIohgG3RZkoCJxPj+ ttqQBDXCrpwTe7oxcWXbi5gitHEw520pxcYnFT/OLjtKTVgUXQImPLThtmiANdgT9zvx6cum5bl zqyLtU5lnwYWL40OlMuUQSnp6SPjdi/FwxN6UBlk/UlvNhgZ1ez0a9QluV/puXAMHG955ZLM5/I C5/n/BkXNGtF3ZGkCD8tIYKD8+BGiNT+IwTVZvirR1m9MCoRkaYNEKP4nQ+72xt7ti6PnN7JKaK yhcEJ/bOLeGcPQnccEJ1RcGnpKXirXBnX3i32r3iG/RxnxNZNuhKr4YeBQl77jdrZJ8+O1GoexD tnXxUXtrJEXY96Q== 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 Document the new pmi8998 charger bindings Signed-off-by: Caleb Connolly --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 36de335a33aa..44590dc112be 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -133,6 +133,7 @@ patternProperties: oneOf: - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml# - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml# + - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml# "gpio@[0-9a-f]+$": type: object From patchwork Wed May 24 17:38:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13254377 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 84FE7C77B7C for ; Wed, 24 May 2023 17:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbjEXRjJ (ORCPT ); Wed, 24 May 2023 13:39:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235277AbjEXRjI (ORCPT ); Wed, 24 May 2023 13:39:08 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A902139 for ; Wed, 24 May 2023 10:39:06 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f42ba32e24so10651735e9.3 for ; Wed, 24 May 2023 10:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684949944; x=1687541944; 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=RR01uBFzZdPUUX3JVQ6JzzMApgf7t8zSCotM2Vr6DfE=; b=NV1qpvnBgye9ZjFXBz970aa6CK8ZWRiHkKqSZWZ6jjYRz3Dn5o7IF6qTkVO7wam7qI FucNoA1cp8QYE036W3qtUEEG3M9e5tEDAVOa4OR+u4NXTNTKlW8uk5wG7MCfM7eusP88 0+U5UgXybGpI/LiwBAUtXbWDLM1h9UVtJ/A2aCHelMN4MvW4YZFB8/Lgs6QSdvZFyuH0 MU3hlj0j76IkuM6AB7NztBfBzy7A2SF80wXmpv7gkaf+GfTtgzSLM4FwSwWekS2u+r6g Zlo31nUMx9T7otxDekXjK00CVAlC++qQODywrfZi7VfJa45iTafM+Jv5bVW1nFwNgBib sdJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949944; x=1687541944; 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=RR01uBFzZdPUUX3JVQ6JzzMApgf7t8zSCotM2Vr6DfE=; b=gva/rvnmmPv+ovuhGMH2SowmJocdY9/lPVs5rBiRFCXgqcmexbDxWYSQ3+DfKrylK8 i7bCjYHBH+EJTl1Rad2JWKY0ZdMHWPtJWN8vZboGo6i5neHzRFQNgsIMPVn8XyNpnphs KaW5MJdE4Gi439gr+O6erDHU7/lN1KZVs0wrpv1h5fEpVmK/bMHkQjbKLgfYObMwONpC KkeKV6PJy62t5laItbDKIVMXmab3bJyIy4/2MAjH9De3Fw8IfxE2cox3NWq6uETT6ql5 vF50X52+PE7vSk1UtDJ6MhU3MxggubC4adsCkaaWAINTf6E0Clz9fFk82nHA2IZze9Gt XQ+A== X-Gm-Message-State: AC+VfDxqDj+9ut/8FReLHit75TLHPVSmHAnhwIlr8746WB03G6V33M90 XuVRhcUjcdIISu06gCHVO9h82JsvdlcQQkuYbLaZ1A== X-Google-Smtp-Source: ACHHUZ7lGjFpPEdzrGt+uPJitZe2L4rMiROkyzoA2nMDVS/6Aiy51kLhLEuRijt/7UyHsRGSri0AOA== X-Received: by 2002:a05:600c:2195:b0:3f4:28db:f5ff with SMTP id e21-20020a05600c219500b003f428dbf5ffmr331402wme.35.1684949944686; Wed, 24 May 2023 10:39:04 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 10:39:04 -0700 (PDT) From: Caleb Connolly Date: Wed, 24 May 2023 18:38:53 +0100 Subject: [PATCH 2/6] arm64: dts: qcom: pmi8998: enable rradc by default MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-2-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=2801; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=ABo4IHoKMSALk1kEhP6hlLi4WF/PAYKRLRTRnFZsdiE=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku1V60J/yS7Bi3fZ024ovpm6xnREWE+PT2X3 LSNCCYRKJOJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k trNFD/950X/nEoI/Q8KwReuv0GftjTf1B3pfCkuGmokAXLsX4BmkwLtnvx2DLFBMNaWFlkb5z2z QSiO0gV+jpde39k+dSsr3N+k7p835sxCokp7Ff2tHueGoB9AWa2UemAC6pxHuoHOBRYW5cQfgF2 hQMNjsxi6vBgOk5LEQC47XEUUop7nqisJXASnofcnHLpv3zBfuQFBnRE1Nn1y1Zh1uaK1n7tnJq SqPMtf2j2u4JR7iVtrmr75VPXkaIzMQFjfsaskQcaAmyC1JpHC4QNyZ1eCy1MiyakN7L/YKwPxM fxbpLJ7ctGsAiRxSiA6CnuWlY2m/+t98CbikUBW0ZQ7K8YmXrkoEQZxh2eEo3Ig4yZPj1rIQ1pF AFd+8dWN2bnKHcLT6HV5bQvzDgZBW9S+V2yXZGw+/pWL6XbFbjdGl4j1+pk0Y7aLFZ0O44Tnck+ cM6X4XcawTmAe2GHgaRgAOaPqh0khQB44Wadq1XcWFet9xJbsEHDGtxAarCfas0S2xXBGBFs347 5AWRrDkZAfWxGWO9AqtUq1Vx5TCDahlRWsj1//R5sfZEbtFfqvyEVSZyt5DeJIqxq0TdSpkakS2 cUhej/o2r/6H3Niu6hhf5yLEL0PJM9Xvn+GpQbMGBD3zxHJHY7x3ePgcXEKZeuIl9HllMbyqxi0 wxAzyMIPuqQHJBQ== 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. Signed-off-by: Caleb Connolly Acked-by: Konrad Dybcio --- 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 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: 13254376 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:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13254379 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 411E5C7EE2E for ; Wed, 24 May 2023 17:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbjEXRjM (ORCPT ); Wed, 24 May 2023 13:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233242AbjEXRjJ (ORCPT ); Wed, 24 May 2023 13:39:09 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04E0393 for ; Wed, 24 May 2023 10:39:08 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f68fc6b402so3117155e9.2 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=1684949946; x=1687541946; 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=PjsfoV/3p9Z8SJvDkWm5jDBR5q1bDXVC/jfq0BgRSjKqxrEqRNYu5ooIdQJ13AgLoD NjcvF4HsHtrW01hPfLEDX1vNixaL3nHCfSUn+Cm6i2soP3hZM1SCBnMnm75+31Y6C+XB pP55kPiKnzH0rxF2al1Fx+B3F5osph2qtfpp8Thob3E/aECGAcnX5Tl41Oh0RF2RTV4v FJNQZcDam3OsS45osKZN54SvEfYNBSEAkMYMuNlJaCeh2pffb8DaOW4UDBC4KZUkQ+tr z3p/87boRdrDu3pl6sp18NqsAIRGHp8egqiSuMbd1bYOQ/ZDYHTW+6NN2S8PDajrUFPG ov5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684949946; x=1687541946; 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=WmckQ0QF8yCJ+tsqWU0f8awSOWh2XVZnsEJVQ39EeZs5MAn+jk8eDYBqjD+vw5CuYq PDOKUQrSAOm3+V7KthOakvYAPBc6VJ8WRT0qL8Or8hKkSysZ9kPbmQ8foYZTgOX/VsIQ 9zHRGgDcPYcGDmXeBGom7aHs37g6g16kO/gJHRdOuN54xRYLpXG+Phr2/Zsv1ymR609l PtFTCwfDYLy8rffiPw8asyv3r1+N/rAZyMN7UjH3i63eaQYTQBYfW8OZA+eHOXvPzDhb Cxf9wSxsodglfeG10jxwVESgEKOcjLCSk2kmbiCZL23As7cMxRCaINRdmF12/SiWY44U MAsA== X-Gm-Message-State: AC+VfDzegi46/JtJ8rTf4GpG9T6FCIyT8zwHe+N0OCX2tFflX1E+Kjf/ FxpwyZepitR0sPz2zV/VtMfs63MKnsEi8LMVQQfhcw== X-Google-Smtp-Source: ACHHUZ4wwkp/KxiFRRPQd5u+yMrkpkupW7CD1t5UcZ+t2Ku41ciiE00aSn/ZkkklOnRerxtIERZstQ== X-Received: by 2002:a05:600c:2244:b0:3f6:3497:aaaf with SMTP id a4-20020a05600c224400b003f63497aaafmr349544wmm.9.1684949946396; Wed, 24 May 2023 10:39:06 -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.05 (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:55 +0100 Subject: [PATCH 4/6] arm64: dts: qcom: sdm845-oneplus: enable pmi8998 charger MIME-Version: 1.0 Message-Id: <20230524-pmi8998-charger-dts-v1-4-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=1853; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=AyeJbiuz3WEehh/6aaynrQbFEhw+gvf37a7oFpCMTYc=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBkbku1+gZPetbUZ7jelvBoX68tW8gbMQJ+dzApY NJwImcTiXiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZG5LtQAKCRAFgzErGV9k tinmEACRG4PJdNl/KaCPPbReZP0swb9ejYOVCnhjImZXLy40+lSDHwkVFsSIVA1un4kb34SItMY pCBZTi9RwBLL+LTif9Fn4vpO4pWu3/tXGguuKsqXTN8NTQjz5BR8i5rK0w3gw2H2l5ykj1pYxkS SWwmgK87Lp092KW0tz5fwI61OSF/RPiVRWlQkLpdeo/NtPILkzdVvmTF7uSEV2/ZQFMLVNJgZYN ejpyk1TNZbiZ3uces1omYRkKWHfj1HAQ31nx8RhFFz51hsqCcAKqUwGNuKwlMRhqDTxCrXeTHf6 EJcguM1g6qO2VS0hpKqUjzO+9d+bYgTO5GD88mQa+CdjEXXl7fDpAlldDf5BlqChr3wSVPr125O Q27pHsnGKOFsytSvumNbb8mvJZPvkwkPASZ1PbYSrFWLF1PObLlyBYkURc9BtcDva0FIoFYN16B cEyDIl8McOK8dhG5UgKiJzi9BcGDJIheHGDn4z9Edzf7GdTYGixlCtK7L20pxfzXYYNqvMvLeTj FCxeioH55uMCPtCdhA6CkhSAE5Jsuoa/5NP3Hma8JfNXvc+4STSKhDja1CqupN6xC++qK4S/Lqj BAOAR7jkc/Sn2V+EQaSfkCKDztR7B6kqaB0nRrgy8pS7qQ1wgsTRrS+p88xctw1U6Aw+fH30C18 O/AzgtGa+n0UFJA== 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 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: 13254378 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: 13254380 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";