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

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 28 12:12:32 PST 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f83f5f8452edd3115aacf333b0038da89639a218

commit f83f5f8452edd3115aacf333b0038da89639a218
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>
---
 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