News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

TE0720 LED1 and LED2

Started by bigguiness, February 03, 2023, 07:50:40 PM

Previous topic - Next topic

bigguiness

Can LED1 and LED2 be controlled by the user in Linux?

I have looked at the TE0720 CPLD information (Document Rev: v.140) and chapter 2.2.8 I2C to GPIO block seems to indicate they are.

But after booting my system I don not get the expected value when reading device 0x20 address 0x00:
# i2cget -y 1 0x20 0x00
0x00


The document says that the read should return 0x39.

Is there any more documentation on the CPLD I2C to GPIO block?

Also, I have asked this before, but does anyone know what device 0x21 is on I2C bus 1?
# i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- UU
70: -- -- -- -- -- -- -- --   


Thanks

JH

Hi,
did you update CPLD to the newest firmware? I think you has a older one. Firmware documentation and new firmware release was  around June last year, see:
https://wiki.trenz-electronic.de/display/PD/TE0720+CPLD#TE0720CPLD-DocumentChangeHistory


PS:
QuoteAlso, I have asked this before, but does anyone know what device 0x21 is on I2C bus 1?
Are you sure that nobody answered?
https://forum.trenz-electronic.de/index.php/topic,1715.msg8128.html#msg8128
On older CPLD Version other I2C end device IP was used and 2 addresses was available, see a older obsolete documentation:
https://wiki.trenz-electronic.de/display/PD/TE0720+CPLD+archive+obsolete+description

br
John