Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp966053iob; Fri, 13 May 2022 17:59:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypypfxrX7haqqDMSG/pg3190cUn1nNOn4VtWjOqQ05qwVEJ5ZRGyqURYRpfidhOKnVzs70 X-Received: by 2002:a05:600c:1d18:b0:394:6469:abec with SMTP id l24-20020a05600c1d1800b003946469abecmr6747720wms.89.1652489961652; Fri, 13 May 2022 17:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652489961; cv=none; d=google.com; s=arc-20160816; b=hStmjjSmtFwiSCgJcgX4yKNel0xkKEY/S/TwGy/rPa709gfcStYKdtsTRCO7XnHlUE rMbmVKnh9T8u2woF7XOdHbslWEfLEqwqnYm1iPkqUBJs5EwcQBhQE5nnyGlvAjcaf4zG ZSUGk+Zs0I9aFWuXpdBJHa6iIvEr0GSeD897Ao5yhRqANUzDHrx6Uo20XS9u9Bb87MRZ DpA48qSEsMvjPUU+wz/dTMQ9JehQ3aJrwfP4tQDAp/wQicCYZG+cvwDUaHQzYNd7tX31 ZsWpx+kODQ+bCMkEWSXjYC3EqedPaDyEWvuAwN0G0wAwnM+3GYzYOObfyQT2tOrj5ReY 6SOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=r9TTeTFNew8imXCR1/0M0CK8sBBUHJqceD87rs7Za0E=; b=lHiHvHtWp1VAzxjin0e7k7whIWAwIaRtceIp27AIIoZeI4qtIw3Jvqu2astqupPtwg t91Gbhh+1f0vh5aGx46YBo8iXiTqWLUvIcpiXHGvZw6tpgiSsyzdHkvH7l20qKBJoF9J B0oC34flfSrLCglZ0OlGyEPKHWr05u8PmA6dr5mgTVs9o4LQJZ2CKMPeI9Soj/esGnrI EVBY0N60kNfGq3jjV0IZYyRow+TjUqFjcZL4t2W16x8vCH8mRzBLP1cF7Hv6Ojg6d2v8 aATr2Wdswk3V2utuj2mmPr4AXO0NToCE9Sf2eHq9DffKQmZOUpKPsTX7WpO0s8fUHZub FHew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTBKSpIp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q7-20020adfcd87000000b002079b29b72esi3167193wrj.173.2022.05.13.17.59.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:59:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UTBKSpIp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7358361E11; Fri, 13 May 2022 16:34:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384043AbiEMUGE (ORCPT + 99 others); Fri, 13 May 2022 16:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383997AbiEMUFx (ORCPT ); Fri, 13 May 2022 16:05:53 -0400 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00C82E681 for ; Fri, 13 May 2022 13:05:52 -0700 (PDT) Received: by mail-oi1-x22b.google.com with SMTP id n24so11378162oie.12 for ; Fri, 13 May 2022 13:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=r9TTeTFNew8imXCR1/0M0CK8sBBUHJqceD87rs7Za0E=; b=UTBKSpIpuz7g8k9lVNCtJ6yp85ITbictkMH4LoeAJ8/sP3kse946f6IOJEe7SxJ7Dr OFdjERJvEDkWqCK9iaHbifhc/H6Lx5iFpnPwLvija5L6eqiIJdPRZ6kc2M/Y4+uPHK8Z WyxsGui5ziUWmSETwVaOkMef+EVyS0KmNPI7YHuvnmZ4Q9D5iAnRdnZA+mQ5OAGch/HM 7K81Wfd6O4wrXBvReeOQOsr9o7mIKLZRRYiQo7zRHtca/kFMGBNr+GtvVcN6+IJhTMyl /eJCUPJNB+4/BhMNbeUh+uc0WTdEURQCEiHU0UC8LUBBrkH6ZEtpVwoQn1rUQUD7mB7f vdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=r9TTeTFNew8imXCR1/0M0CK8sBBUHJqceD87rs7Za0E=; b=gYsA6j5IoUi1gPNBM6WZD4SOcUjY5WfXTHUdsI4DhdrXY4SXbHi778n5bK1muW7XbJ ELST7tksNn833tXFcw8fRlj7GOtz5kM7I/zuaKAaRq5g3g7er8dsdGGOw70xBm7la40Z 5EqsRNPE/oze/UBPA0WJL/rV0mSH0CLm2CKIJolOBvDS0dQChBsLyzKexRvV1A3hLGgP Jfm35GYoc/btKDx4i9VJhmxEzglqOZ9Hbd/+N3hy6dseyOijuLgeUCwYlJ+o1bEBh5YB ycb5H55HNFwaQawc8nNUMssriVnlQilEXhsqjvWKNsg3Tb8/uv47cGFMnAOVAqbjapDL 2SzA== X-Gm-Message-State: AOAM531QGO5c5C8C2672v36qYUdf6Smd/yvZC9U3iHaK02yPKfCJLa/x S5KkUTkuLAr6j59iPz9TUXHBFQ== X-Received: by 2002:a05:6808:2181:b0:326:901e:f5e7 with SMTP id be1-20020a056808218100b00326901ef5e7mr3361785oib.7.1652472351870; Fri, 13 May 2022 13:05:51 -0700 (PDT) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id a1-20020a9d5c81000000b0060603221240sm1456962oti.16.2022.05.13.13.05.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 13:05:51 -0700 (PDT) From: Caleb Connolly To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Caleb Connolly , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org Subject: [PATCH v3 4/6] arm64: dts: qcom: sdm845-db845c: enable pmi8998 charger Date: Fri, 13 May 2022 21:05:10 +0100 Message-Id: <20220513200512.501156-5-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220513200512.501156-1-caleb.connolly@linaro.org> References: <20220513200512.501156-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the smb2 charger driver on the db845c and add a simple-battery node to report the correct VBAT voltage. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 40a290b6d4f3..3b73b5305c51 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -240,6 +240,18 @@ vph_pwr: vph-pwr-regulator { vin-supply = <&vbat_som>; }; + + /* + * The db845c doesn't actually have a battery, but the charger circuitry + * is still wired up to support one, it needs to be programmed for nominal + * vbat voltage. See the vbat-regulator above. + */ + battery: battery { + compatible = "simple-battery"; + + voltage-min-design-microvolt = <4200000>; + voltage-max-design-microvolt = <4200000>; + }; }; &adsp_pas { @@ -603,6 +615,12 @@ &pmi8998_rradc { status = "okay"; }; +&pmi8998_charger { + status = "okay"; + + monitored-battery = <&battery>; +}; + /* QUAT I2S Uses 4 I2S SD Lines for audio on LT9611 HDMI Bridge */ &q6afedai { qi2s@22 { -- 2.36.1