63c4f5f6b24bd250d0d2f8579f998ebfc0073fdc
[openwrt/staging/hauke.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 compatible = "nvmem-cells";
85 label = "factory";
86 reg = <0x100000 0x40000>;
87 #address-cells = <1>;
88 #size-cells = <1>;
89 read-only;
90
91 eeprom_factory_0: eeprom@0 {
92 reg = <0x0 0x400>;
93 };
94
95 eeprom_factory_8000: eeprom@8000 {
96 reg = <0x8000 0x200>;
97 };
98 };
99
100 partition@140000 {
101 label = "kernel";
102 reg = <0x140000 0x400000>;
103 };
104
105 ubiconcat0: partition@540000 {
106 label = "ubiconcat0";
107 reg = <0x540000 0x1c80000>;
108 };
109
110 partition@21c0000 {
111 label = "bdinfo";
112 reg = <0x21c0000 0x80000>;
113 read-only;
114 };
115
116 ubiconcat1: partition@2240000 {
117 label = "ubiconcat1";
118 reg = <0x2240000 0x5d40000>;
119 };
120 };
121 };
122
123 &pcie {
124 status = "okay";
125 };
126
127 &pcie0 {
128 mt76@0,0 {
129 reg = <0x0000 0 0 0 0>;
130 nvmem-cells = <&eeprom_factory_0>;
131 nvmem-cell-names = "eeprom";
132 ieee80211-freq-limit = <2400000 2500000>;
133 };
134 };
135
136 &pcie1 {
137 mt76@0,0 {
138 reg = <0x0000 0 0 0 0>;
139 nvmem-cells = <&eeprom_factory_8000>;
140 nvmem-cell-names = "eeprom";
141 ieee80211-freq-limit = <5000000 6000000>;
142 };
143 };
144
145 &gmac1 {
146 status = "okay";
147 label = "wan";
148 phy-handle = <&ethphy4>;
149 };
150
151 &mdio {
152 ethphy4: ethernet-phy@4 {
153 reg = <4>;
154 };
155 };
156
157 &switch0 {
158 ports {
159 port@1 {
160 status = "okay";
161 label = "lan1";
162 };
163
164 port@2 {
165 status = "okay";
166 label = "lan2";
167 };
168
169 port@3 {
170 status = "okay";
171 label = "lan3";
172 };
173 };
174 };
175
176 &state_default {
177 gpio {
178 groups = "uart3", "jtag";
179 function = "gpio";
180 };
181 };