R/G/B/X LEDs using stock Ubuntu 24.04

SteveInAU
SteveInAU New Member Posts: 2

Hi all,

I'm trying to figure out how to enable control of the additional LEDs next to the ethernet port on the UP4000.

I'm trying to not install any specific UP board kernel to make this happen - as these will likely be deployed and required to be supported by us for 5-8 years - likely beyond the timeframe of supported software released by UP....

Is there a way to enable certain GPIOs directly to allow this to work?

I notice at the moment, I can see:

# ls -l /sys/class/leds
total 0
lrwxrwxrwx 1 root root 0 May  8 06:20 enp2s0-0::lan -> ../../devices/pci0000:00/0000:00:13.1/0000:02:00.0/net/enp2s0/enp2s0-0::lan
lrwxrwxrwx 1 root root 0 May  8 06:20 enp2s0-1::lan -> ../../devices/pci0000:00/0000:00:13.1/0000:02:00.0/net/enp2s0/enp2s0-1::lan
lrwxrwxrwx 1 root root 0 May  8 06:20 enp2s0-2::lan -> ../../devices/pci0000:00/0000:00:13.1/0000:02:00.0/net/enp2s0/enp2s0-2::lan

... and it does look like at least some of the GPIO control is available with the stock Ubuntu 24.04 kernel:

# ls -l /sys/class/gpio/
total 0
--w------- 1 root root 4096 May  9 06:21 export
lrwxrwxrwx 1 root root    0 May  8 06:20 gpiochip512 -> ../../devices/platform/INT3452:00/gpio/gpiochip512
lrwxrwxrwx 1 root root    0 May  8 06:20 gpiochip590 -> ../../devices/platform/INT3452:01/gpio/gpiochip590
lrwxrwxrwx 1 root root    0 May  8 06:20 gpiochip667 -> ../../devices/platform/INT3452:02/gpio/gpiochip667
lrwxrwxrwx 1 root root    0 May  8 06:20 gpiochip714 -> ../../devices/platform/INT3452:03/gpio/gpiochip714
--w------- 1 root root 4096 May  9 06:21 unexport

Right now, I'm only looking to get basic ON / OFF support working - but it would likely be good to register them as normal LEDs to allow some of the effects to work...

Answers

Privacy Policy