imx8dx pwm3 IMX8QXP_UART1_CTS_B_LSIO_PWM3_OUT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8dx pwm3 IMX8QXP_UART1_CTS_B_LSIO_PWM3_OUT

466 Views
songhongliang
Contributor II

HI

    I want to use UART1_CTS as PWM control, I found this IMX8QXP_UART1_CTS_B_LSIO_PWM3_OUT, but I don't know how to configure pwm3, I use linux L5.4.70.

Thanks!

0 Kudos
Reply
1 Reply

446 Views
jimmychan
NXP TechSupport
NXP TechSupport

Hello,

 

You can take the pwm-backlight as reference.

In the i.MX8qxp mek dts file. You can see the "pwm-backlight" used under the lvds _backlight0 node.

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8x-mek.dt...

 

It use the "pwm_mipi_lvds0" to setup the pwm signal. The "pwm_mipi_lvds0" can be found in the imx8qxp-ss-lvds.dtsi. It call the driver is "fsl,imx27-pwm". Here is the driver source code.

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/pwm/pwm-imx27.c?h=lf-5.10.y

 

The pwm-backlight driver is here

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/video/backlight/pwm_bl.c?h=lf-5.10...

 

The document in linux for pwm-backlight is

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/leds/bac...

 

 

 

 

 

0 Kudos
Reply