ramips: convert MT7610 and MT7612 EEPROM to NVMEM format for MT7621
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_re305-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_tplink_re305.dtsi"
4
5 / {
6 compatible = "tplink,re305-v1", "mediatek,mt7628an-soc";
7 model = "TP-Link RE305 v1";
8 };
9
10 &spi0 {
11 status = "okay";
12
13 flash@0 {
14 compatible = "jedec,spi-nor";
15 reg = <0>;
16 spi-max-frequency = <50000000>;
17
18 partitions {
19 compatible = "fixed-partitions";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x0 0x20000>;
26 read-only;
27 };
28
29 partition@20000 {
30 compatible = "tplink,firmware";
31 label = "firmware";
32 reg = <0x20000 0x5e0000>;
33 };
34
35 config: partition@600000 {
36 label = "config";
37 reg = <0x600000 0x50000>;
38 read-only;
39 };
40
41 /*
42 The flash space between 0x650000 and 0x7f0000 is blank in the
43 stock firmware so it is left out as well.
44 */
45
46 radio: partition@7f0000 {
47 label = "radio";
48 reg = <0x7f0000 0x10000>;
49 read-only;
50 };
51 };
52 };
53 };
54
55 &wlan5g {
56 mediatek,mtd-eeprom = <&radio 0x8000>;
57
58 nvmem-cells = <&macaddr_config_10008>;
59 nvmem-cell-names = "mac-address";
60 mac-address-increment = <2>;
61 };
62
63 &wmac {
64 mediatek,mtd-eeprom = <&radio 0x0>;
65
66 nvmem-cells = <&macaddr_config_10008>;
67 nvmem-cell-names = "mac-address";
68 mac-address-increment = <1>;
69 };
70
71 &ethernet {
72 nvmem-cells = <&macaddr_config_10008>;
73 nvmem-cell-names = "mac-address";
74 };
75
76 &config {
77 compatible = "nvmem-cells";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 macaddr_config_10008: macaddr@10008 {
82 reg = <0x10008 0x6>;
83 };
84 };