how to integrate pinmux tool C code into Linux

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

how to integrate pinmux tool C code into Linux

2,736 次查看
randysilagi
Contributor II

I have a imx6sx.  The H/W guys used the pinmux tool to configure which pins support which functions.  Now I have these 3 files, iomux_config_core1.c *.h and fsl_bitaccess.h.  How do I add these files to the kernel and or U-Boot?

Randy S.

标签 (3)
0 项奖励
回复
4 回复数

1,917 次查看
Yuri
NXP Employee
NXP Employee

Hello,

   The Pins Tool is recommended instead of the pinmux.

Pins Tool for i.MX Application Processors|NXP  

It generates the Device Tree for Linux. 

Regards,

Yuri.

1,917 次查看
randysilagi
Contributor II

Hi Yuri,

So, I have generated the files with pin tool.  Now what should I do with the iomux_config_core1.c and .h files??

Randy S.

0 项奖励
回复

1,917 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  You may refer to recommendations of Carlos_Musich Employee above.

Also, please look at section 3.6 (IOMUX) of "i.MX_Linux_Reference_Manual.pdf".

http://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS&Parent_nodeId=133769948107170617... 

Regards,

Yuri.

0 项奖励
回复

1,917 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Randy,

the pinmux tool was used for the i.MX SDK which provided bareboard configuration, however this tool is no longer used and every configuration must be done through the Device Tree.

You may find many references to this topic

Device Tree Tutorial (ARM) | Linux Kernel For Newbies 

Configure GPIO as interrupt source 

Default config of GPIO's using device tree - Freescale i.MX6 - Stack Overflow 

Any examples on how to modify the .dts (device tree) source for custom hardware? 


Regards,
Carlos

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