i2c node in the dts file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i2c node in the dts file

跳至解决方案
1,165 次查看
Embedded-world
Contributor IV

Dear Experts,


I'm working imx6ull dts files so here,

&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";

pcf8563@51 {
status = "okay";
compatible = "nxp,pcf8563";
reg = <0x51>;
};
};

In the above dts i2c structure i didn't understand the @51 and reg = <0x51> values, How to assign these value from the datasheet ? someone could give me clarity about this.



Thanks and Regards,

Ravikumar

0 项奖励
回复
1 解答
1,147 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Embedded-world 

The 0x51 is  your i2c slave device address. You should check datasheet or user guide.

Best Regards

Zhiming

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,148 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Embedded-world 

The 0x51 is  your i2c slave device address. You should check datasheet or user guide.

Best Regards

Zhiming

0 项奖励
回复