IMX6UL Board

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

IMX6UL Board

6,775 次查看
mayurshankariya
Contributor II

Hello team,

i am using IMX6UL board. in this i am getting problem with PWM.

so could you help how to use PWM pin to control LEDs intensity?

and How to configure settings to use PWM pin?

标签 (1)
0 项奖励
回复
6 回复数

2,639 次查看
linda_zhang
Contributor IV

The imx6ul has 8 PWM. Some might be multiplexed with others on your board. You need to decide according to your requirements.

For example, when we use PWM on MYIR's MYS-6ULX board, we need to modify dts file /MYiR-iMX-Linux-MYS/arch/arm/boot/dts/mys-imx6ull-14x14-evk.dts

6ulpwm01.jpg

0 项奖励
回复

2,639 次查看
fabio_estevam
NXP Employee
NXP Employee
0 项奖励
回复

2,639 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Mayur,

In the following link you will find how to use the PWM driver with UDOO board

https://www.udoo.org/docs/Hardware_&_Accessories/PWM.html

The way in which you use the driver is the same, you just need to consider a couple of things:

You must enable the PWM node in .dtsi and you must enable the pins in the iomux node. If the pins that you are using for PWM are being configured for any other function in the device tree you must delete or comment out that configuration.

Please take a look also to the following thread PWM with iMX6UL 


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,639 次查看
mayurshankariya
Contributor II

Thank you for your helpful reply, and how can i change mode of PWM_OUT pins using IOMUX controller ? beacuse that PWM3_OUT pin is working for 1) GPIO1_IO04 (mode ALT1) 2) LCD_DATA02 (mode ALT1) 3)NAND_ALE (mode ALT3) these all mode so how to set ALT3 mode?

0 项奖励
回复

2,639 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi,

this is donde in the device tree (.dts). Please take a look to this thread.

https://community.nxp.com/thread/450118 

It is not about PWM_OUT but the explanation is the same.

2,639 次查看
mayurshankariya
Contributor II

thanks for your reply.

i am fresher and new for this board.

i have done same steps which you said above like 32khz settings. but when i change in .dtsi file and try to compile this file at booting image but i am not getting new image of it.

and one more thing in .dtsi file i am not getting this type of node

pinctrl_uart2: uart2grp {  
                    fsl,pins = <  
                            MX6QDL_PAD_EIM_D26__UART2_TX_DATA       0x1b0b1  
                            MX6QDL_PAD_EIM_D27__UART2_RX_DATA       0x1b0b1  
                    >;  
            };

so can you tell me please what is use of these node? and i have to write this node in .dtsi file for PWM3_OUT and what is 0x1b0b1 address?

0 项奖励
回复