1.这个问题困扰了我两天,把下面这些uart2相关引脚屏蔽掉也不行,ICM20608 ID 读出的数值一直为 0X0
pinctrl_flexcan2: flexcan2grp{
fsl,pins = <
/* MX6UL_PAD_UART2_RTS_B__FLEXCAN2_RX 0x1b020*/
/* MX6UL_PAD_UART2_CTS_B__FLEXCAN2_TX 0x1b020*/
>;
};
pinctrl_uart2: uart2grp {
fsl,pins = <
/* MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1
MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1*/
MX6UL_PAD_UART3_RX_DATA__UART2_DCE_RTS 0x1b0b1
MX6UL_PAD_UART3_TX_DATA__UART2_DCE_CTS 0x1b0b1
>;
};
pinctrl_uart2dte: uart2dtegrp {
fsl,pins = <
/* MX6UL_PAD_UART2_TX_DATA__UART2_DTE_RX 0x1b0b1
// MX6UL_PAD_UART2_RX_DATA__UART2_DTE_TX 0x1b0b1
// MX6UL_PAD_UART3_RX_DATA__UART2_DTE_CTS 0x1b0b1
// MX6UL_PAD_UART3_TX_DATA__UART2_DTE_RTS 0x1b0b1*/
>;
};
ecspi3使用原厂的代码也不行
/mnt/22_spi # insmod icm20608.ko
ICM20608 ID = 0X0
2.后来发现出厂源码写错了!!!!!!!cs-gpio少些了一个s。改后就可以读到ID值了。
/mnt/22_spi # insmod icm20608.ko
ICM20608 ID = 0XAE