ramips: sercomm s1500: enable wlan LEDs activity blinking
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_hiwifi_hc5962.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
8 model = "HiWiFi HC5962";
9
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status: status {
25 label = "white:status";
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 };
28
29 led_system: system {
30 label = "red:system";
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
32 panic-indicator;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45
46 ubi-concat {
47 compatible = "mtd-concat";
48 devices = <&ubiconcat0 &ubiconcat1>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "ubi";
57 reg = <0x0 0x79c0000>;
58 };
59 };
60 };
61 };
62
63 &nand {
64 status = "okay";
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x80000>;
74 read-only;
75 };
76
77 partition@80000 {
78 label = "debug";
79 reg = <0x80000 0x80000>;
80 read-only;
81 };
82
83 factory: partition@100000 {
84 label = "factory";
85 reg = <0x100000 0x40000>;
86 read-only;
87
88 nvmem-layout {
89 compatible = "fixed-layout";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 eeprom_factory_0: eeprom@0 {
94 reg = <0x0 0x400>;
95 };
96
97 eeprom_factory_8000: eeprom@8000 {
98 reg = <0x8000 0x200>;
99 };
100 };
101 };
102
103 partition@140000 {
104 label = "kernel";
105 reg = <0x140000 0x400000>;
106 };
107
108 ubiconcat0: partition@540000 {
109 label = "ubiconcat0";
110 reg = <0x540000 0x1c80000>;
111 };
112
113 partition@21c0000 {
114 label = "bdinfo";
115 reg = <0x21c0000 0x80000>;
116 read-only;
117 };
118
119 ubiconcat1: partition@2240000 {
120 label = "ubiconcat1";
121 reg = <0x2240000 0x5d40000>;
122 };
123 };
124 };
125
126 &pcie {
127 status = "okay";
128 };
129
130 &pcie0 {
131 mt76@0,0 {
132 reg = <0x0000 0 0 0 0>;
133 nvmem-cells = <&eeprom_factory_0>;
134 nvmem-cell-names = "eeprom";
135 ieee80211-freq-limit = <2400000 2500000>;
136 };
137 };
138
139 &pcie1 {
140 mt76@0,0 {
141 reg = <0x0000 0 0 0 0>;
142 nvmem-cells = <&eeprom_factory_8000>;
143 nvmem-cell-names = "eeprom";
144 ieee80211-freq-limit = <5000000 6000000>;
145 };
146 };
147
148 &gmac1 {
149 status = "okay";
150 label = "wan";
151 phy-handle = <&ethphy4>;
152 };
153
154 &mdio {
155 ethphy4: ethernet-phy@4 {
156 reg = <4>;
157 };
158 };
159
160 &switch0 {
161 ports {
162 port@1 {
163 status = "okay";
164 label = "lan1";
165 };
166
167 port@2 {
168 status = "okay";
169 label = "lan2";
170 };
171
172 port@3 {
173 status = "okay";
174 label = "lan3";
175 };
176 };
177 };
178
179 &state_default {
180 gpio {
181 groups = "uart3", "jtag";
182 function = "gpio";
183 };
184 };