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.