AnsweredAssumed Answered

IMX6sx I2C-2 dose not work

Question asked by rui wang on Feb 19, 2019
Latest reply on Feb 20, 2019 by rui wang

Hi

imx6sx was used on my board.  I am using i2c to read information of optical module.  DTS of my board is like this:

&i2c1 {
    clock-frequency = <100000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c1>;
    status = "okay";
};

 

&i2c2 {
    clock-frequency = <100000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c2>;
    status = "okay";
};

 

&i2c3 {
    clock-frequency = <100000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c3>;
    status = "okay";
};

 


        pinctrl_i2c1: i2c1grp {
            fsl,pins = <
                MX6SX_PAD_GPIO1_IO01__I2C1_SDA        0x4001b8b1
                MX6SX_PAD_GPIO1_IO00__I2C1_SCL        0x4001b8b1
            >;
        };

 

        pinctrl_i2c2: i2c2grp {
            fsl,pins = <
                MX6SX_PAD_QSPI1B_DATA2__I2C2_SDA    0x4001b8b1
                MX6SX_PAD_QSPI1B_DATA3__I2C2_SCL    0x4001b8b1
            >;
        };

 

        pinctrl_i2c3: i2c3grp {
            fsl,pins = <
                MX6SX_PAD_KEY_ROW4__I2C3_SDA        0x4001b8b1
                MX6SX_PAD_KEY_COL4__I2C3_SCL        0x4001b8b1
            >;
        };

 

Pads of i2c1 & i2c3 are similar to imx6sxsabresd, but i2c2 is different(QSPI1B_DATA2->i2c sda, QSPI1B_DATA3->i2c scl).   

 

I can access the optical module via i2c1. but i2c2 dose not work. no signal was found on pad QSPI1B_DATA2 & pad QSPI1B_DATA3 when i am trying to read from i2c2.

 

But I can control the voltage of pad QSPI1B_DATA2 & pad QSPI1B_DATA3 under u-boot, therefore, it seems that the hardware is correct. 

 

is there anyone who can help me?   thx...

Outcomes