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