如何在imx8m 在uboot阶段初始化i2c设备

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

如何在imx8m 在uboot阶段初始化i2c设备

Jump to solution
1,381 Views
lebeer
Contributor II

imx8m:

在uboot阶段初始化i2c设备,设备树中添加后,,对应.c源代码使用那个呢?

 

目录:

/5.4.47/uboot-imx/drivers/i2c

Spoiler
 
0 Kudos
Reply
1 Solution
1,372 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
3 Replies
1,357 Views
lebeer
Contributor II

是的;

使用的是imx8mq-ddr4-val.dts,目录:/5.4.47/uboot-imx/arch/arm/dts

imx8mq-ddr4-val.dts包含imx8mq.dtsi

0 Kudos
Reply
1,378 Views
lebeer
Contributor II

&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>;

      .......

      }

}

0 Kudos
Reply
1,373 Views
joanxie
NXP TechSupport
NXP TechSupport
0 Kudos
Reply