how to enable the I2C 3 bus on the imx6q sabresd

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to enable the I2C 3 bus on the imx6q sabresd

ソリューションへジャンプ
1,896件の閲覧回数
divyardharan
Contributor III

Hi all

As am very urgent.

Could anyone plz tell me how to enable the I2C 3 bus on the imx6q sabresd??

Regards

Divya R Dharan

タグ(2)
0 件の賞賛
返信
1 解決策
1,467件の閲覧回数
divyardharan
Contributor III

Dear Alejandro

I added pin details in \arch\arm\mach-mx6\board-mx6q.c and board-mx6q.h files.

MX6Q_PAD_EIM_D18__I2C1_SDA,

MX6Q_PAD_EIM_D17__I2C1_SCL,

Also added mux configurations of these Pins in \arch\arm\plat-mxc\include\mach\ iomux-mx6q

#define MX6Q_I2C_PAD_CTRL (PAD_CTL_SRE_FAST | PAD_CTL_ODE | \

PAD_CTL_PKE | PAD_CTL_PUE | PAD_CTL_DSE_40ohm | \

PAD_CTL_PUS_100K_UP | PAD_CTL_HYS | PAD_CTL_SPEED_MED)

#define MX6QPAD_EIM_D17__I2C3_SCL \

IOMUX_PAD(0x03A8, 0x0094, 6 | IOMUX_CONFIG_SION, 0x08A8, 0, 0)

#define MX6QPAD_EIM_D18__I2C3_SDA \

IOMUX_PAD(0x03AC, 0x0098, 6 | IOMUX_CONFIG_SION, 0x08AC, 0, 0)

#define MX6Q_PAD_EIM_D17__I2C3_SCL \

(_MX6Q_PAD_EIM_D17__I2C3_SCL | MUX_PAD_CTRL(MX6Q_I2C_PAD_CTRL))

#define MX6Q_PAD_EIM_D18__I2C3_SDA \

(_MX6Q_PAD_EIM_D18__I2C3_SDA | MUX_PAD_CTRL(MX6Q_I2C_PAD_CTRL))

It works fine when I added above lines.

Thank You.

Regards

Divya R Dharan

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,467件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Would you let us know wich linux kernel version are you using?

Best Regards,

Alejandro

0 件の賞賛
返信
1,467件の閲覧回数
divyardharan
Contributor III

Hi,

I could successfully enable the I2C3.

Thanks for your response.

Regards

Divya R Dharan

0 件の賞賛
返信
1,467件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

That is great news!!

Would you be nice enough to share your solution?

Best Regards,

Alejandro

0 件の賞賛
返信
1,468件の閲覧回数
divyardharan
Contributor III

Dear Alejandro

I added pin details in \arch\arm\mach-mx6\board-mx6q.c and board-mx6q.h files.

MX6Q_PAD_EIM_D18__I2C1_SDA,

MX6Q_PAD_EIM_D17__I2C1_SCL,

Also added mux configurations of these Pins in \arch\arm\plat-mxc\include\mach\ iomux-mx6q

#define MX6Q_I2C_PAD_CTRL (PAD_CTL_SRE_FAST | PAD_CTL_ODE | \

PAD_CTL_PKE | PAD_CTL_PUE | PAD_CTL_DSE_40ohm | \

PAD_CTL_PUS_100K_UP | PAD_CTL_HYS | PAD_CTL_SPEED_MED)

#define MX6QPAD_EIM_D17__I2C3_SCL \

IOMUX_PAD(0x03A8, 0x0094, 6 | IOMUX_CONFIG_SION, 0x08A8, 0, 0)

#define MX6QPAD_EIM_D18__I2C3_SDA \

IOMUX_PAD(0x03AC, 0x0098, 6 | IOMUX_CONFIG_SION, 0x08AC, 0, 0)

#define MX6Q_PAD_EIM_D17__I2C3_SCL \

(_MX6Q_PAD_EIM_D17__I2C3_SCL | MUX_PAD_CTRL(MX6Q_I2C_PAD_CTRL))

#define MX6Q_PAD_EIM_D18__I2C3_SDA \

(_MX6Q_PAD_EIM_D18__I2C3_SDA | MUX_PAD_CTRL(MX6Q_I2C_PAD_CTRL))

It works fine when I added above lines.

Thank You.

Regards

Divya R Dharan

0 件の賞賛
返信
1,467件の閲覧回数
alejandrolozan1
NXP Employee
NXP Employee

Thanks a lot!!

Best Regards,

Alejandro

0 件の賞賛
返信