i2c node in the dts file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i2c node in the dts file

ソリューションへジャンプ
1,985件の閲覧回数
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,967件の閲覧回数
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,968件の閲覧回数
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 件の賞賛
返信