Hi - thank you for the nice driver. Here is my contrbute:
Device under test : T9_RK3318 (T9 Sunwell 3318 version 4+32 GB)
Running:
v25.11 rolling for RK3318 Box running Armbian Linux 6.12.55-current-rockchip64
Packages: Debian stable (trixie)
Support: for advanced users (rolling release)
Some info:
RK3318:~# lsmod | grep tm
tm16xx 28672 0
stmmac_platform 20480 1 dwmac_rk
stmmac 241664 3 stmmac_platform,dwmac_rk
pcs_xpcs 28672 1 stmmac
lsmod | grep i2c
i2c_gpio 16384 0
i2c_algo_bit 12288 1 i2c_gpio
ls /sys/bus/i2c/devices/
5-0024 i2c-4 i2c-5
ls /sys/class/leds/display
brightness device digits map_seg7 max_brightness num_digits num_segments power segments subsystem trigger uevent value
ls -l /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::alarm -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::alarm
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::colon -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::colon
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::lan -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::lan
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::pause -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::pause
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::play -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::play
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::usb -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::usb
lrwxrwxrwx 1 root root 0 Oct 26 11:53 display::wlan -> ../../devices/platform/i2c-display/i2c-5/5-0024/leds/display::wlan
lrwxrwxrwx 1 root root 0 Jan 1 1970 input3::capslock -> ../../devices/platform/ff600000.usb/xhci-hcd.0.auto/usb2/2-1/2-1:1.1/0003:248A:8208.0002/input/input3/input3::capslock
lrwxrwxrwx 1 root root 0 Jan 1 1970 input3::compose -> ../../devices/platform/ff600000.usb/xhci-hcd.0.auto/usb2/2-1/2-1:1.1/0003:248A:8208.0002/input/input3/input3::compose
lrwxrwxrwx 1 root root 0 Jan 1 1970 input3::kana -> ../../devices/platform/ff600000.usb/xhci-hcd.0.auto/usb2/2-1/2-1:1.1/0003:248A:8208.0002/input/input3/input3::kana
lrwxrwxrwx 1 root root 0 Jan 1 1970 input3::numlock -> ../../devices/platform/ff600000.usb/xhci-hcd.0.auto/usb2/2-1/2-1:1.1/0003:248A:8208.0002/input/input3/input3::numlock
lrwxrwxrwx 1 root root 0 Jan 1 1970 input3::scrolllock -> ../../devices/platform/ff600000.usb/xhci-hcd.0.auto/usb2/2-1/2-1:1.1/0003:248A:8208.0002/input/input3/input3::scrolllock
lrwxrwxrwx 1 root root 0 Jan 1 1970 working -> ../../devices/platform/gpio-leds/leds/working
Testing...
echo "1234" > /sys/class/leds/display/value
echo 1 > /sys/class/leds/display\:\:lan/brightness
echo 1 > /sys/class/leds/display\:\:usb/brightness
All the 7 functions and 4 digits are working and correctly associated.
Also trigges are working.
I still have this small bug which is stopping rolling messages:
display-service -c [INFO] all digits and leds on
/usr/sbin/display-service: 116: cannot create /sys/class/leds/display/message: Permission denied
All the function leds reacts well (all on) but the four clock digits do not switch, most likey because of the message permission denied. However they do work writing directly in the "value" as above and in the picture.
Edit: I have investigated a little and it seems that I am still using the tm16xx which came with the distribution, as depmod was failng. After a fresh recompile all your module load but nodes under "leds" are not there, it seems that the dtso/dtbo is not read - nothing appears in dmesg.
Attached the working dtso file.
rk3318-t9.dtso