ramips: disable 2.4 ghz on 802.11ac wifi on WHR-1166D
[openwrt.git] / target / linux / ramips / dts / WHR-1166D.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "ralink,mt7620a-soc";
7         model = "Buffalo WHR-1166D";
8
9         palmbus@10000000 {
10                 gpio2: gpio@660 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "en25q64";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80", "mx25l6405d";
23                                 spi-max-frequency = <10000000>;
24
25                                 partition@0 {
26                                         label = "u-boot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "u-boot-env";
33                                         reg = <0x30000 0x10000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@40000 {
38                                         label = "factory";
39                                         reg = <0x40000 0x10000>;
40                                         read-only;
41                                 };
42
43                                 partition@50000 {
44                                         label = "firmware";
45                                         reg = <0x50000 0xeb0000>;
46                                 };
47
48                                 partition@e00000 {
49                                         label = "usercfg";
50                                         reg = <0xf00000 0x100000>;
51                                 };
52                         };
53                 };
54         };
55
56         pinctrl {
57                 state_default: pinctrl0 {
58                         gpio {
59                                 ralink,group = "i2c", "uartf", "wled", "nd_sd";
60                                 ralink,function = "gpio";
61                         };
62                 };
63         };
64
65         ethernet@10100000 {
66                 pinctrl-names = "default";
67                 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
68
69                 port@5 {
70                         status = "okay";
71                         phy-handle = <&phy5>;
72                         phy-mode = "rgmii";
73                 };
74
75                 mdio-bus {
76                         status = "okay";
77
78                         phy5: ethernet-phy@5 {
79                                 reg = <5>;
80                                 phy-mode = "rgmii";
81                         };
82                 };
83         };
84
85         gsw@10110000 {
86                 ralink,port4 = "ephy";
87         };
88
89         wmac@10180000 {
90                 ralink,mtd-eeprom = <&factory 0>;
91         };
92
93         pcie@10140000 {
94                 status = "okay";
95
96                 pcie-bridge {
97                         mt76@0,0 {
98                                 reg = <0x0000 0 0 0 0>;
99                                 device_type = "pci";
100                                 mediatek,mtd-eeprom = <&factory 32768>;
101                                 mediatek,2ghz = <0>;
102                         };
103                 };
104         };
105         
106         gpio-leds {
107                 compatible = "gpio-leds";
108                 power {
109                         label = "buffalo:red:power";
110                         gpios = <&gpio0 7 1>;
111                 };
112                 status {
113                         label = "buffalo:green:status";
114                         gpios = <&gpio0 8 1>;
115                 };
116                 power2 {
117                         label = "buffalo:green:power";
118                         gpios = <&gpio0 9 1>;
119                 };
120                 status2 {
121                         label = "buffalo:orange:status";
122                         gpios = <&gpio0 10 1>;
123                 };
124                 internet {
125                         label = "buffalo:green:internet";
126                         gpios = <&gpio2 17 1>;
127                 };
128                 router {
129                         label = "buffalo:green:router";
130                         gpios = <&gpio2 18 1>;
131                 };
132                 router2 {
133                         label = "buffalo:orange:router";
134                         gpios = <&gpio2 19 1>;
135                 };
136         };
137
138         gpio-keys-polled {
139                 compatible = "gpio-keys-polled";
140                 #address-cells = <1>;
141                 #size-cells = <0>;
142                 poll-interval = <20>;
143                 s1 {
144                         label = "reset";
145                         gpios = <&gpio2 12 1>;
146                         linux,code = <0x100>;
147                 };
148                 s2 {
149                         label = "aoss";
150                         gpios = <&gpio2 13 1>;
151                         linux,code = <0x101>;
152                 };
153                 s3 {
154                         label = "ap";
155                         gpios = <&gpio2 14 1>;
156                         linux,code = <0x102>;
157                 };
158                 s4 {
159                         label = "bridge";
160                         gpios = <&gpio2 15 1>;
161                         linux,code = <0x103>;
162                 };
163         };
164 };