2018-11-26 22:28:00 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2020-03-11 01:06:02 +00:00
|
|
|
#include "ar7241.dtsi"
|
|
|
|
#include "ar724x_ubnt_xm.dtsi"
|
2018-11-26 22:28:00 +00:00
|
|
|
|
|
|
|
/ {
|
2018-12-06 10:16:47 +00:00
|
|
|
compatible = "ubnt,airrouter", "ubnt,xm", "qca,ar7241";
|
2020-07-15 16:41:57 +00:00
|
|
|
model = "Ubiquiti AirRouter (XM)";
|
2018-11-26 22:28:00 +00:00
|
|
|
|
|
|
|
aliases {
|
2019-11-05 18:23:33 +00:00
|
|
|
led-boot = &led_globe;
|
|
|
|
led-failsafe = &led_globe;
|
|
|
|
led-running = &led_globe;
|
|
|
|
led-upgrade = &led_globe;
|
ath79: provide label MAC address
This patch adds the label MAC address for several devices in
ath79.
Some devices require setting the MAC address in 02_network:
For the following devices, the netif device can be linked in
device tree, but the MAC address cannot be read:
- alfa-network,ap121f
- avm,fritz300e
- ubnt-xm devices
For the following devices, label MAC address is tied to lan or
wan, so no node to link to exists in device tree:
- adtran,bsap1800-v2
- adtran,bsap1840
- dlink,dir-842-c1/-c2/-c3
- engenius,ecb1750
- iodata,etg3-r
- iodata,wn-ac1167dgr
- iodata,wn-ac1600dgr
- iodata,wn-ac1600dgr2
- iodata,wn-ag300dgr
- nec,wg800hp
- nec,wg1200cr
- trendnet,tew-823dru
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-08-15 13:13:33 +00:00
|
|
|
label-mac-device = &wifi;
|
2018-11-26 22:28:00 +00:00
|
|
|
};
|
|
|
|
|
2019-11-19 14:47:11 +00:00
|
|
|
leds {
|
2018-11-26 22:28:00 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
led_globe: globe {
|
2018-11-26 22:28:00 +00:00
|
|
|
label = "ubnt:green:globe";
|
|
|
|
gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
power {
|
|
|
|
label = "ubnt:green:power";
|
|
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy {
|
2019-05-09 13:31:05 +00:00
|
|
|
status = "okay";
|
2018-11-26 22:28:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&usb {
|
2019-05-09 13:31:05 +00:00
|
|
|
status = "okay";
|
2018-11-26 22:28:00 +00:00
|
|
|
};
|