Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#845 - MT7628 : wrong data reading the I2C bus #5791

Open
openwrt-bot opened this issue Jun 14, 2017 · 0 comments
Open

FS#845 - MT7628 : wrong data reading the I2C bus #5791

openwrt-bot opened this issue Jun 14, 2017 · 0 comments
Labels
flyspray kernel pull request/issue with Linux kernel related changes

Comments

@openwrt-bot
Copy link

hitech95:

Hi,

I've already talked to blogic about this issue. He asked me to perform some tests on the platform even back to openwrt CC.

The bug in question occurs with the MT7628 chip and the I2C bus (WRTNode 2p board).
Configuring the pinmux and enabling the driver, the kernel correctly sees the i2c bus. But then going to use the "i2cdetect" command from i2c-tools package has a surprising result: devices are actually sees devices that are not connected.

Curious about the problem I connected my DSO and I did the probe of the SDA and SCL pins. Data and clock seem to be transferred correctly. So the problem seems to be in the "reading".

According to the i2c specification if SDA is pull-low and you do an i2cdetect the system should identify in the bus an ACK for each slave address, this does does not happen and the same list appear again.

Turning back to different versions this still happens, unfortunately I have not been able to test every single commit.
The test I've made:

  • Openwrt CC the device was not supported.

  • Openwrt first commit of the device support: the i2c bus was not recognized by the driver.

  • Openwrt trunk, the i2c bus is not registered

  • LEDE 12.01 the problem as described above.

  • LEDE HEAD: the problem as described above.

  • LEDE HEAD 4.9 (kernel): The problem as described above.

[[https://pastebin.com/uajwfWjn|i2cdetect result (same result with SDA pulled low)]]
[[https://pastebin.com/ZVAFVrgv|.config]]
[[https://pastebin.com/bzUp14Ed|wrtnode2p.dts]]

Regards,
hitech95

@aparcar aparcar added the kernel pull request/issue with Linux kernel related changes label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray kernel pull request/issue with Linux kernel related changes
Projects
None yet
Development

No branches or pull requests

2 participants