arm64: dts: qcom: sc7280: Adjust zombie PWM frequency
authorOwen Yang <ecs.taipeikernel@gmail.com>
Mon, 13 Feb 2023 02:59:05 +0000 (10:59 +0800)
committerBjorn Andersson <andersson@kernel.org>
Mon, 13 Feb 2023 22:18:37 +0000 (14:18 -0800)
Tune the PWM to solve screen flashing issue and high frequency noise.
While at it, the comment for the PWM settings incorrectly said we were
using a 5kHz duty cycle. It should have said "period", not "duty cycle".
Correct this while updating the values.

Signed-off-by: Owen Yang <ecs.taipeikernel@gmail.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230213105803.v2.1.I610cef0ead2d5df1f7bd18bc0e0ae040b03725d0@changeid
arch/arm64/boot/dts/qcom/sc7280-herobrine-zombie.dtsi

index 64deaaa..a4fde22 100644 (file)
@@ -61,8 +61,8 @@ ap_tp_i2c: &i2c0 {
 };
 
 &pm8350c_pwm_backlight {
-       /* Set the PWM period to 200 microseconds (5kHz duty cycle) */
-       pwms = <&pm8350c_pwm 3 200000>;
+       /* Set the PWM period to 320 microseconds (3.125kHz frequency) */
+       pwms = <&pm8350c_pwm 3 320000>;
 };
 
 &pwmleds {