Using PinMux tool ( config tools for I.Mx) , How integrate pin_mux.c , pin_mux,dts and pin_mux.h ?

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

Using PinMux tool ( config tools for I.Mx) , How integrate pin_mux.c , pin_mux,dts and pin_mux.h ?

1,898 Views
jhpark_vine
Contributor III

For i.MX8M EVK customization , 

Using PinMux tool ( config tools for I.MX ) , i exported  pin_mux.c , pin_mux,dts and pin_mux.h for board customization.. 

then how integrate these files to u-boot, linux kernel for i.MX8M EVK board ?

 

Thanks 

0 Kudos
1 Reply

1,889 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Jhpark_vine,

The code you get from Pin Mux tool cannot be directly integrated into u-boot and linux bsp. The following information and steps are for your reference:
1. u-boot
--device tree: uboot-imx/arch/arm/dts/imx8mq-evk.dts
You need to modify this device tree according to the files you get.
--Pin MUX Header file:
uboot-imx/include/dt-bindings/pinctrl/pins-imx8mq.h
You need to find the corresponding reuse definition according to the obtained file and add it to imx8mq-evk.dts.
2.linux BSP
--device tree:
linux-imx/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
---Pin Mux header file:
linux-imx/arch/arm64/boot/dts/freescale/imx8mq-pinfunc.h
Modify dts according to the definition of this file.

 

Have a nice day!

B.R,

Weidong