rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / ramips / dts / EX2700.dts
1 /*
2  * Device Tree file for the Netgear EX2700
3  *
4  * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10
11 /dts-v1/;
12
13 #include "mt7620a.dtsi"
14
15 / {
16         compatible = "ralink,mt7620a-soc";
17         model = "Netgear EX2700";
18
19         chosen {
20                 bootargs = "console=ttyS0,57600";
21         };
22
23         palmbus@10000000 {
24
25                 gpio0: gpio@600 {
26                         status = "okay";
27                 };
28
29                 gpio1: gpio@638 {
30                         status = "okay";
31                 };
32
33                 spi@b00 {
34                         status = "okay";
35
36                         m25p80@0 {
37                                 #address-cells = <1>;
38                                 #size-cells = <1>;
39                                 compatible = "jedec,spi-nor";
40                                 reg = <0 0>;
41                                 linux,modalias = "m25p80", "mx25l3205d";
42                                 spi-max-frequency = <10000000>;
43
44                                 partition@0 {
45                                         label = "u-boot";
46                                         reg = <0x0 0x30000>;
47                                         read-only;
48                                 };
49
50                                 partition@30000 {
51                                         label = "u-boot-env";
52                                         reg = <0x30000 0x10000>;
53                                         read-only;
54                                 };
55
56                                 partition@40000 {
57                                         label = "firmware";
58                                         reg = <0x40000 0x3b0000>;
59                                 };
60
61                                 art: partition@3f0000 {
62                                         label = "art";
63                                         reg = <0x3f0000 0x10000>;
64                                         read-only;
65                                 };
66                         };
67                 };
68         };
69
70         ethernet@10100000 {
71                 mtd-mac-address = <&art 0x0>;
72         };
73
74         wmac@10180000 {
75                 ralink,mtd-eeprom = <&art 0x1000>;
76         };
77
78         pinctrl {
79                 state_default: pinctrl0 {
80                         default {
81                                 //  spi refclk: pins 37, 38, 39
82                                 //       uartf: pins 8, 9, 10, 11, 12, 13, 14
83                                 //         i2c: pins 1, 2
84                                 ralink,group = "i2c", "uartf", "spi refclk";
85                                 ralink,function = "gpio";
86                         };
87                 };
88         };
89
90         gpio-leds {
91                 compatible = "gpio-leds";
92
93                 power_g {
94                         label = "ex2700:green:power";
95                         gpios = <&gpio0 9 1>;
96                         default-state = "on";
97                 };
98
99                 power_r {
100                         label = "ex2700:red:power";
101                         gpios = <&gpio0 11 1>;
102                 };
103
104                 device_g {
105                         label = "ex2700:green:device";
106                         gpios = <&gpio0 13 1>;
107                 };
108
109                 device_r {
110                         label = "ex2700:red:device";
111                         gpios = <&gpio0 10 1>;
112                 };
113
114                 router_g {
115                         label = "ex2700:green:router";
116                         gpios = <&gpio0 12 1>;
117                 };
118
119                 router_r {
120                         label = "ex2700:red:router";
121                         gpios = <&gpio0 14 1>;
122                 };
123
124                 wps {
125                         label = "ex2700:green:wps";
126                         gpios = <&gpio1 15 1>;
127                 };
128         };
129
130         gpio-keys-polled {
131                 compatible = "gpio-keys-polled";
132                 #address-cells = <1>;
133                 #size-cells = <0>;
134                 poll-interval = <20>;
135
136                 reset {
137                         label = "reset";
138                         gpios = <&gpio0 1 1>;
139                         linux,code = <0x198>;
140                 };
141
142                 wps {
143                         label = "wps";
144                         gpios = <&gpio0 2 1>;
145                         linux,code = <0x211>;
146                 };
147         };
148 };