[openwrt/openwrt] realtek: RTL930x/RTL931x led_set defines
LEDE Commits
lede-commits at lists.infradead.org
Thu Aug 21 02:22:15 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5d44b115f1fef40a6b023d098056d8affbe029ae
commit 5d44b115f1fef40a6b023d098056d8affbe029ae
Author: Bevan Weiss <bevan.weiss at gmail.com>
AuthorDate: Sun Jul 27 14:12:32 2025 +1000
realtek: RTL930x/RTL931x led_set defines
Add defines for RTL930x and RTL931x led_set 'modes' (to avoid magic numbers
in dts files).
Signed-off-by: Bevan Weiss <bevan.weiss at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19791
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/realtek/dts/macros.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/target/linux/realtek/dts/macros.dtsi b/target/linux/realtek/dts/macros.dtsi
index 66925fb791..b47b782669 100644
--- a/target/linux/realtek/dts/macros.dtsi
+++ b/target/linux/realtek/dts/macros.dtsi
@@ -61,3 +61,19 @@
full-duplex; \
}; \
};
+
+// LED Set mode definitions
+#define RTL93XX_LED_SET_NONE (0)
+#define RTL93XX_LED_SET_10G (1 << 0)
+#define RTL93XX_LED_SET_5G (1 << 1)
+#define RTL93XX_LED_SET_2P5G (1 << 3)
+#define RTL93XX_LED_SET_1G (1 << 5)
+#define RTL93XX_LED_SET_100M (1 << 7)
+#define RTL93XX_LED_SET_10M (1 << 8)
+#define RTL93XX_LED_SET_LINK (1 << 9)
+#define RTL93XX_LED_SET_LINK_BLINK (1 << 10)
+#define RTL93XX_LED_SET_ACT (1 << 11)
+#define RTL93XX_LED_SET_RX (1 << 12)
+#define RTL93XX_LED_SET_TX (1 << 13)
+#define RTL93XX_LED_SET_COLLISION (1 << 14)
+#define RTL93XX_LED_SET_DUPLEX (1 << 15)
More information about the lede-commits
mailing list