Ugoos AM9 - SoC S6 S905X5

It adds initial control of the LED on this device in active, suspended and shutdown state.
Active color is green, suspend is blue, shutdown is without color.
Will add some more functionality in next version of the driver.

With current implementation it is possible to disable active color from terminal:

echo spidev >/sys/bus/spi/devices/spi2.0/driver_override
echo spi2.0 >/sys/bus/spi/drivers/spidev/bind
(printf '\x00\x00\x00\x00\xe0\x00\x00\x00\x00') | dd of=/dev/spidev2.0

Update: with nightly 20260105 the syntax for changing colors at runtime is


ugoos am9:~ # cat /sys/devices/platform/led/colors/active
active color is 1 00 30 00

ugoos am9:~ # echo "2 10 30 00" >/sys/devices/platform/led/colors/active

ugoos am9:~ # dmesg | tail -n 1
[  508.058502] sk9822-spi led: active color stored as 2 10 30 00

ugoos am9:~ # cat /sys/devices/platform/led/colors/active
active color is 2 10 30 00

values brightness RR GG BB
brightness 0-9
RR GG BB 00-FF

6 Likes