@Charlie_Owz
Hello,
I do not think that it is possible to import Linux device tree
configuration to the i.MX Config Tool automatically. Moreover
export of the .mex file to Linux also is mainly manual procedure.
According to i.MX Config Tools User Manual, tool generated board-oriented
device tree (DTS) DTSI file is only a snippet, which contains basic device
tree elements, initial skeleton.
Content itself may be manually merged together with existing Linux BSP
device tree file(s) in order to apply the tool generated pins configuration.
For Your issue it is needed to define (manually) what pins are really
involved in Linux configuration and their settings, and then (manually)
configure them in the i.MX Config Tool.
From the document below:
properties:
fsl,pins:
description:
each entry consists of 6 integers and represents the mux and config
setting for one pin. The first 5 integers <mux_reg conf_reg input_reg
mux_val input_val> are specified using a PIN_FUNC_ID macro, which can
be found in <arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h>. The last
integer CONFIG is the pad setting value like pull-up on this pin. Please
refer to i.MX8M Plus Reference Manual for detailed CONFIG settings.
https://github.com/brgl/linux/blob/master/Documentation/devicetree/bindings/pinctrl/fsl%2Cimx8mp-pin...
For example, the line
MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC 0x3
means, that SW_MUX_CTL_PAD_SAI1_RXD2 SW MUX Control Register (IOMUXC_SW_MUX_CTL_PAD_SAI1_RXD2)
( address 0x3033_0158) is used; bit field MUX_MODE = 4 ALT4 mux port: ENET1_MDC
From .h file
#define MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC 0x158 0x3B8 0x000 0x4 0x0
https://github.com/brgl/linux/blob/master/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h
Regards,
Yuri.