Loading...
首页问答  

hi3359a sensorhub i2c0时钟无法获取

红娃子
红娃子  发布于 2021-05-20 09:04:06 73

环境

硬件海思hi3559av100公板
软件:hi3559av100 multi-core
设备树:
hi3559av100-demb-emmc.dts
hi3559av100.dtsi
hi3359av100-demb.dtsi

操作步骤

在里面hi3559av100-demb-emmc.dts加入如下内容
&i2c_bus12 {
status = “okay”;
};

内核打印

[    2.185554] hibvt-i2c 12110000.i2c: hibvt-i2c0@100000hz registered
[    2.195024] hibvt-i2c 12111000.i2c: hibvt-i2c1@100000hz registered
[    2.204492] hibvt-i2c 12112000.i2c: hibvt-i2c2@100000hz registered
[    2.213957] hibvt-i2c 12113000.i2c: hibvt-i2c3@100000hz registered
[    2.223422] hibvt-i2c 12114000.i2c: hibvt-i2c4@100000hz registered
[    2.232885] hibvt-i2c 12115000.i2c: hibvt-i2c5@100000hz registered
[    2.242348] hibvt-i2c 12116000.i2c: hibvt-i2c6@100000hz registered
[    2.251813] hibvt-i2c 12117000.i2c: hibvt-i2c7@100000hz registered
[    2.261276] hibvt-i2c 12118000.i2c: hibvt-i2c8@100000hz registered
[    2.270740] hibvt-i2c 12119000.i2c: hibvt-i2c9@100000hz registered
[    2.280201] hibvt-i2c 1211a000.i2c: hibvt-i2c10@100000hz registered
[    2.289750] hibvt-i2c 1211b000.i2c: hibvt-i2c11@100000hz registered
[    2.299239] hibvt-i2c 18070000.i2c: cannot get clock
[    2.302895] hibvt-i2c: probe of 18070000.i2c failed with error -2

查看设备树,sensorhub时钟,内核树都是配置了的,不晓得还需要打开些什么哦?

谢谢!!!

红娃子  发布于 2021-05-20 11:34:44

查看内核代码需要打开一个宏,
CONFIG_ACCESS_M7_DEV=y

打开后,sensorhub i2c0可以注册成功,但是使用时无法检测到i2c clk!

使用标准的i2c_tool工具进行检测的,很疑惑。谢谢!!!

0
添加附件:文件小于20M
上传
易百纳技术社区
确定要删除此文章、专栏、评论吗?
确定
取消
易百纳技术社区