imx8m:
在uboot阶段初始化i2c设备,设备树中添加后,,对应.c源代码使用那个呢?
目录:
/5.4.47/uboot-imx/drivers/i2c
Solved! Go to Solution.
which dts file do you use? this one?
是的;
使用的是imx8mq-ddr4-val.dts,目录:/5.4.47/uboot-imx/arch/arm/dts
imx8mq-ddr4-val.dts包含imx8mq.dtsi
&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_i2c1>;
pinctrl-1 = <&pinctrl_i2c1_gpio>;
scl-gpios = <&gpio5 14 GPIO_ACTIVE_HIGH>;
sda-gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>;
status = "okay";
ADD
pmic: pfuze100@8 {
compatible = "fsl,pfuze100";
reg = <0x8>;
.......
}
}
which dts file do you use? this one?