2018-05-07 08:10:49 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
2018-05-06 08:20:11 +00:00
|
|
|
/dts-v1/;
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
#include "ar7242_buffalo_wzr-bhr.dtsi"
|
2018-05-06 08:20:11 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "buffalo,wzr-hp-g450h", "qca,ar7242";
|
2018-09-11 11:13:17 +00:00
|
|
|
model = "Buffalo WZR-HP-G450H/WZR-450HP";
|
2018-05-06 08:20:11 +00:00
|
|
|
|
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
|
|
|
aliases {
|
|
|
|
label-mac-device = ð0;
|
|
|
|
};
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
ath9k-leds {
|
2018-05-06 08:20:11 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
led_movie_engine {
|
|
|
|
label = "buffalo:blue:movie_engine";
|
|
|
|
gpios = <&ath9k 13 GPIO_ACTIVE_LOW>;
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
router {
|
|
|
|
label = "buffalo:green:router";
|
|
|
|
gpios = <&ath9k 14 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
wireless {
|
|
|
|
label = "buffalo:green:wireless";
|
|
|
|
gpios = <&ath9k 15 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy0tpt";
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
&keys {
|
|
|
|
movie_engine {
|
|
|
|
label = "movie_engine";
|
|
|
|
linux,code = <BTN_6>;
|
|
|
|
linux,input-type = <EV_SW>;
|
|
|
|
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
debounce-interval = <60>;
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
aoss {
|
|
|
|
label = "aoss";
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
router_off {
|
|
|
|
label = "router_off";
|
|
|
|
linux,code = <BTN_5>;
|
|
|
|
linux,input-type = <EV_SW>;
|
|
|
|
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
&leds {
|
|
|
|
sec_vpn {
|
|
|
|
label = "buffalo:orange:security";
|
|
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2018-09-27 03:47:43 +00:00
|
|
|
};
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
ð0 {
|
|
|
|
mtd-mac-address = <&art 0x1002>;
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
|
2018-09-11 11:13:17 +00:00
|
|
|
ath9k: wifi@0,0 {
|
|
|
|
compatible = "pci168c,0030";
|
2018-05-06 08:20:11 +00:00
|
|
|
reg = <0x0000 0 0 0 0>;
|
2019-06-05 13:59:30 +00:00
|
|
|
mtd-mac-address = <&art 0x1002>;
|
2018-05-06 08:20:11 +00:00
|
|
|
qca,no-eeprom;
|
2018-09-11 11:13:17 +00:00
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
2018-05-06 08:20:11 +00:00
|
|
|
};
|
|
|
|
};
|