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>
45 lines
671 B
Plaintext
45 lines
671 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "ar7240_tplink.dtsi"
|
|
|
|
&leds {
|
|
lan1 {
|
|
label = "green:lan1";
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lan2 {
|
|
label = "green:lan2";
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lan3 {
|
|
label = "green:lan3";
|
|
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lan4 {
|
|
label = "green:lan4";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
wan {
|
|
label = "green:wan";
|
|
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
mtd-mac-address = <&uboot 0x1fc00>;
|
|
mac-address-increment = <(-1)>;
|
|
};
|
|
|
|
ð1 {
|
|
mtd-mac-address = <&uboot 0x1fc00>;
|
|
mac-address-increment = <1>;
|
|
};
|
|
|
|
&ath9k {
|
|
compatible = "pci168c,002b";
|
|
};
|