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

Angus Ainslie angus.ainslie at puri.sm
Fri Oct 19 07:52:14 PDT 2018


Thanks Guido,

I'll get that applied today.

On 10/19/18 8:19 AM, Guido Günther via Librem-5-dev wrote:
> 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 */
>  			>;
>  		};
>  		


More information about the Librem-5-dev mailing list