how to integrate pinmux tool C code into Linux

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

how to integrate pinmux tool C code into Linux

2,098 Views
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.

Labels (3)
0 Kudos
4 Replies

1,279 Views
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,279 Views
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 Kudos

1,279 Views
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 Kudos

1,279 Views
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!
-----------------------------------------------------------------------------------------------------------------------