Author Topic: TE0720 LED1 and LED2  (Read 318 times)

bigguiness

  • Jr. Member
  • **
  • Posts: 75
TE0720 LED1 and LED2
« on: February 03, 2023, 07:50:40 PM »
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:
Code: [Select]
# 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?
Code: [Select]
# 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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
Re: TE0720 LED1 and LED2
« Reply #1 on: February 06, 2023, 08:09:48 AM »
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:
Quote
Also, 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