5b295a06a7352774ed17afde269a7b887f6bb8d7
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_linksys_re6500.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "linksys,re6500", "mediatek,mt7621-soc";
8 model = "Linksys RE6500";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wifi {
21 label = "orange:wifi";
22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23 };
24
25 led_power: power {
26 label = "white:power";
27 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 wps {
35 label = "wps";
36 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
38 };
39
40 reset {
41 label = "reset";
42 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <10000000>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x10000>;
70 read-only;
71 };
72
73 factory: partition@40000 {
74 compatible = "nvmem-cells";
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 #address-cells = <1>;
78 #size-cells = <1>;
79 read-only;
80
81 eeprom_factory_0: eeprom@0 {
82 reg = <0x0 0x200>;
83 };
84
85 eeprom_factory_8000: eeprom@8000 {
86 reg = <0x8000 0x200>;
87 };
88
89 macaddr_factory_2e: macaddr@2e {
90 reg = <0x2e 0x6>;
91 };
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0x7b0000>;
98 };
99 };
100 };
101 };
102
103 &state_default {
104 gpio {
105 groups = "i2c", "uart2";
106 function = "gpio";
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 nvmem-cells = <&eeprom_factory_0>;
118 nvmem-cell-names = "eeprom";
119 ieee80211-freq-limit = <5000000 6000000>;
120 };
121 };
122
123 &pcie1 {
124 mt76@0,0 {
125 reg = <0x0000 0 0 0 0>;
126 nvmem-cells = <&eeprom_factory_8000>;
127 nvmem-cell-names = "eeprom";
128 ieee80211-freq-limit = <2400000 2500000>;
129 };
130 };
131
132 &gmac0 {
133 nvmem-cells = <&macaddr_factory_2e>;
134 nvmem-cell-names = "mac-address";
135 };
136
137 &gmac1 {
138 status = "okay";
139 label = "lan1";
140 phy-handle = <&ethphy0>;
141
142 nvmem-cells = <&macaddr_factory_2e>;
143 nvmem-cell-names = "mac-address";
144 };
145
146 &mdio {
147 ethphy0: ethernet-phy@0 {
148 reg = <0>;
149 };
150 };
151
152 &switch0 {
153 ports {
154 port@1 {
155 status = "okay";
156 label = "lan2";
157 };
158
159 port@2 {
160 status = "okay";
161 label = "lan3";
162 };
163
164 port@3 {
165 status = "okay";
166 label = "lan4";
167 };
168 };
169 };
170
171 &xhci {
172 status = "disabled";
173 };