mediatek: add missing ';;' in shell switch case block
[openwrt/staging/pepe2k.git] / target / linux / ramips / dts / mt7621_snr_snr-cpe-me2-lite.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "mt7621.dtsi"
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7
8 / {
9 compatible = "snr,snr-cpe-me2-lite", "mediatek,mt7621-soc";
10 model = "SNR-CPE-ME2-Lite";
11
12 leds {
13 compatible = "gpio-leds";
14
15 led_sys: led-0 {
16 color = <LED_COLOR_ID_GREEN>;
17 function = LED_FUNCTION_STATUS;
18 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
19 };
20
21 led_vpn: led-1 {
22 color = <LED_COLOR_ID_GREEN>;
23 function = LED_FUNCTION_STATUS;
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 reset {
32 label = "reset";
33 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &state_default {
40 gpio {
41 groups = "jtag", "wdt";
42 function = "gpio";
43 };
44 };
45
46 &gdma {
47 status = "okay";
48 };
49
50 &spi0 {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <104000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "config";
71 reg = <0x30000 0x10000>;
72 };
73
74 partition@40000 {
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 eeprom_factory_0: eeprom@0 {
85 reg = <0x0 0x400>;
86 };
87
88 eeprom_factory_8000: eeprom@8000 {
89 reg = <0x8000 0x4da8>;
90 };
91
92 macaddr_factory_e000: macaddr@e000 {
93 reg = <0xe000 0x6>;
94 };
95
96 macaddr_factory_e006: macaddr@e006 {
97 reg = <0xe006 0x6>;
98 };
99 };
100 };
101
102 partition@50000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x50000 0xfb0000>;
106 };
107 };
108 };
109 };
110
111 &sdhci {
112 status = "okay";
113 };
114
115 &ethphy0 {
116 /delete-property/ interrupts;
117 };
118
119 &gmac0 {
120 nvmem-cells = <&macaddr_factory_e000>;
121 nvmem-cell-names = "mac-address";
122 };
123
124 &gmac1 {
125 status = "okay";
126 label = "wan";
127 phy-handle = <&ethphy0>;
128
129 nvmem-cells = <&macaddr_factory_e006>;
130 nvmem-cell-names = "mac-address";
131 };
132
133 &switch0 {
134 ports {
135 port@1 {
136 status = "okay";
137 label = "lan1";
138 };
139
140 port@2 {
141 status = "okay";
142 label = "lan2";
143 };
144
145 port@3 {
146 status = "okay";
147 label = "lan3";
148 };
149
150 port@4 {
151 status = "okay";
152 label = "lan4";
153 };
154 };
155 };
156
157 &pcie {
158 status = "okay";
159 };
160
161 &pcie0 {
162 wifi@0,0 {
163 compatible = "mediatek,mt76";
164 reg = <0x0000 0 0 0 0>;
165 nvmem-cells = <&eeprom_factory_0>;
166 nvmem-cell-names = "eeprom";
167 ieee80211-freq-limit = <2400000 2500000>;
168 };
169 };
170
171 &pcie1 {
172 wifi@0,0 {
173 compatible = "mediatek,mt76";
174 reg = <0x0000 0 0 0 0>;
175 nvmem-cells = <&eeprom_factory_8000>;
176 nvmem-cell-names = "eeprom";
177 ieee80211-freq-limit = <5000000 6000000>;
178 };
179 };