[Librem-5-dev] [PATCH] librem5-evk DT: Set backlight PWM to 200Hz

Guido Günther agx at sigxcpu.org
Fri Oct 19 07:19:00 PDT 2018


Since related also drop unneeded flags from the pwm1's pin definition.
---
 arch/arm64/boot/dts/freescale/librem5-evk.dts | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/librem5-evk.dts b/arch/arm64/boot/dts/freescale/librem5-evk.dts
index 89440c1a7dc4..fd67586ef124 100644
--- a/arch/arm64/boot/dts/freescale/librem5-evk.dts
+++ b/arch/arm64/boot/dts/freescale/librem5-evk.dts
@@ -200,10 +200,11 @@
 
         backlight_dsi {
                 compatible = "pwm-backlight";
-                pwms = <&pwm1 0 200000>;
+                /* 200 Hz for the PAM2841 */
+                pwms = <&pwm1 0 5000000>;
                 brightness-levels = <0 10 20 30 40 50 60 70 80 90>;
                 /* Default brightness level (index into the array defined by the "brightness-levels" property) */
-                default-brightness-level = <7>;
+                default-brightness-level = <0>;
                 status = "okay";
         };
 };
@@ -499,7 +500,7 @@
 
 		pinctrl_pwm1: pwm1 {
 			fsl,pins = <
-				MX8MQ_IOMUXC_GPIO1_IO01_PWM1_OUT 	0xc6  /* DSI_BL_PWM */
+				MX8MQ_IOMUXC_GPIO1_IO01_PWM1_OUT 	0x6  /* DSI_BL_PWM */
 			>;
 		};
 		
-- 
2.19.0


More information about the Librem-5-dev mailing list