Firefly开源社区

标题: Android11.0 添加 pca9555 驱动,驱动注册成功了,但无法注册 GPIO [打印本页]

作者: 出风追云    时间: 2023-8-21 16:01
标题: 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


该问题如何解决,谢谢。




tchip_askquestions

截图 2023-08-21 15-41-53.png (41.44 KB, 下载次数: 56)

截图 2023-08-21 15-41-53.png

rk3568.log

94.24 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1






欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1