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