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