ramips: Unielec u7621-01: remove invalid led status
[openwrt/openwrt.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 &mdio {
116 ethphy0: ethernet-phy@0 {
117 reg = <0>;
118 };
119 };
120
121 &gmac0 {
122 nvmem-cells = <&macaddr_factory_e000>;
123 nvmem-cell-names = "mac-address";
124 };
125
126 &gmac1 {
127 status = "okay";
128 label = "wan";
129 phy-handle = <&ethphy0>;
130
131 nvmem-cells = <&macaddr_factory_e006>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &switch0 {
136 ports {
137 port@1 {
138 status = "okay";
139 label = "lan1";
140 };
141
142 port@2 {
143 status = "okay";
144 label = "lan2";
145 };
146
147 port@3 {
148 status = "okay";
149 label = "lan3";
150 };
151
152 port@4 {
153 status = "okay";
154 label = "lan4";
155 };
156 };
157 };
158
159 &pcie {
160 status = "okay";
161 };
162
163 &pcie0 {
164 wifi@0,0 {
165 compatible = "mediatek,mt76";
166 reg = <0x0000 0 0 0 0>;
167 nvmem-cells = <&eeprom_factory_0>;
168 nvmem-cell-names = "eeprom";
169 ieee80211-freq-limit = <2400000 2500000>;
170 };
171 };
172
173 &pcie1 {
174 wifi@0,0 {
175 compatible = "mediatek,mt76";
176 reg = <0x0000 0 0 0 0>;
177 nvmem-cells = <&eeprom_factory_8000>;
178 nvmem-cell-names = "eeprom";
179 ieee80211-freq-limit = <5000000 6000000>;
180 };
181 };