Connecting USB HID with LEDs

Could somebody explain why connecting USB HID with LEDs (for example keyboard) to the LEDE board doesn't create LED files in /sys/class/leds/ ?

[  101.256120] input: STMicroelectronics STM32 Human interface as /devices/platform/101c1000.ohci/usb2/2-1/2-1:1.0/0003:0483:572B.0001/input/input0
[  101.269729] hid-generic 0003:0483:572B.0001: input,hidraw0: USB HID v1.11 Keyboard [STMicroelectronics STM32 Human interface] on usb-101c1000.ohci-1/input0

On my Ubuntu 16.04 desktop I see the same dmesg output and NumLock, CapsLock and etc. LEDs appear in /sys/class/leds/.

ls /sys/class/leds/
input5::capslock  input5::numlock  input5::scrolllock
1 Like

OK, if somebody is interested, I've found the solution. There is an option "Export input device LEDs in sysfs" in kernel config. It was disabled by default. I just has to enable it using "make kernel_menuconfig". That works the same way as on my desktop now.