可以啊,如下我在dts的配置,帮忙check。
i2c7: i2c@FDF0B000 {
compatible = "snps,designware-i2c";
reg = <0x0 0xFDF0B000 0x0 0x1000>;
interrupts = <0 314 4>;
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <400000>;
clocks = <&crg_ctrl HI3660_CLK_GATE_I2C7>;
resets = <&crg_rst HI3660_RST_I2C7>;
pinctrl-names = "default";
pinctrl-0 = <&i2c7_pmx_func &i2c7_cfg_func>;
status = "ok";
bm1383@5d {
compatible = "rohm,bm1383_i2c";
reg = <0x5d>;
//bm1383_vdd-supply = <&ldo11>;
};
};
hi Dragon,
如果i2c 设备地址没问题的话,dts 配置没毛病。 bm1383 是气压sensor。
目前有两个方面去check:
(1)重新换一路I2C去挂载设备,比如I2C0, check一下你的驱动;
(2)如果(1)ok的话,应该去怀疑一下这一组pin的mode 是否设置成I2C mode;
by the way,我手头上有跟你一个型号的sensor,我可以也尝试下,稍等。
Working