PWM Control

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

PWM Control

362 Views
charleshuang
Senior Contributor II

Hi NXP,
We are now using imx93 to use LVDS, and we need to use the PIN of PWM TPM3. In the EVK version,
we do not see the definition of the relevant TPM3 PIN. Please tell me how to use it.Currently there is no definition of TPM3 pin in the following files.
arch/arm64/boot/dts/freescale/imx93.dtsi
drivers/clk/imx/clk-imx93.c
include/dt-bindings/clock/imx93-clock.h
Please tell me what settings need to be made if you want to use TPM3 to set pwm output.

Thanks

0 Kudos
1 Reply

341 Views
joanxie
NXP TechSupport
NXP TechSupport

current bsp only uses tpm4 as pwm, for tpm3, maybe you can try this

tpm3: pwm@424e0000 {                   

compatible = "fsl,imx7ulp-pwm";                         

reg = <0x424e0000 0x1000>;                             

clocks = <&clk IMX93_CLK_TPM3_GATE>;                             

 assigned-clock-parents = <&clk IMX93_CLK_24M>;

ssigned-clock-rates = <24000000>;+                              

#pwm-cells = <3>;                            

status = "disabled";

};

0 Kudos