ramips: fix MikroTik 750Gr3 ports MAC addresses
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_linksys_re6500.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 = "linksys,re6500", "mediatek,mt7621-soc";
10 model = "Linksys RE6500";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 wifi {
27 label = "re6500:orange:wifi";
28 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
29 };
30
31 led_power: power {
32 label = "re6500:white:power";
33 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 wps {
41 label = "wps";
42 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_WPS_BUTTON>;
44 };
45
46 reset {
47 label = "reset";
48 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &spi0 {
55 status = "okay";
56
57 m25p80@0 {
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <10000000>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x0 0x30000>;
70 read-only;
71 };
72
73 partition@30000 {
74 label = "u-boot-env";
75 reg = <0x30000 0x10000>;
76 read-only;
77 };
78
79 factory: partition@40000 {
80 label = "factory";
81 reg = <0x40000 0x10000>;
82 read-only;
83 };
84
85 partition@50000 {
86 compatible = "denx,uimage";
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92 };
93
94 &state_default {
95 gpio {
96 groups = "i2c", "uart2";
97 function = "gpio";
98 };
99 };
100
101 &pcie {
102 status = "okay";
103 };
104
105 &pcie0 {
106 mt76@0,0 {
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x0000>;
109 ieee80211-freq-limit = <5000000 6000000>;
110 };
111 };
112
113 &pcie1 {
114 mt76@0,0 {
115 reg = <0x0000 0 0 0 0>;
116 mediatek,mtd-eeprom = <&factory 0x8000>;
117 ieee80211-freq-limit = <2400000 2500000>;
118 };
119 };
120
121 &gmac0 {
122 mtd-mac-address = <&factory 0x2e>;
123 };
124
125 &switch0 {
126 ports {
127 port@0 {
128 status = "okay";
129 label = "lan1";
130 };
131
132 port@1 {
133 status = "okay";
134 label = "lan2";
135 };
136
137 port@2 {
138 status = "okay";
139 label = "lan3";
140 };
141
142 port@3 {
143 status = "okay";
144 label = "lan4";
145 };
146 };
147 };
148
149 &xhci {
150 status = "disabled";
151 };