@@ -98,8 +98,6 @@ properties:description:|Over-voltage protection limit. This property is for WLED4 only.$ref:/schemas/types.yaml#/definitions/uint32-enum:[18100,19600,29600,31100]-default:29600qcom,num-strings:description:|
@@ -98,8 +98,6 @@ properties:description:|Over-voltage protection limit. This property is for WLED4 only.$ref:/schemas/types.yaml#/definitions/uint32-enum:[18100,19600,29600,31100]-default:29600qcom,num-strings:description:|
Out of the supported ones:
{ .compatible = "qcom,pmi8950-wled", .data = (void *)4 },
{ .compatible = "qcom,pmi8994-wled", .data = (void *)4 },
{ .compatible = "qcom,pmi8998-wled", .data = (void *)4 },
{ .compatible = "qcom,pm660l-wled", .data = (void *)4 },
I can confirm both allowed and default values for PMI8950/98/PM660L
I could not find any data for PMI8994 (or PMI8996, the essentially
PMI8994-revbump), but it's very probable that 8950 is an oddball,
so:
Reviewed-by: Konrad Dybcio <redacted>
Konrad
From: Konrad Dybcio <hidden> Date: 2026-01-07 14:08:10
On 1/7/26 2:31 PM, Barnabás Czémán wrote:
Correct wled ovp value from 29600 to 29500.
This tells us what the fix is, but not why the fix needs to be made.
We can infer the former from the patch contents, but it's really
important that the next reader, perhaps in 5 years, can find out the
reason it was made.
How about:
"""
PMI8950 doesn't actually support setting an OVP threshold value of
29.6 V. The closest allowed value is 29.5 V. Set that instead.
"""
With this or similar commit message:
Reviewed-by: Konrad Dybcio <redacted>
Konrad
@@ -98,8 +98,6 @@ properties:description:|Over-voltage protection limit. This property is for WLED4 only.$ref:/schemas/types.yaml#/definitions/uint32-enum:[18100,19600,29600,31100]
minimum and maximum should stay here. Or alternatively enum with all the
values, but I think first options is enough.
Best regards,
Krzysztof
From: Konrad Dybcio <hidden> Date: 2026-01-07 14:13:14
On 1/7/26 2:31 PM, Barnabás Czémán wrote:
Set qcom,num-strings to 3 instead of 2 for avoid stripes.
"""
The backlight on this device is connected via 3 strings. Currently,
the DT claims only two are present, which results in visible stripes
on the display (since every third backlight string remains unconfigured).
Fix the number of strings to avoid that
"""
Konrad
quoted hunk
Fixes: 38d779c26395 ("arm64: dts: qcom: msm8953: Add device tree for Xiaomi Mi A2 Lite")
Signed-off-by: Barnabás Czémán <redacted>
---
arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Document ovp values supported by wled found in PMI8950.
Signed-off-by: Barnabás Czémán <redacted>
---
.../bindings/leds/backlight/qcom-wled.yaml | 20
++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git
a/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml
b/Documentation/devicetree/bindings/leds/backlight/qcom-wled.yaml
index a8490781011d..306fb6642617 100644
@@ -98,8 +98,6 @@ properties:description:|Over-voltage protection limit. This property is for WLED4 only.$ref:/schemas/types.yaml#/definitions/uint32-enum:[18100,19600,29600,31100]-default:29600qcom,num-strings:description:|
Out of the supported ones:
{ .compatible = "qcom,pmi8950-wled", .data = (void *)4 },
{ .compatible = "qcom,pmi8994-wled", .data = (void *)4 },
{ .compatible = "qcom,pmi8998-wled", .data = (void *)4 },
{ .compatible = "qcom,pm660l-wled", .data = (void *)4 },
I can confirm both allowed and default values for PMI8950/98/PM660L
I could not find any data for PMI8994 (or PMI8996, the essentially
PMI8994-revbump), but it's very probable that 8950 is an oddball,
This commits add support for pmi8998 and documentation is telling which
PMIC supports which values:
https://git.codelinaro.org/clo/la/kernel/msm-4.4/-/commit/7a1b6d0276828f270180db40935bb034a3470865
TLDR:
- qcom,ovp-mv : Over voltage protection threshold in mV. Default is
29500. Supported values are:
- 31000, 29500, 19400, 17800 for pmi8994/8952/8996. (As far as i
know 8952=8950)
- 31100, 29600, 19600, 18100 for pmicobalt/pm2falcon
(pmi8998/pm660l)