2018-06-27 12:33:40 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include "qca9563_ubnt_unifiac.dtsi"
|
|
|
|
|
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-06-27 12:33:40 +00:00
|
|
|
&mdio0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy4: ethernet-phy@4 {
|
|
|
|
phy-mode = "sgmii";
|
|
|
|
reg = <4>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2021-04-02 21:47:31 +00:00
|
|
|
nvmem-cells = <&macaddr_art_0>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2020-03-14 23:01:38 +00:00
|
|
|
phy-mode = "sgmii";
|
2018-06-27 12:33:40 +00:00
|
|
|
phy-handle = <&phy4>;
|
2021-04-14 21:58:25 +00:00
|
|
|
|
|
|
|
pll-data = <0x03000000 0x00000101 0x00001313>;
|
2018-06-27 12:33:40 +00:00
|
|
|
};
|