完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
修改dts配置文件,以som 256的camera为例,查看实际硬件连接的是i2C3:
i2c_gpio0 { status = "disabled"; hm1055@24 { compatible = "himax,hm1055"; reg = <0x24>; pinctrl-names = "default"; pinctrl-0 = < pinctrl_ccap0>; clocks = < clk CCAP0_GATE>; clock-names = "xclk"; reset-gpios = < gpiom 1 GPIO_ACTIVE_LOW>; /* PM1 */ powerdown-gpios = < gpiok 8 GPIO_ACTIVE_HIGH>; /* PK8 */ port { hm1055_0: endpoint { remote-endpoint = < ccap0_1>; }; }; }; }; 修改为: i2c3 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = < pinctrl_i2c3>; hm1055@24 { compatible = "himax,hm1055"; reg = <0x24>; pinctrl-names = "default"; pinctrl-0 = < pinctrl_ccap0>; clocks = < clk CCAP0_GATE>; clock-names = "xclk"; reset-gpios = < gpiom 1 GPIO_ACTIVE_LOW>; /* PM1 */ powerdown-gpios = < gpiok 8 GPIO_ACTIVE_HIGH>; /* PK8 */ port { hm1055_0: endpoint { remote-endpoint = < ccap0_1>; }; }; }; }; 然后增加i2c3相关配置: i2c3 { pinctrl_i2c3: i2c3grp{ nuvoton,pins = , ; }; }; |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
642浏览 3评论
533浏览 2评论
375浏览 1评论
395浏览 1评论
354浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-4 17:23 , Processed in 0.633247 second(s), Total 44, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号