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