rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / ramips / dts / GL-MT300N.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 / {
6         compatible = "GL-MT300N", "ralink,mt7620n-soc";
7         model = "GL-MT300N";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         palmbus@10000000 {
14                 gpio0: gpio@600 {
15                         status = "okay";
16                 };
17
18                 gpio1: gpio@638 {
19                         status = "okay";
20                 };
21
22                 gpio2: gpio@660 {
23                         status = "okay";
24                 };
25                 
26                 gpio3: gpio@688 {
27                       status = "okay";
28                  };
29
30                 spi@b00 {
31                         status = "okay";
32
33                         m25p80@0 {
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36                                 compatible = "w25q128";
37                                 reg = <0 0>;
38                                 linux,modalias = "m25p80", "w25q128";
39                                 spi-max-frequency = <10000000>;
40
41                                 partition@0 {
42                                         label = "u-boot";
43                                         reg = <0x0 0x30000>;
44                                 };
45
46                                 partition@30000 {
47                                         label = "u-boot-env";
48                                         reg = <0x30000 0x10000>;
49                                         read-only;
50                                 };
51
52                                 factory: partition@40000 {
53                                         label = "factory";
54                                         reg = <0x40000 0x10000>;
55                                         read-only;
56                                 };
57
58                                 partition@50000 {
59                                         label = "firmware";
60                                         reg = <0x50000 0xf80000>;
61                                 };
62
63                                 partition@ff0000 {
64                                         label = "art";
65                                         reg = <0xff0000 0x10000>;
66                                 };
67                         };
68                 };
69         };
70
71         ehci@101c0000 {
72                 status = "okay";
73         };
74
75         ohci@101c1000 {
76                 status = "okay";
77         };
78
79         ethernet@10100000 {
80                 mtd-mac-address = <&factory 0x4000>;
81                 ralink,port-map = "wllll";
82         };
83
84         wmac@10180000 {
85                 ralink,mtd-eeprom = <&factory 0>;
86         };
87
88         pcie@10140000 {
89                 status = "okay";
90
91                 pcie-bridge {
92                         mt76@0,0 {
93                                 reg = <0x0000 0 0 0 0>;
94                                 device_type = "pci";
95                                 mediatek,mtd-eeprom = <&factory 0x8000>;
96                                 mediatek,2ghz = <0>;
97                         };
98                 };
99         };
100
101         pinctrl {
102                 state_default: pinctrl0 {
103                         gpio {
104                                 ralink,group = "wled","ephy","i2c";
105                                 ralink,function = "gpio";
106                         };
107                 };
108         };
109
110         gpio-leds {
111                 compatible = "gpio-leds";
112
113                 wan {
114                         label = "gl-mt300n:wan";
115                         gpios = <&gpio2 0 1>;
116                 };
117
118                 lan {
119                         label = "gl-mt300n:lan";
120                         gpios = <&gpio2 1 1>;
121                 };
122
123                 wlan {
124                         label = "gl-mt300n:wlan";
125                         gpios = <&gpio3 0 1>;
126                 };
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                 reset {
136                         label = "reset";
137                         gpios = <&gpio0 1 1>;
138                         linux,code = <0x198>;
139                 };
140
141                 BTN_0 {
142                         label = "BTN_0";
143                         gpios = <&gpio2 2 1>;
144                         linux,code = <0x100>;
145                 };
146
147             BTN_1 {
148                         label = "BTN_1";
149                         gpios = <&gpio2 3 1>;
150                         linux,code = <0x101>;
151                 };
152         };
153 };