ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_mercury_mac1200r-v2.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "mercury,mac1200r-v2", "mediatek,mt7628an-soc";
9 model = "Mercury MAC1200R v2";
10
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_status: status {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
25 };
26 };
27 };
28
29 &spi0 {
30 status = "okay";
31
32 flash@0 {
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <10000000>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x1d800>;
45 };
46
47 partition@1d800 {
48 label = "factory_info";
49 reg = <0x1d800 0x800>;
50 read-only;
51
52 nvmem-layout {
53 compatible = "fixed-layout";
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 eeprom_factory_0: eeprom@0 {
58 reg = <0x0 0x400>;
59 };
60
61 macaddr_factory_d: macaddr@d {
62 reg = <0xd 0x6>;
63 };
64 };
65 };
66
67 partition@1e000 {
68 label = "art";
69 reg = <0x1e000 0x2000>;
70 read-only;
71
72 nvmem-layout {
73 compatible = "fixed-layout";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 eeprom_art_1000: eeprom@1000 {
78 reg = <0x1000 0x200>;
79 };
80 };
81 };
82
83 partition@20000 {
84 label = "config";
85 reg = <0x20000 0x10000>;
86 };
87
88 partition@30000 {
89 label = "u-boot2";
90 reg = <0x30000 0x10000>;
91 };
92
93 partition@40000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x40000 0x7c0000>;
97 };
98 };
99 };
100 };
101
102 &ethernet {
103 pinctrl-names = "default";
104 nvmem-cells = <&macaddr_factory_d>;
105 nvmem-cell-names = "mac-address";
106 };
107
108 &esw {
109 mediatek,portmap = <0x2f>;
110 };
111
112 &wmac {
113 status = "okay";
114
115 nvmem-cells = <&eeprom_factory_0>;
116 nvmem-cell-names = "eeprom";
117 };
118
119 &pcie {
120 status = "okay";
121 };
122
123 &pcie0 {
124 mt76@0,0 {
125 reg = <0x0000 0 0 0 0>;
126 nvmem-cells = <&eeprom_art_1000>;
127 nvmem-cell-names = "eeprom";
128 ieee80211-freq-limit = <5000000 6000000>;
129 };
130 };