PWM signal is at default High state

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PWM signal is at default High state

跳至解决方案
3,192 次查看
Muthyam
Contributor I

Hello Community,
We are using Apalis IMX8QP/QM in Dunfell Kernel version. I am attaching patch file here.

We are facing an issue regarding backlight pwm, our backlight node is this
&backlight {
default-brightness-level = <4>;
brightness-levels = <0 45 63 88 119 158 203 255>;
pwms = <&pwm_lvds1 0 200000 PWM_POLARITY_INVERTED>;
status = “okay”;
};

While booting PWM signal is going high for around 3 seconds, then it is going low for 2 to 3 seconds, then we are getting pwm on that signal. How can we stop it from going high while booting.

0 项奖励
回复
1 解答
3,089 次查看
jimmychan
NXP TechSupport
NXP TechSupport

In the Yocto folder, the source code of the kernel is located in tmp/work/<board>/linux-imx/<version>/git/. And the u-boot source code is located in tmp/work/<board>/u-boot-imx/<version>/git/.

Then in the u-boot source code, you could use the same device tree file of your board there.

 

And for example, you could add your code in the <board>.c file to control the gpio output.

for your reference.

https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/board/freescale/imx8qm_mek/imx8qm_mek.c

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,120 次查看
jimmychan
NXP TechSupport
NXP TechSupport

In the u-boot, are you set the same pin as PWM? you may try to set it as gpio and output zero in u-boot.

0 项奖励
回复
3,108 次查看
Muthyam
Contributor I

I have no idea where those files are located and no idea how to change any uboot files.

 

0 项奖励
回复
3,090 次查看
jimmychan
NXP TechSupport
NXP TechSupport

In the Yocto folder, the source code of the kernel is located in tmp/work/<board>/linux-imx/<version>/git/. And the u-boot source code is located in tmp/work/<board>/u-boot-imx/<version>/git/.

Then in the u-boot source code, you could use the same device tree file of your board there.

 

And for example, you could add your code in the <board>.c file to control the gpio output.

for your reference.

https://github.com/nxp-imx/uboot-imx/blob/lf_v2023.04/board/freescale/imx8qm_mek/imx8qm_mek.c

 

 

0 项奖励
回复