From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796234804; b=0+a+z3uakhXXgc27BXdkPa/9nD3SCSE2Fje8gLCWgje2LnKQ6tHfiXFCMUmsS9iNMm6j ERNTdo1R0HkWNXKkMCDG2lZoBuvPKx+46KXhSnTfm+qiJSpKKfKuV4v9dTgiOb03beN4i 0/1yHafguDK0BpUISGNGkkxTnVQq2HwSXFVSlBYKFfRdVscpxgp5mmzxN+BUpJ7FrgQ0h OftGTjHOa6OS38jX4JjINPhZrAsDCf461ip4qTObYCd1wq6DriPgxbGK31ObT5Nlwb7u9 8ezqgnl9nScoZwPygXx+SsUEEZ4eCRaYZv9/5B0Rn/GHM0iGyV5QpWmwb5Cf8H/DZIQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796234804; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=UjRKJkmLWhYYr9gLubOqBXycD3VouakRcxXk6wCSCAc=; b=OrYKwrcvAbFD8sQdo96huwI4q5noHKU0kjY4ctxI0plYIcz/ecgQpDW2slN39b2ElElM /XQPfNDji/+2KXuLnF85iq6FPRoO158jbM9ywqph3CHnMPPLCWs/GxV3ZBXnkdHwxmTpW Lnvnd6Mw368/uHnpXHMGlss+CVZVjAzSKrYMMtVCKxUlfu88Q1jdFJZ3Mp9Mu5XkJVcoK NvyyZkdpB5275vtp1mIjcUzsCgafo6PJripFpiqkiwl9ppdQhZkfY/L3q+PbZ0ESpZJI8 cFWiFzzGWgkg34Iy95WBrJpEj3jtoyefh2nP+kQFKuZntYQuuaBhiUBlXVQZ662X/oA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="IU/wWKXW"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD3C3606A692 for ; Wed, 2 Dec 2026 18:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IU/wWKXW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 414531F00897; Wed, 2 Dec 2026 18:06:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796234804; bh=UjRKJkmLWhYYr9gLubOqBXycD3VouakRcxXk6wCSCAc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IU/wWKXWtyvNC+toYonoikkNxRslWQ3gL5I1g3C2jQF5S6c0wOGgobWYNj+N6t4Q6 yHJbmFhPoQOQCToWSoxu58GBM1p8XS0RMNjN5wHnWEdSHwBnczHI5/ziopyUKFd/3p MjssnbQJnu+LgPF0jMVYJI6/3pCFOLRa6R4D6hb6DlqV/gOjXKtTf4oXXfedXGQd7B Ejfy8Gh9X2IMAC5RQqYh7lIDcNIhbNpUU//VBSbi9eDC5/uNVidM1WZvIkcF0tOjnj ijGi9cTGC99ciGG+rj47fJgcYd6idpt3sYdizQAXRc3WfruwU7oyWnZUvioEkKSakK UW8Y1GxbTa1pg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] arm64: dts: qcom: sm7125-samsung: add fuel gauge Reply-To: sashiko-reviews@lists.linux.dev To: "Erikas Bitovtas" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-sm7125-samsung-fuelgauge-v2-1-4a8f2977d50f@gmail.com> References: <20261202-sm7125-samsung-fuelgauge-v2-1-4a8f2977d50f@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 18:06:43 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] arm64: dts: qcom: sm7125-samsung: wrong battery top-off and max voltage props - [Low] arm64: dts: qcom: sm7125-samsung: unused gpi_dma1 and qupv3_id_1 enabled -- commit d1e4e816712da396c29d01ec3a61c854786a3077 Author: Erikas Bitovtas arm64: dts: qcom: sm7125-samsung: add fuel gauge This commit adds simple-battery nodes, enables QUPv3, GPI DMA and I2C4 controllers, and enables the Silicon Mitus SM5714 fuel gauge on the Samsung Galaxy A52 and Galaxy A72. > diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts b/arch/arm6= 4/boot/dts/qcom/sm7125-samsung-a52q.dts > index ecba5be8164ea..33ce9e454017d 100644 > --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts > +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a52q.dts > @@ -15,6 +15,12 @@ / { > qcom,board-id =3D <0x22 0x6>; > }; > =20 > +&battery { > + charge-full-design-microamp-hours =3D <4500000>; > + trickle-charge-current-microamp =3D <225000>; > + constant-charge-current-max-microamp =3D <2800000>; > +}; > + > &rmtfs_mem { > reg =3D <0x0 0xf4f00000 0x0 0x202000>; > }; > diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts b/arch/arm6= 4/boot/dts/qcom/sm7125-samsung-a72q.dts > index f18d03de1585e..fef0db054e1f7 100644 > --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts > +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-a72q.dts > @@ -15,6 +15,12 @@ / { > qcom,board-id =3D <0x22 0x5>; > }; > =20 > +&battery { > + charge-full-design-microamp-hours =3D <5000000>; > + trickle-charge-current-microamp =3D <250000>; > + constant-charge-current-max-microamp =3D <2700000>; > +}; > + > &rmtfs_mem { > reg =3D <0x0 0xf3700000 0x0 0x202000>; > }; > diff --git a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi b/arch/a= rm64/boot/dts/qcom/sm7125-samsung-common.dtsi > index 59ef4921f31e9..a90e3b3184cd9 100644 > --- a/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm7125-samsung-common.dtsi > @@ -22,6 +22,14 @@ / { > =20 > qcom,msm-id =3D ; > =20 > + battery: battery { > + compatible =3D "simple-battery"; > + device-chemistry =3D "lithium-ion"; > + voltage-min-design-microvolt =3D <3200000>; > + voltage-max-design-microvolt =3D <4330000>; > + re-charge-voltage-microvolt =3D <4310000>; > + }; [Severity: Medium] Do trickle-charge-current-microamp and voltage-max-design-microvolt match the vendor properties they were mapped from? According to Documentation/devicetree/bindings/power/supply/battery.yaml, trickle-charge-current-microamp is the wake-up or pre-pre-charge current for very empty batteries, and explicitly notes that top-off charging is different and not controlled by this property (CV-phase charge termination current uses charge-term-current-microamp, and the vendor battery,low_temp_topoff property is a low-temperature top-off termination threshold). Passing it as trickle-charge-current-microamp causes power_supply_get_battery_info() to populate info->tricklecharge_current_ua instead of info->charge_term_current_ua. Similarly, the vendor battery,full_condition_vcell property (4.33 V) is the minimum voltage threshold required to declare the battery full at end-of-charge rather than the battery's maximum design voltage, so POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN will report 4.33 V. > @@ -379,6 +387,25 @@ &dispcc { > status =3D "disabled"; > }; > =20 > +&gpi_dma0 { > + status =3D "okay"; > +}; > + > +&gpi_dma1 { > + status =3D "okay"; > +}; [ ... ] > +&qupv3_id_0 { > + status =3D "okay"; > +}; > + > +&qupv3_id_1 { > + status =3D "okay"; > +}; [Severity: Low] Should gpi_dma1 and qupv3_id_1 remain disabled here? The only enabled QUPv3 serial engine in the SM7125 Samsung device trees is i2c4, which sits under qupv3_id_0 and uses gpi_dma0, so enabling gpi_dma1 and qupv3_id_1 probes the second QUPv3 wrapper and GPI DMA controller with no active consumers. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-sm7125-sam= sung-fuelgauge-v2-1-4a8f2977d50f@gmail.com?part=3D1