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