tca9535的a0,a1,a2全是高电平,没有rst引脚。接到i2c3-M1上。
&i2c3 {
status = "okay";
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&i2c3m1_xfer>;
tca9535@4e {
compatible = "nxp,pca9535";
reg = <0x4e>; //之前用i2cdetect -y 3 检测是27,但总不行,所以尝试用4e
#address-cells = <1>;
#size-cells = <0>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <16>;
};
};
刷机后,报错:
[root@luckfoxmax root]# dmesg | grep pca953x
[ 7.508490] pca953x 3-0027: supply vcc not found, using dummy regulator
[ 7.508673] pca953x 3-0027: using no AI
[ 7.711953] pca953x 3-0027: failed writing register
[ 7.712214] pca953x: probe of 3-0027 failed with error -110
[root@luckfoxmax root]# ls /sys/bus/i2c/drivers/pca953x/
bind uevent unbind
[root@luckfoxmax root]# i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
[root@luckfoxmax root]# ll /dev/i2*
crw------- 1 root root 89, 1 Jun 30 14:52 /dev/i2c-1
crw------- 1 root root 89, 3 Jun 30 14:52 /dev/i2c-3
crw------- 1 root root 89, 4 Jun 30 14:51 /dev/i2c-4
[root@luckfoxmax root]#

