2019-12-23 21:48:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
2021-03-19 19:20:11 +00:00
|
|
|
#include "mt7628an_tplink_re305.dtsi"
|
2019-12-23 21:48:06 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
|
|
|
|
model = "TP-Link RE305 v1";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x20000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@20000 {
|
|
|
|
compatible = "tplink,firmware";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x20000 0x5e0000>;
|
|
|
|
};
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@600000 {
|
2019-12-23 21:48:06 +00:00
|
|
|
label = "config";
|
|
|
|
reg = <0x600000 0x50000>;
|
|
|
|
read-only;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-24 02:31:55 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_config_10008: macaddr@10008 {
|
2023-11-24 02:59:35 +00:00
|
|
|
compatible = "mac-base";
|
2023-11-24 02:31:55 +00:00
|
|
|
reg = <0x10008 0x6>;
|
2023-11-24 02:59:35 +00:00
|
|
|
#nvmem-cell-cells = <1>;
|
2023-11-24 02:31:55 +00:00
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2019-12-23 21:48:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
The flash space between 0x650000 and 0x7f0000 is blank in the
|
|
|
|
stock firmware so it is left out as well.
|
|
|
|
*/
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@7f0000 {
|
2019-12-23 21:48:06 +00:00
|
|
|
label = "radio";
|
|
|
|
reg = <0x7f0000 0x10000>;
|
|
|
|
read-only;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-24 02:31:55 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
eeprom_radio_0: eeprom@0 {
|
|
|
|
reg = <0x0 0x400>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-24 02:31:55 +00:00
|
|
|
eeprom_radio_8000: eeprom@8000 {
|
|
|
|
reg = <0x8000 0x200>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2019-12-23 21:48:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-03-19 19:20:11 +00:00
|
|
|
&wlan5g {
|
2023-11-24 02:59:35 +00:00
|
|
|
nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_10008 2>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2019-12-23 21:48:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
2023-11-24 02:59:35 +00:00
|
|
|
nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_10008 1>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cell-names = "eeprom", "mac-address";
|
2019-12-23 21:48:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
2023-11-24 02:59:35 +00:00
|
|
|
nvmem-cells = <&macaddr_config_10008 0>;
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
};
|