AnsweredAssumed Answered

DTS Parse error on pwm-backlight node

Question asked by Dan MacDonald on Sep 22, 2017
Latest reply on Sep 28, 2017 by Dan MacDonald

I'm trying to add a backlight driver to my device tree, but am getting parse errors. From all the examples in the source code, it appears I am doing everything correctly. I am successfully able to use my pwm4 for my backlight, but its the driver thats tripping me up. Am I missing something?

 

cat ../defconfig | grep -E -i 'pwm|backlight'

CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
CONFIG_PWM_IMX=y
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y

 

&iomuxc {
...
      // addition for the pwm4backlight
       pinctrl_bl_pwm4: pwm4grp {
       fsl,pins = <
             MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1
             >;
       };
}; //~iomuxc

// enable backlight with default brightness
backlight_lcd {
      compatible = "pwm-backlight";
      pwms = <&pwm4 0 20000>;          // 20,000 ns = 50kHz
      brightness-levels = <0 2 4 8 16 32 64 128 255>;
      default-brightness-level = <5>;
      status = "okay";
      };

&pwm4 {
      status = "okay";
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_bl_pwm4>;
};

 

The error I get is not very descriptive :

| Error: .../arch/arm/boot/dts/imx6dl-XYZ-som-v15.dts:202.2-15 syntax error

 

Any help is appreciated

Outcomes