net: r8169: add device tree based LED configuration for r8125#497
Conversation
Read r8125 LED register/value pairs from the PCIe controller DT "realtek,led-data" property, instead of hardcoding in the shared driver path. Walk up the device parent chain to find the PCIe platform device's of_node, since PCI devices on Rockchip platforms do not have their of_node set directly. Parse the DT property once during probe and cache it in the driver private struct. Apply the cached config from rtl_hw_start_8125_common only, eliminating redundant calls and repeated memory allocation.
|
(Migrated from PR #496) HeyMeco commented on 2026-06-01:
|
|
(Migrated from PR #496) mingzhangqun commented on 2026-06-02:
|
Summary
Read r8125 LED register/value pairs from the PCIe controller device tree
realtek,led-dataproperty, instead of hardcoding in the shared driver path.The driver searches DT nodes for
realtek,led-dataand writes each reg/value pair viaRTL_W16.Tested on Seeed reComputer RK3588 DevKit