我用pins-tool-for-imx-processors-v5-1_amd64生成的设备树文件片段如下:
/dts-v1/;
#include "skeleton.dtsi"
#include "imx6ull-pinfunc.h"
...............................................
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&BOARD_InitPins>;
imx6ull-board {
BOARD_InitPins: BOARD_InitPinsGrp { /*!< Function assigned for the core: Cortex-A7[ca7] */
fsl,pins = <
MX6ULL_PAD_ENET2_RX_ER__ECSPI4_SS0 0x000010B0
MX6ULL_PAD_ENET2_TX_CLK__ECSPI4_MISO 0x000010B0
MX6ULL_PAD_ENET2_TX_DATA1__ECSPI4_SCLK 0x000010B0
MX6ULL_PAD_ENET2_TX_EN__ECSPI4_MOSI 0x000010B0
>;
};
};
};
.......................................................
但是在linux下的imx6ull-pinfunc.h中没有MX6ULL_PAD_ENET2_RX_ER__ECSPI4_SS0,MX6ULL_PAD_ENET2_TX_CLK__ECSPI4_MISO,MX6ULL_PAD_ENET2_TX_DATA1__ECSPI4_SCLK和MX6ULL_PAD_ENET2_TX_EN__ECSPI4_MOSI的定义。
请问怎么能够将pins-tool-for-imx-processors-v5-1_amd64工具生成的设备树文件能够用在linux下?
我用的是linux4.1.15
For your reference, it is the same issue on Pins tool generate invalid imx6ull-board.dtsi .
Basically, the pins tool output is for reference. The i.MX6ULL is using the same pinfunc.h file of i.MX6UL. The pad name can be found in the i.MX6ul pinfunc.h file (imx6ul-pinfunc.h) So, you can just change the prefix of each PAD name from MX6ULL to MX6UL then it should work.