ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.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 = "re6500:orange:wifi";
22 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
23 };
24
25 led_power: power {
26 label = "re6500: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 label = "factory";
75 reg = <0x40000 0x10000>;
76 read-only;
77 };
78
79 partition@50000 {
80 compatible = "denx,uimage";
81 label = "firmware";
82 reg = <0x50000 0x7b0000>;
83 };
84 };
85 };
86 };
87
88 &state_default {
89 gpio {
90 groups = "i2c", "uart2";
91 function = "gpio";
92 };
93 };
94
95 &pcie {
96 status = "okay";
97 };
98
99 &pcie0 {
100 mt76@0,0 {
101 reg = <0x0000 0 0 0 0>;
102 mediatek,mtd-eeprom = <&factory 0x0000>;
103 ieee80211-freq-limit = <5000000 6000000>;
104 };
105 };
106
107 &pcie1 {
108 mt76@0,0 {
109 reg = <0x0000 0 0 0 0>;
110 mediatek,mtd-eeprom = <&factory 0x8000>;
111 ieee80211-freq-limit = <2400000 2500000>;
112 };
113 };
114
115 &gmac0 {
116 mtd-mac-address = <&factory 0x2e>;
117 };
118
119 &switch0 {
120 ports {
121 port@0 {
122 status = "okay";
123 label = "lan1";
124 };
125
126 port@1 {
127 status = "okay";
128 label = "lan2";
129 };
130
131 port@2 {
132 status = "okay";
133 label = "lan3";
134 };
135
136 port@3 {
137 status = "okay";
138 label = "lan4";
139 };
140 };
141 };
142
143 &xhci {
144 status = "disabled";
145 };