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