rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / ramips / dts / LINKIT7688.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 / {
6         compatible = "mediatek,linkit", "mediatek,mt7628an-soc";
7         model = "MediaTek LinkIt Smart 7688";
8
9         chosen {
10                 bootargs = "console=ttyS2,57600";
11         };
12
13         aliases {
14                 serial0 = &uart2;
15         };
16
17         memory@0 {
18                 device_type = "memory";
19                 reg = <0x0 0x8000000>;
20         };
21
22         pinctrl {
23                 state_default: pinctrl0 {
24                         gpio {
25                                 ralink,group = "gpio";
26                                 ralink,function = "gpio";
27                         };
28
29                         perst {
30                                 ralink,group = "perst";
31                                 ralink,function = "gpio";
32                         };
33
34                         refclk {
35                                 ralink,group = "refclk";
36                                 ralink,function = "gpio";
37                         };
38
39                         i2s {
40                                 ralink,group = "i2s";
41                                 ralink,function = "gpio";
42                         };
43
44                         spis {
45                                 ralink,group = "spis";
46                                 ralink,function = "gpio";
47                         };
48
49                         wled_kn {
50                                 ralink,group = "wled_kn";
51                                 ralink,function = "gpio";
52                         };
53
54                         wled_an {
55                                 ralink,group = "wled_an";
56                                 ralink,function = "wled_an";
57                         };
58
59                         wdt {
60                                 ralink,group = "wdt";
61                                 ralink,function = "gpio";
62                         };
63                 };
64         };
65
66         wmac@10300000 {
67                 status = "okay";
68         };
69
70         palmbus@10000000 {
71                 spi@b00 {
72                         status = "okay";
73
74                         pinctrl-names = "default";
75                         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
76
77                         m25p80@0 {
78                                 #address-cells = <1>;
79                                 #size-cells = <1>;
80                                 compatible = "jedec,spi-nor";
81                                 reg = <0 0>;
82                                 linux,modalias = "m25p80", "mx25l25635e";
83                                 spi-max-frequency = <40000000>;
84                                 m25p,chunked-io = <31>;
85
86                                 partition@0 {
87                                         label = "u-boot";
88                                         reg = <0x0 0x30000>;
89                                         read-only;
90                                 };
91
92                                 partition@30000 {
93                                         label = "u-boot-env";
94                                         reg = <0x30000 0x10000>;
95                                 };
96
97                                 factory: partition@40000 {
98                                         label = "factory";
99                                         reg = <0x40000 0x10000>;
100                                         read-only;
101                                 };
102
103                                 partition@50000 {
104                                         label = "firmware";
105                                         reg = <0x50000 0x1fb0000>;
106                                 };
107                         };
108
109                         spidev@1 {
110                                 #address-cells = <1>;
111                                 #size-cells = <1>;
112                                 compatible = "spidev";
113                                 reg = <1 0>;
114                                 spi-max-frequency = <40000000>;
115                         };
116                 };
117
118                 i2c@900 {
119                         status = "okay";
120                 };
121
122                 uart1@d00 {
123                         status = "okay";
124                 };
125
126                 uart2@e00 {
127                         status = "okay";
128                 };
129
130                 pwm@5000 {
131                         status = "okay";
132                 };
133         };
134
135         ethernet@10100000 {
136                 mtd-mac-address = <&factory 0x28>;
137         };
138
139         sdhci@10130000 {
140                 status = "okay";
141                 mediatek,cd-high;
142         };
143
144         bootstrap {
145                 compatible = "mediatek,linkit";
146
147                 status = "okay";
148         };
149
150         gpio-leds {
151                 compatible = "gpio-leds";
152         
153                 wifi {
154                         label = "mediatek:orange:wifi";
155                         gpios = <&wgpio 0 0>;
156                         default-state = "on";
157                 };
158         };
159
160         gpio-keys-polled {
161                 compatible = "gpio-keys-polled";
162                 #address-cells = <1>;
163                 #size-cells = <0>;
164                 poll-interval = <20>;
165         
166                 wps {
167                         label = "reset";
168                         gpios = <&gpio1 6 1>;
169                         linux,code = <0x211>;
170                 };
171         };
172
173         wgpio: gpio-wifi {
174                 compatible = "mediatek,gpio-wifi";
175                 #address-cells = <1>;
176                 #size-cells = <0>;
177                 gpio-controller;
178                 #gpio-cells = <2>;
179         };
180
181 };