mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
d284e6ef0f
Rework patch 681-NET-add-mtd-mac-address-support to implement only the function to read the mac-address from mtd. Generalize mtd-mac-address-increment function so it can be applied to any source of of_get_mac_address. Rename any mtd-mac-address-increment to mac-address-increment. Rename any mtd-mac-address-increment-byte to mac-address-increment-byte. This should make simplify the conversion of target to nvmem implementation. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
30 lines
452 B
Plaintext
30 lines
452 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7621_asiarf_ap7621.dtsi"
|
|
|
|
/ {
|
|
compatible = "asiarf,ap7621-nv1", "mediatek,mt7621-soc";
|
|
model = "AsiaRF AP7621-NV1";
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
port@0 {
|
|
status = "okay";
|
|
label = "wan";
|
|
mtd-mac-address = <&factory 0xe000>;
|
|
mac-address-increment = <1>;
|
|
};
|
|
|
|
port@2 {
|
|
status = "okay";
|
|
label = "lan1";
|
|
};
|
|
|
|
port@3 {
|
|
status = "okay";
|
|
label = "lan2";
|
|
};
|
|
};
|
|
};
|