mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
abc17bf306
Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
42 lines
648 B
Plaintext
42 lines
648 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "qca9533_tplink_cpexxx.dtsi"
|
|
|
|
/ {
|
|
compatible = "tplink,cpe220-v3", "qca,qca9533";
|
|
model = "TP-Link CPE220 v3";
|
|
};
|
|
|
|
&leds {
|
|
lan0 {
|
|
label = "green:lan0";
|
|
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
lan1 {
|
|
label = "green:lan1";
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
ð1 {
|
|
nvmem-cells = <&macaddr_info_8>;
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
gmac-config {
|
|
device = <&gmac>;
|
|
switch-phy-swap = <0>;
|
|
switch-only-mode = <1>;
|
|
};
|
|
};
|
|
|
|
&info {
|
|
compatible = "nvmem-cells";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_info_8: macaddr@8 {
|
|
reg = <0x8 0x6>;
|
|
};
|
|
};
|