From nobody Fri Dec 19 20:18:14 2025 Received: from mail-40130.protonmail.ch (mail-40130.protonmail.ch [185.70.40.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53ACFF4FA; Fri, 21 Jun 2024 14:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718979233; cv=none; b=ZiZ0N2SgIay/DpfY5su2mCnYqKgCJxv9Kl1TjYJDUUo+cxhE0RZgM8gWlX9MY1cU0bKYKxa9KnYcUTbpZtc45bfvclh0nxQxwSgxzF5MdTGvDvnKVx9gWPoy6eE1hpfCXKhSuyqZ8DBP5MVH4BRpFExGNymMGbsbYvB3k7zhQX4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718979233; c=relaxed/simple; bh=nQ4+wUt5CyLv6ZNzugRNBeJC/TdP5J/vV00LiCmuuvc=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=OvatGcPULTNnCLb7c/rr5ba/TVWyoIOOUqktfLo5OHC7JnkjRhUXdL40N3o1FoLaNLcKib5cOY9Olmxf4VQTzhPp5/LLP/k0jbuekyDpUTOl1y4+j/HKWC5TdZJMfYBNAmibrHqoMpp9ml1+CIFW03ow/BVolsDd2wL5gGW2JuU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=jV7Dt4KG; arc=none smtp.client-ip=185.70.40.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="jV7Dt4KG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1718979223; x=1719238423; bh=phbpiE/1uu6UZY1iql0eHzSjR4wmgdFmktGqssfgZYg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=jV7Dt4KGAH/eR4mnkBSsTXMsBaU2baKUQZYlAJXTqcX76VaHz92UC9KXZgfytooUq jFQmnOTRYVtZ2qG0xJFVC9zSsMV72eIA0RcNlidGJBnydaDHrEELhVp2j5K47R9VHk 6hyNJ1wt2itq/QLUxxtSb+z+FKMFnidOTB2vPsqtEQyzI2GYYq11lAmikjolf/CASs f7GkrbQSsvUCjmkKLiUneckbZiGMhgKOXYlpfthWay2lzrrbOBSXX5DvytwnhL0H1g tbvUU/Qjud6xlsRLjS/bGfY6VM0RAgrRpOu26w5PdsFbx7q+Zf1TxWRcJGOBmStF04 R9AFyaRAMtmLQ== Date: Fri, 21 Jun 2024 14:13:33 +0000 To: linux-kernel@vger.kernel.org From: "Lin, Meng-Bo" Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stephan Gerhold , Nikita Travkin , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH] arm64: dts: qcom: msm8916-gplus-fl8005a: Add BMS Message-ID: <20240621141319.347088-1-linmengbo06890@proton.me> Feedback-ID: 112742687:user:proton X-Pm-Message-ID: 51c028cd8bbb19aca92887c15f2dde8a5e75b1ca Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" There is PM8916 Battery voltage monitor on GPLUS FL8005A. Add PM8916 BMS and the battery to the device tree. Signed-off-by: "Lin, Meng-Bo" Reviewed-by: Konrad Dybcio --- .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm6= 4/boot/dts/qcom/msm8916-gplus-fl8005a.dts index e6ed5544a11b..f7be7e371820 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts @@ -24,6 +24,28 @@ chosen { stdout-path =3D "serial0"; }; =20 + battery: battery { + compatible =3D "simple-battery"; + device-chemistry =3D "lithium-ion-polymer"; + voltage-min-design-microvolt =3D <3700000>; + voltage-max-design-microvolt =3D <4200000>; + energy-full-design-microwatt-hours =3D <13690000>; + charge-full-design-microamp-hours =3D <3700000>; + + ocv-capacity-celsius =3D <25>; + ocv-capacity-table-0 =3D + <4186000 100>, <4126000 95>, <4078000 90>, + <4036000 85>, <3997000 80>, <3962000 75>, + <3932000 70>, <3904000 65>, <3874000 60>, + <3839000 55>, <3809000 50>, <3792000 45>, + <3780000 40>, <3772000 35>, <3764000 30>, + <3752000 25>, <3731000 20>, <3704000 16>, + <3677000 13>, <3670000 11>, <3668000 10>, + <3666000 9>, <3662000 8>, <3658000 7>, <3648000 6>, + <3624000 5>, <3580000 4>, <3518000 3>, <3434000 2>, + <3310000 1>, <3000000 0>; + }; + flash-led-controller { /* Actually qcom,leds-gpio-flash */ compatible =3D "sgmicro,sgm3140"; @@ -116,6 +138,11 @@ &mpss_mem { reg =3D <0x0 0x86800000 0x0 0x5000000>; }; =20 +&pm8916_bms { + monitored-battery =3D <&battery>; + status =3D "okay"; +}; + &pm8916_codec { qcom,micbias-lvl =3D <2800>; qcom,mbhc-vthreshold-low =3D <150 180 237 450 500>; --=20 2.39.2