[openwrt/openwrt] ath79: add label-mac-device for GL-XE300

LEDE Commits lede-commits at lists.infradead.org
Fri Feb 3 02:50:46 PST 2023


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/2702ef94274b35c2d80a795484a1126b5f4628cf

commit 2702ef94274b35c2d80a795484a1126b5f4628cf
Author: Tom Herbers <mail at tomherbers.de>
AuthorDate: Tue Jan 24 14:14:58 2023 +0100

    ath79: add label-mac-device for GL-XE300
    
    This adds an label-mac-device alias which refrences the mac which is
    printed on the Label of the device.
    
    Signed-off-by: Tom Herbers <mail at tomherbers.de>
    (cherry picked from commit f83f5f8452edd3115aacf333b0038da89639a218)
---
 target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts b/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts
index 9c2760398b..9212c0a754 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts
+++ b/target/linux/ath79/dts/qca9531_glinet_gl-xe300.dts
@@ -9,6 +9,10 @@
 	compatible = "glinet,gl-xe300", "qca,qca9531";
 	model = "GL.iNet GL-XE300";
 
+	aliases {
+		label-mac-device = &eth0;
+	};
+
 	gpio-export {
 		compatible = "gpio-export";
 




More information about the lede-commits mailing list