ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-wg2626.dts
1 #include "mt7621.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 = "zbtlink,zbt-wg2626", "mediatek,mt7621-soc";
9 model = "Zbtlink ZBT-WG2626";
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 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_status: status {
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &i2c {
44 status = "okay";
45 };
46
47 &sdhci {
48 status = "okay";
49 };
50
51 &spi0 {
52 status = "okay";
53
54 flash@0 {
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <10000000>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80
81 nvmem-layout {
82 compatible = "fixed-layout";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 eeprom_factory_0: eeprom@0 {
87 reg = <0x0 0x200>;
88 };
89
90 eeprom_factory_8000: eeprom@8000 {
91 reg = <0x8000 0x200>;
92 };
93
94 macaddr_factory_e000: macaddr@e000 {
95 compatible = "mac-base";
96 reg = <0xe000 0x6>;
97 #nvmem-cell-cells = <1>;
98 };
99 };
100 };
101
102 partition@50000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x50000 0xfb0000>;
106 };
107 };
108 };
109 };
110
111 &pcie {
112 status = "okay";
113
114 reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
115 <&gpio 8 GPIO_ACTIVE_LOW>;
116 };
117
118 &pcie0 {
119 mt76@0,0 {
120 reg = <0x0000 0 0 0 0>;
121 nvmem-cells = <&eeprom_factory_8000>;
122 nvmem-cell-names = "eeprom";
123 ieee80211-freq-limit = <5000000 6000000>;
124 };
125 };
126
127 &pcie1 {
128 mt76@0,0 {
129 reg = <0x0000 0 0 0 0>;
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 ieee80211-freq-limit = <2400000 2500000>;
133 };
134 };
135
136 &ethernet {
137 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
138 };
139
140 &gmac0 {
141 nvmem-cells = <&macaddr_factory_e000 0>;
142 nvmem-cell-names = "mac-address";
143 };
144
145 &switch0 {
146 ports {
147 port@0 {
148 status = "okay";
149 label = "lan4";
150 };
151
152 port@1 {
153 status = "okay";
154 label = "lan3";
155 };
156
157 port@2 {
158 status = "okay";
159 label = "lan2";
160 };
161
162 port@3 {
163 status = "okay";
164 label = "lan1";
165 };
166
167 port@4 {
168 status = "okay";
169 label = "wan";
170 nvmem-cells = <&macaddr_factory_e000 1>;
171 nvmem-cell-names = "mac-address";
172 };
173 };
174 };
175
176 &state_default {
177 gpio {
178 groups = "wdt", "rgmii2";
179 function = "gpio";
180 };
181 };