出风追云 发表于 2023-8-21 16:01:23

Android11.0 添加 pca9555 驱动,驱动注册成功了,但无法注册 GPIO

1. 查看 PCA9555 内核打印信息,如下所示
[    0.793534] rk808-rtc rk808-rtc: device is disabled
[    0.793558] rk808-rtc: probe of rk808-rtc failed with error -22
[    0.794717] pca953x 1-0021: 1-0021 supply vcc not found, using dummy regulator
[    0.794803] pca953x 1-0021: Linked as a consumer to regulator.0
[    0.795453] pca9555 init success!
[    0.795603] pca953x 1-0022: 1-0022 supply vcc not found, using dummy regulator
[    0.795656] pca953x 1-0022: Linked as a consumer to regulator.0
[    0.796284] pca9555 init success!
[    0.796894] pca953x 3-0021: 3-0021 supply vcc not found, using dummy regulator
[    0.796952] pca953x 3-0021: Linked as a consumer to regulator.0
[    0.797589] pca9555 init success!
[    0.797732] pca953x 3-0022: 3-0022 supply vcc not found, using dummy regulator
[    0.797778] pca953x 3-0022: Linked as a consumer to regulator.0
[    0.798407] pca9555 init success!
[    0.798544] pca953x 3-0024: 3-0024 supply vcc not found, using dummy regulator
[    0.798601] pca953x 3-0024: Linked as a consumer to regulator.0
[    0.799223] pca9555 init success!
2. 查看内核 GPIO 口,如下图
3. 使用I2CTool 能够正常控制PCA9555 IO 口。
4. 发现注册在 I2C3 的PCA9555 驱动。无法正常申请GPIO
:/sys/class/gpio # echo 600 > export                                                                                                                                                                     
1


该问题如何解决,谢谢。




页: [1]
查看完整版本: Android11.0 添加 pca9555 驱动,驱动注册成功了,但无法注册 GPIO