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: 686157 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 3238AC7EE33 for ; Fri, 26 May 2023 21:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237792AbjEZVu0 (ORCPT ); Fri, 26 May 2023 17:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235167AbjEZVuZ (ORCPT ); Fri, 26 May 2023 17:50:25 -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 79DE210A for ; Fri, 26 May 2023 14:50:23 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-309550d4f73so1949670f8f.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=kbs6rNk8+INq5WrdlrNgz9eKWGyh/qYQXQ74uiz3e2/xQZB8I4IWfNPmCGbOy+VGm9 0vukrPdXNvSbMF/VxqZOK3tBC+CCimuCOVt7Hc1NUWZ9T2jJAvsSu6peaj2+ZIvUDoaR VIdkSN9uyF2MncrJKUzDDitghWH52/kv5e9bjQ856NpkV3VXOuC2dwRCAkA40Q6uJ7Lq 6Aqsd90fZ2cPN+XCIJXhqL7Bj+6i/SHW3KfZstVPngbrrD4VykggzMVLnMkublPG4zgW w8q2pNQuAQGikTn9A645joDu6ReJFk+NzPzXaDvt1OO4x3mpeJD4kA+I2+q4EFV3Uvh9 DU+g== X-Gm-Message-State: AC+VfDzc8pFAZQWkmYNih7QDzwwtq0+pwuQOHTUv6NIIkabvf68BoPSM 8jreWpBtZz0fExQZjFNTxM6PDmPGZmXPAWzgxGJcIg== 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: devicetree@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: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: 686156 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 AB003C7EE37 for ; Fri, 26 May 2023 21:50:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjEZVu2 (ORCPT ); Fri, 26 May 2023 17:50:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237674AbjEZVu0 (ORCPT ); Fri, 26 May 2023 17:50:26 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC0919A for ; Fri, 26 May 2023 14:50:25 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-30add74cc30so509861f8f.3 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=kHoFKtQ+H3JV2rpUO/8WoZjqfEdBTAAuoozMZ1NOvi0WIgKFfj76N6VtEXuyJS8LK/ khNlyXEeb4DKbUHxbbsb2nRMKSfOzc8cJca6YZvx08kD4208yUTbSzzx8p/LepBZqdHp iXLZYGUl+mlfdwh5XOOIBB3Zvggr7STkLtSb4G0sI7DVwODlrsmUFZuoXvzCqbJZUr+1 o3lNIU2MIFIhKK32LGZTJihj8BZ+mlsVuFnxNzpSVvMtlJRpL9DD8CrB7dL3x3lGXWHN WAa+XXHdGYnXN7AUdgY7Wn6V7qVRdcEqja8VskUsTI407MgMvczJzMOLectJfLts3dN5 epGw== X-Gm-Message-State: AC+VfDzfvdDBIjF1d+njj68mxrcIwrKgODXXBtSs+576y1VqN4sebD/w 1um8avuvPWufaQFMDXAXXtmDzw== 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: devicetree@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: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: 686155 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 ED94BC7EE2F for ; Fri, 26 May 2023 21:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237968AbjEZVua (ORCPT ); Fri, 26 May 2023 17:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238011AbjEZVu2 (ORCPT ); Fri, 26 May 2023 17:50:28 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA24A19C for ; Fri, 26 May 2023 14:50:26 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-30adc51b65cso790405f8f.0 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=ZeU9NLnQ/dbn6PToat9cTIXjHZO/PPCmCyq1cn4uTqp5OXeQ7f8T6m/xc67401pkSe KE/3mcPmdHCiwXnYqtJM6oq/WBnSpUB6p6JnwNN0MHBWfd0Yx70jWVOhvXEH3Hxc65O0 iMBrfW09xRcypqYH9G4fvmmoAQZ3ClBT7fAGOHGZJDOtFJjJnQPdyLim0HvhnMpslycI ePRRZXcr0MQxs/nJLRdnjl0M/79tgOpaVSruoWl1Uolo8/ZbnvBjvwcONDm3YvW68+kS pF8vmHeZKf41ju+ts2ZzRVmNse6ONXmLGBQLD9L9jAyqe7kOO5u7xwFwpvQL5I5yQSAb LGEA== X-Gm-Message-State: AC+VfDyjIPT5uW3TW7OFcYO4E4JL1IFL/Dc8J+/knW+R82gf/x3j2B0z Xasz2mmzjqngHLBp1y/4Y1rYsg== 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: devicetree@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";