AnsweredAssumed Answered

Pin mux Issue with gpio7[6]

Question asked by Akash Gajjar on Oct 17, 2016
Latest reply on Oct 19, 2016 by Akash Gajjar

Hi all,

 

i have connected one sensor on  i2c 4 imx7d sabre board, gpio7[6] is used for reset

purpose, when i make gpio value 0 by

echo 0 > /sys/class/gpio198/value

my i2c4_scl comes to ground state.

here's device tree data

 

                pinctrl_i2c4: i2c4grp {                                         
                        fsl,pins = <                                            
                                MX7D_PAD_I2C4_SDA__I2C4_SDA     0x4000007f         
                                MX7D_PAD_I2C4_SCL__I2C4_SCL     0x4000007f         
                                MX7D_PAD_ENET1_RGMII_TD0__GPIO7_IO6        0x4000007f
                        >;                                                      
                };

 

when i detect the device it shows,

 

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

when i2c 4 clock is at ground state it is scanning the device on bus as shown above,

can you please suggest me what's wrong with this.

 

Regards,

Akash

Outcomes