Dear NXP ,
SW version :
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-langdale -m imx-6.1.1-1.0.1.xml
HW : imx8mplus
The LVDS panel can display normally. I want to control pwm backlight .
GPIO1_IO11 : pwm backlight
Please refer to my imx8mp-evk.dts :
lvds_backlight: lvds_backlight {
compatible = "pwm-backlight";
pwms = <&pwm2 0 100000 0>;
status = "okay";
brightness-levels = < 0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37 38 39
40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59
60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79
80 81 82 83 84 85 86 87 88 89
90 91 92 93 94 95 96 97 98 99
100>;
default-brightness-level = <80>;
};
lvds0_panel {
compatible = "panel-lvds";
backlight = <&lvds_backlight>;
power-supply = <®_lvds_pwr>;
data-mapping = "jeida-18";
data-width = <18>;
height-mm = <135>; /* 135.6 */
width-mm = <216>; /* 216.96 */
panel-timing {
clock-frequency = <74250000>;
hactive = <1280>;
vactive = <800>;
hback-porch = <64>;
hfront-porch = <42>;
vback-porch = <49>;
vfront-porch = <20>;
hsync-len = <22>;
vsync-len = <20>;
};
port {
panel_lvds_in: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};
&pwm2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm2>;
status = "okay";
};
pinctrl_pwm2: pwm2grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO11__PWM2_OUT 0x116
>;
};


cat max_brightness : This value is 100
cat brightness : This value is 80
echo 0 > brightness
cat brightness : This value is 0 but the LVDS panel can still display normally.
I use an oscilloscope to measure the PWM voltage . It always keep 3.3 V .
I add some log in pwm_bl.c .Please refer the pwm_backlight.log and pwm_bl.c .
Please help to solve this problem .