ramips: move partitions into partition table node
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WCR-1166DS.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "buffalo,wcr-1166ds", "mediatek,mt7628an-soc";
10 model = "Buffalo WCR-1166DS";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 aoss {
21 label = "aoss";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 ap {
27 label = "ap";
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 linux,code = <BTN_0>;
30 linux,input-type = <EV_SW>;
31 };
32
33 reset {
34 label = "reset";
35 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39
40 gpio-leds {
41 compatible = "gpio-leds";
42
43 router_o {
44 label = "wcr-1166ds:orange:router";
45 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
46 };
47
48 router_g {
49 label = "wcr-1166ds:green:router";
50 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
51 };
52
53 internet_o {
54 label = "wcr-1166ds:orange:internet";
55 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
56 };
57
58 internet_g {
59 label = "wcr-1166ds:green:internet";
60 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
61 };
62
63 wireless_o {
64 label = "wcr-1166ds:orange:wireless";
65 gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
66 };
67
68 wireless_g {
69 label = "wcr-1166ds:green:wireless";
70 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
71 };
72
73 diag {
74 label = "wcr-1166ds:orange:diag";
75 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
76 };
77
78 led_power: power {
79 label = "wcr-1166ds:green:power";
80 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
81 };
82 };
83 };
84
85 &ehci {
86 status = "disabled";
87 };
88
89 &esw {
90 mediatek,portmap = <0x2f>;
91 mediatek,portdisable = <0x27>;
92 };
93
94 &ohci {
95 status = "disabled";
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x8000>;
106 ieee80211-freq-limit = <5000000 6000000>;
107 };
108 };
109
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "uart1", "wled_an", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "wdt", "refclk", "gpio", "i2s";
114 ralink,function = "gpio";
115 };
116 };
117 };
118
119 &spi0 {
120 status = "okay";
121
122 m25p80@0 {
123 compatible = "jedec,spi-nor";
124 reg = <0>;
125 spi-max-frequency = <10000000>;
126 m25p,chunked-io = <32>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 label = "u-boot";
135 reg = <0x0 0x30000>;
136 read-only;
137 };
138
139 partition@30000 {
140 label = "u-boot-env";
141 reg = <0x30000 0x10000>;
142 read-only;
143 };
144
145 factory: partition@40000 {
146 label = "factory";
147 reg = <0x40000 0x10000>;
148 read-only;
149 };
150
151 partition@50000 {
152 label = "firmware";
153 reg = <0x50000 0x7c0000>;
154 };
155
156 partition@810000 {
157 label = "firmware2";
158 reg = <0x810000 0x7c0000>;
159 };
160
161 partition@fd0000 {
162 label = "glbcfg";
163 reg = <0xfd0000 0x10000>;
164 read-only;
165 };
166
167 partition@fe0000 {
168 label = "board_data";
169 reg = <0xfe0000 0x10000>;
170 read-only;
171 };
172 };
173 };
174 };
175
176 &wmac {
177 status = "okay";
178 };