ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tplink_re305-v3.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-v3", "mediatek,mt7628an-soc";
7 model = "TP-Link RE305 v3";
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 0x7a0000>;
33 };
34
35 config: partition@7c0000 {
36 label = "config";
37 reg = <0x7c0000 0x30000>;
38 read-only;
39 };
40
41 radio: partition@7f0000 {
42 label = "radio";
43 reg = <0x7f0000 0x10000>;
44 read-only;
45 };
46 };
47 };
48 };
49
50 &wlan5g {
51 mediatek,mtd-eeprom = <&radio 0x8000>;
52
53 nvmem-cells = <&macaddr_config_2008>;
54 nvmem-cell-names = "mac-address";
55 mac-address-increment = <(-2)>;
56 };
57
58 &wmac {
59 mediatek,mtd-eeprom = <&radio 0x0>;
60
61 nvmem-cells = <&macaddr_config_2008>;
62 nvmem-cell-names = "mac-address";
63 mac-address-increment = <(-1)>;
64 };
65
66 &ethernet {
67 nvmem-cells = <&macaddr_config_2008>;
68 nvmem-cell-names = "mac-address";
69 };
70
71 &config {
72 compatible = "nvmem-cells";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 macaddr_config_2008: macaddr@2008 {
77 reg = <0x2008 0x6>;
78 };
79 };