* [PATCH 0/2] arm64: dts: qcom: pmi8950: VADC channels corrections
@ 2025-10-04 13:12 Antony Kurniawan Soemardi
2025-10-04 13:12 ` [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels Antony Kurniawan Soemardi
2025-10-04 13:12 ` [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors Antony Kurniawan Soemardi
0 siblings, 2 replies; 5+ messages in thread
From: Antony Kurniawan Soemardi @ 2025-10-04 13:12 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Antony Kurniawan Soemardi
Addresses issues with VADC channels on the pmi8950.dtsi
1. Missing VDD and GND channels. I think these channels are using same
address as other Qualcomm's PMIC?
2. Incorrect scaling factors for the USBIN, DCIN, and VCHG_SNS channels
Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
Antony Kurniawan Soemardi (2):
arm64: dts: qcom: pmi8950: Add missing VADC channels
arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors
arch/arm64/boot/dts/qcom/pmi8950.dtsi | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
---
base-commit: cbf33b8e0b360f667b17106c15d9e2aac77a76a1
change-id: 20250928-fix-pmi8950-vadc-155f85fe5f06
Best regards,
--
Antony Kurniawan Soemardi <linux@smankusors.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels
2025-10-04 13:12 [PATCH 0/2] arm64: dts: qcom: pmi8950: VADC channels corrections Antony Kurniawan Soemardi
@ 2025-10-04 13:12 ` Antony Kurniawan Soemardi
2025-10-07 13:16 ` Konrad Dybcio
2025-10-04 13:12 ` [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors Antony Kurniawan Soemardi
1 sibling, 1 reply; 5+ messages in thread
From: Antony Kurniawan Soemardi @ 2025-10-04 13:12 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Antony Kurniawan Soemardi
When booting msm8953-based devices, the following kernel message
appears:
[ 13.090800] qcom-spmi-vadc 200f000.spmi:pmic@2:adc@3100: Please define VDD channel
It turns out the pmi8950 uses same VDD and GND channels as other
Qualcomm's PMICs, so we can simply copy the channel definition from
the other Qualcomm's PMIC dtsi.
Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
arch/arm64/boot/dts/qcom/pmi8950.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/pmi8950.dtsi b/arch/arm64/boot/dts/qcom/pmi8950.dtsi
index 3d3b1cd97cc3d04b2c5a78c06fbeb3fee3c5af8d..16e436b68a7c161b1afd4f3eac3d7d8564e40512 100644
--- a/arch/arm64/boot/dts/qcom/pmi8950.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmi8950.dtsi
@@ -55,6 +55,14 @@ channel@d {
qcom,pre-scaling = <1 1>;
label = "chg_temp";
};
+
+ channel@e {
+ reg = <VADC_GND_REF>;
+ };
+
+ channel@f {
+ reg = <VADC_VDD_VADC>;
+ };
};
pmi8950_mpps: mpps@a000 {
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors
2025-10-04 13:12 [PATCH 0/2] arm64: dts: qcom: pmi8950: VADC channels corrections Antony Kurniawan Soemardi
2025-10-04 13:12 ` [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels Antony Kurniawan Soemardi
@ 2025-10-04 13:12 ` Antony Kurniawan Soemardi
2025-10-07 13:19 ` Konrad Dybcio
1 sibling, 1 reply; 5+ messages in thread
From: Antony Kurniawan Soemardi @ 2025-10-04 13:12 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Antony Kurniawan Soemardi
Fix USBIN/DCIN scaling to match the downstream implementation [1].
Downstream defines the following scaling mappings [2], corresponding
to mainline pre-scaling values:
<4> -> <1 20>
<1> -> <1 3>
[1] https://github.com/LineageOS/android_kernel_qcom_msm8953/blob/e6b46fc6f52e754eef5ce6265c7d82a3622e0b0f/arch/arm64/boot/dts/qcom/pmi8950.dtsi#L55-L86
[2] https://github.com/LineageOS/android_kernel_qcom_msm8953/blob/e6b46fc6f52e754eef5ce6265c7d82a3622e0b0f/include/linux/qpnp/qpnp-adc.h#L342-L357
Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
---
arch/arm64/boot/dts/qcom/pmi8950.dtsi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/pmi8950.dtsi b/arch/arm64/boot/dts/qcom/pmi8950.dtsi
index 16e436b68a7c161b1afd4f3eac3d7d8564e40512..5bd91a5cd1245f34ef37d98b1a2669582e84876c 100644
--- a/arch/arm64/boot/dts/qcom/pmi8950.dtsi
+++ b/arch/arm64/boot/dts/qcom/pmi8950.dtsi
@@ -22,19 +22,19 @@ pmi8950_vadc: adc@3100 {
channel@0 {
reg = <VADC_USBIN>;
- qcom,pre-scaling = <1 4>;
+ qcom,pre-scaling = <1 20>;
label = "usbin";
};
channel@1 {
reg = <VADC_DCIN>;
- qcom,pre-scaling = <1 4>;
+ qcom,pre-scaling = <1 20>;
label = "dcin";
};
channel@2 {
reg = <VADC_VCHG_SNS>;
- qcom,pre-scaling = <1 1>;
+ qcom,pre-scaling = <1 3>;
label = "vchg_sns";
};
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels
2025-10-04 13:12 ` [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels Antony Kurniawan Soemardi
@ 2025-10-07 13:16 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-10-07 13:16 UTC (permalink / raw)
To: Antony Kurniawan Soemardi, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 10/4/25 3:12 PM, Antony Kurniawan Soemardi wrote:
> When booting msm8953-based devices, the following kernel message
> appears:
> [ 13.090800] qcom-spmi-vadc 200f000.spmi:pmic@2:adc@3100: Please define VDD channel
>
> It turns out the pmi8950 uses same VDD and GND channels as other
> Qualcomm's PMICs, so we can simply copy the channel definition from
> the other Qualcomm's PMIC dtsi.
>
> Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors
2025-10-04 13:12 ` [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors Antony Kurniawan Soemardi
@ 2025-10-07 13:19 ` Konrad Dybcio
0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2025-10-07 13:19 UTC (permalink / raw)
To: Antony Kurniawan Soemardi, Bjorn Andersson, Konrad Dybcio,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 10/4/25 3:12 PM, Antony Kurniawan Soemardi wrote:
> Fix USBIN/DCIN scaling to match the downstream implementation [1].
>
> Downstream defines the following scaling mappings [2], corresponding
> to mainline pre-scaling values:
>
> <4> -> <1 20>
> <1> -> <1 3>
>
> [1] https://github.com/LineageOS/android_kernel_qcom_msm8953/blob/e6b46fc6f52e754eef5ce6265c7d82a3622e0b0f/arch/arm64/boot/dts/qcom/pmi8950.dtsi#L55-L86
> [2] https://github.com/LineageOS/android_kernel_qcom_msm8953/blob/e6b46fc6f52e754eef5ce6265c7d82a3622e0b0f/include/linux/qpnp/qpnp-adc.h#L342-L357
>
> Signed-off-by: Antony Kurniawan Soemardi <linux@smankusors.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-10-07 13:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-04 13:12 [PATCH 0/2] arm64: dts: qcom: pmi8950: VADC channels corrections Antony Kurniawan Soemardi
2025-10-04 13:12 ` [PATCH 1/2] arm64: dts: qcom: pmi8950: Add missing VADC channels Antony Kurniawan Soemardi
2025-10-07 13:16 ` Konrad Dybcio
2025-10-04 13:12 ` [PATCH 2/2] arm64: dts: qcom: pmi8950: Fix VADC channel scaling factors Antony Kurniawan Soemardi
2025-10-07 13:19 ` Konrad Dybcio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®