How to use pwm1 for lvds brightness control on apalis imx6q?

By default lvds display using pwm4 to control brightness of display but I want to change it to pwm1 because alternative pin of pwm4 we are using as gpio.what should be done in device tree & in which device tree I need to make changes?

You need to update &backlight node at imx6qdl-apalis-ixora[-vxy].dtsi

I have updated still its not working with pwm1 and Its perfectly working with pwm4.
I am attaching the dtsi file of my eval board.link text
I have check whether alternative pin is enable but that is also not enable.
please help me with this.

][1]

This is what I am getting if I use Pwm2. In this case display is working but brightness is not controlling.Only 0 get 0% duty cycle and remaining giving same brightness.

Could you post a log in text format instead of a screenshot, thanks?

if I use Pwm2. In this case display is working but brightness is not controlling.Only 0 get 0% duty cycle and remaining giving same brightness.

hi @Hitesh

Could you provide the version of the software of your module? Which carrier board are you using?

Best regards,
Jaski

You are using pwmX and corresponding gpioX at same time in your devicetree, this is not possible. Either you need use a certain PIN as GPIO or PWM, but not both.

I am not using as gpio.I am using only as pwm2. with this configuration display is working properly but not able to control brightness only 0% duty cycle is working and in remaining cases brightness remains high. But if I use pwm4 then everything is working properly.But I want pwm2 because we need pwm4 alternative pin function to act as gpio.

Could you post the complete dmesg log in a file and the the output of commands which you are using to set the duty cycle of pwm2?