mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +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>
50 lines
742 B
Plaintext
50 lines
742 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar9344_qxwlan_e750x.dtsi"
|
|
|
|
/ {
|
|
model = "Qxwlan E750A v4 16M";
|
|
compatible = "qxwlan,e750a-v4-16m", "qca,ar9344";
|
|
};
|
|
|
|
&leds {
|
|
lan {
|
|
label = "green:lan";
|
|
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wan {
|
|
label = "green:wan";
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
phy-handle = <&swphy4>;
|
|
|
|
mtd-mac-address = <&pridata 0x400>;
|
|
mac-address-increment = <1>;
|
|
};
|
|
|
|
ð1 {
|
|
status = "okay";
|
|
|
|
mtd-mac-address = <&pridata 0x400>;
|
|
|
|
gmac-config {
|
|
device = <&gmac>;
|
|
switch-phy-swap = <0>;
|
|
switch-only-mode = <1>;
|
|
};
|
|
};
|
|
|
|
&partitions {
|
|
partition@70000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x070000 0xf90000>;
|
|
};
|
|
};
|