问题描述
我在i.mx8qm上使用GPIO扩展器(TCA6424)。扩展器通过I²C与处理器连接。我将其记录到 *。dts 文件中:
&i2c4 {
pinctrl-0 = <&pinctrl_i2c4>;
status = "okay";
tca6424@22 {
compatible = "ti,tca6424";
reg = <0x22>;
gpio-controller;
#gpio-cells = <2>;
};
};
[ 0.816053] pca953x 8-0020: 8-0020 supply vcc not found,using dummy regulator
[ 0.823139] pca953x 8-0020: Failed reading register
[ 0.827936] pca953x: probe of 8-0020 Failed with error -5
我是否正确理解0x22是设备地址?但是我应该在哪里写下I²C总线的数量?我还能忘记指出什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)