ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re2x0-v1.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &ethernet;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600n8";
15 };
16
17 keys: keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32 };
33
34 &spi0 {
35 status = "okay";
36
37 flash@0 {
38 compatible = "jedec,spi-nor";
39 reg = <0>;
40 spi-max-frequency = <50000000>;
41
42 partitions {
43 compatible = "fixed-partitions";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 partition@0 {
48 label = "u-boot";
49 reg = <0x0 0x20000>;
50 read-only;
51
52 nvmem-layout {
53 compatible = "fixed-layout";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 macaddr_uboot_1fc00: macaddr@1fc00 {
58 compatible = "mac-base";
59 reg = <0x1fc00 0x6>;
60 #nvmem-cell-cells = <1>;
61 };
62 };
63 };
64
65 partition@20000 {
66 compatible = "tplink,firmware";
67 label = "firmware";
68 reg = <0x20000 0x7c0000>;
69 };
70
71 partition@7e0000 {
72 label = "config";
73 reg = <0x7e0000 0x10000>;
74 read-only;
75 };
76
77 partition@7f0000 {
78 label = "radio";
79 reg = <0x7f0000 0x10000>;
80 read-only;
81
82 nvmem-layout {
83 compatible = "fixed-layout";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 eeprom_radio_0: eeprom@0 {
88 reg = <0x0 0x200>;
89 };
90
91 eeprom_radio_8000: eeprom@8000 {
92 reg = <0x8000 0x200>;
93 };
94 };
95 };
96 };
97 };
98 };
99
100 &ethernet {
101 nvmem-cells = <&macaddr_uboot_1fc00 0>;
102 nvmem-cell-names = "mac-address";
103 };
104
105 &wmac {
106 nvmem-cells = <&eeprom_radio_0>, <&macaddr_uboot_1fc00 0>;
107 nvmem-cell-names = "eeprom", "mac-address";
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 ieee80211-freq-limit = <5000000 6000000>;
118 nvmem-cells = <&eeprom_radio_8000>, <&macaddr_uboot_1fc00 2>;
119 nvmem-cell-names = "eeprom", "mac-address";
120 };
121 };