我已啓用I2C總線2黑在DTB啓用I2C1上beaglebone黑色使用上比格骨DTB
i2c2: [email protected] {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
status = "okay";
clock-frequency = <100000>;
};
i2c2_pins: pinmux_i2c2_pins {
pinctrl-single,pins = <
0x178 0x73
0x17c 0x73
>;
};
使用下列行但是,當我同使用下面
代碼使I2C總線1i2c1: [email protected] {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
status = "okay";
clock-frequency = <100000>;
};
i2c1_pins: pinmux_i2c1_pins {
pinctrl-single,pins = <
0x154 0x72 /* i2c1_scl.i2c1_scl */
0x15c 0x72 /* i2c1_sda.i2c1_sda */
>;
};
總線在i2cdetect -l
命令中列出。但探測使用i2cdetect -r 1
命令總線給我下面的錯誤
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: [ 18.322700] omap_i2c 4802a000.i2c: timeout waiting for bus ready
-- [ 19.342694] omap_i2c 4802a000.i2c: timeout waiting for bus ready
-- [ 20.362695] omap_i2c 4802a000.i2c: timeout waiting for bus ready
我使用AM3359芯片的ZCZ包。任何人都可以指出我在dtb文件中犯的錯誤嗎?
什麼是「dtb」? – user391339