ramips: mt7628: use nvmem-layout
[openwrt/staging/hauke.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 = <10000000>;
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 nvmem-layout {
41 compatible = "fixed-layout";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 macaddr_config_2008: macaddr@2008 {
46 reg = <0x2008 0x6>;
47 };
48 };
49 };
50
51 radio: partition@7f0000 {
52 label = "radio";
53 reg = <0x7f0000 0x10000>;
54 read-only;
55
56 nvmem-layout {
57 compatible = "fixed-layout";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 eeprom_radio_0: eeprom@0 {
62 reg = <0x0 0x400>;
63 };
64
65 eeprom_radio_8000: eeprom@8000 {
66 reg = <0x8000 0x200>;
67 };
68 };
69 };
70 };
71 };
72 };
73
74 &wlan5g {
75 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008>;
76 nvmem-cell-names = "eeprom", "mac-address";
77 mac-address-increment = <(-2)>;
78 };
79
80 &wmac {
81 nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008>;
82 nvmem-cell-names = "eeprom", "mac-address";
83 mac-address-increment = <(-1)>;
84 };
85
86 &ethernet {
87 nvmem-cells = <&macaddr_config_2008>;
88 nvmem-cell-names = "mac-address";
89 };