Regarding SC16IS752IPW not getting configured on I2C Linux driver.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Regarding SC16IS752IPW not getting configured on I2C Linux driver.

2,082 次查看
JK81
Contributor I

Hello,

We are using attached circuit but we are not able to configure the IC. However, linux driver is able to detect presence of IC on I2C bus. If we try to write value of 0XFF to IODir, we get 0X0F in response. We get similar response for other register like IOstate, IOControl. 

As of now we have disabled all UART related register & just want to focus on GPIO operations, however we don't get any GPIO operation. We did following for troubleshooting.

* Replaced the IC with new one but that didn't helped.

* Verified data on I2C bus & that is OK as per values given, however we don't see the effect from IC.

* When we try to read (after writing 0XFF) to IODir, we always get 0X0F. 

* Changed clock freq. from 100Khz to 50Khz but that didn't had any effect.

I am not sure if the crystal we are using 14.7MHz is causing issues or what as datasheet has mention of 1.8432MHz & 3.072MHz. Kindly help us at earliest.

Regards,

jagdish

 

 

标记 (1)
0 项奖励
回复
7 回复数

2,030 次查看
JK81
Contributor I

We are also using UART apart from GPIO but GPIO are going into some critical modules & hence focusing on GPIO with priority. We have still not checked UART in SC16IS752.

0 项奖励
回复

2,023 次查看
guoweisun
NXP TechSupport
NXP TechSupport

This GPIO function is still related with UART interface, I will send to your SC16IS750 Linux driver for reference later.

0 项奖励
回复

1,959 次查看
JK81
Contributor I

Hello,

Thanks for providing linux drivers, as of now FW team is trying to implement those & see the results. We will keep you posted of results.

jagdish

0 项奖励
回复

2,034 次查看
JK81
Contributor I

Hello NXP support,

Could anyone please respond on above replies.

jagdish

0 项奖励
回复

2,065 次查看
guoweisun
NXP TechSupport
NXP TechSupport

1: For the hardware please refer to attached EVB schematic

2: For the software please refer to SPI programming example even if you use the IIC interface but still have reference value.

0 项奖励
回复

2,062 次查看
JK81
Contributor I

Hello,

Thanks for providing schematic & reference code. Our schematic looks good based on I2C interface that we are using. Even crystal values are matching, however we are unable to program/ configure GPIOs. The code you provided consist of UART, however we are just accessing GPIOs (GPIO0 - GPIO7) & using below mentioned values of 4 registers.

IOControl=0X00, IOINTEna=0X00, IODir=0XFF (all outputs), IOstate=0XFF.

Do we need anything else to make it working.

jagdish

0 项奖励
回复

2,033 次查看
guoweisun
NXP TechSupport
NXP TechSupport

In your system,except GPIO can't be operated,what about others function?

 

0 项奖励
回复