ramips: convert mtd-mac-address to nvmem implementation
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_asiarf_ap7621-001.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_asiarf_ap7621.dtsi"
4
5 / {
6 compatible = "asiarf,ap7621-001", "mediatek,mt7621-soc";
7 model = "AsiaRF AP7621-001";
8 };
9
10 &switch0 {
11 ports {
12 port@0 {
13 status = "okay";
14 label = "lan";
15 };
16
17 port@4 {
18 status = "okay";
19 label = "wan";
20 nvmem-cells = <&macaddr_factory_e000>;
21 nvmem-cell-names = "mac-address";
22 mac-address-increment = <1>;
23 };
24 };
25 };
26
27 &factory {
28 compatible = "nvmem-cells";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 macaddr_factory_e000: macaddr@e000 {
33 reg = <0xe000 0x6>;
34 };
35 };