Merge pull request #580 from wigyori/cc-libpcap
[15.05/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         memory@0 {
14                 device_type = "memory";
15                 reg = <0x0 0x8000000>;
16         };
17
18         pinctrl {
19                 state_default: pinctrl0 {
20                         gpio {
21                                 ralink,group = "gpio";
22                                 ralink,function = "gpio";
23                         };
24                         perst {
25                                 ralink,group = "perst";
26                                 ralink,function = "gpio";
27                         };
28                         refclk {
29                                 ralink,group = "refclk";
30                                 ralink,function = "gpio";
31                         };
32                         i2s {
33                                 ralink,group = "i2s";
34                                 ralink,function = "gpio";
35                         };
36                         spis {
37                                 ralink,group = "spis";
38                                 ralink,function = "gpio";
39                         };
40                         wled_kn {
41                                 ralink,group = "wled_kn";
42                                 ralink,function = "gpio";
43                         };
44                         wled_an {
45                                 ralink,group = "wled_an";
46                                 ralink,function = "wled_an";
47                         };
48                         wdt {
49                                 ralink,group = "wdt";
50                                 ralink,function = "gpio";
51                         };
52                 };
53         };
54
55         palmbus@10000000 {
56                 spi@b00 {
57                         status = "okay";
58
59                         pinctrl-names = "default";
60                         pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
61
62                         m25p80@0 {
63                                 #address-cells = <1>;
64                                 #size-cells = <1>;
65                                 compatible = "mx25l25635e";
66                                 reg = <0 0>;
67                                 linux,modalias = "m25p80", "mx25l25635e";
68                                 spi-max-frequency = <40000000>;
69                                 m25p,chunked-io = <31>;
70
71                                 partition@0 {
72                                         label = "u-boot";
73                                         reg = <0x0 0x30000>;
74                                         read-only;
75                                 };
76
77                                 partition@30000 {
78                                         label = "u-boot-env";
79                                         reg = <0x30000 0x10000>;
80                                 };
81
82                                 factory: partition@40000 {
83                                         label = "factory";
84                                         reg = <0x40000 0x10000>;
85                                         read-only;
86                                 };
87
88                                 partition@50000 {
89                                         label = "firmware";
90                                         reg = <0x50000 0x1fb0000>;
91                                 };
92                         };
93
94                         spidev@1 {
95                                 #address-cells = <1>;
96                                 #size-cells = <1>;
97                                 compatible = "spidev";
98                                 reg = <1 0>;
99                                 spi-max-frequency = <40000000>;
100                         };
101                 };
102
103                 i2c@900 {
104                         status = "okay";
105                 };
106
107                 uart1@d00 {
108                         status = "okay";
109                 };
110
111                 uart2@e00 {
112                         status = "okay";
113                 };
114
115                 pwm@5000 {
116                         status = "okay";
117                 };
118         };
119
120         ethernet@10100000 {
121                 mtd-mac-address = <&factory 0x28>;
122         };
123
124         sdhci@10130000 {
125                 status = "okay";
126                 mediatek,cd-high;
127 //              mediatek,cd-poll;
128         };
129
130         bootstrap {
131                 compatible = "mediatek,linkit";
132
133                 status = "okay";
134         };
135
136         gpio-leds {
137                 compatible = "gpio-leds";
138                 wifi {
139                         label = "mediatek:orange:wifi";
140                         gpios = <&wgpio 0 0>;
141                         default-state = "on";
142                 };
143         };
144
145         gpio-keys-polled {
146                 compatible = "gpio-keys-polled";
147                 #address-cells = <1>;
148                 #size-cells = <0>;
149                 poll-interval = <20>;
150                 wps {
151                         label = "reset";
152                         gpios = <&gpio1 6 1>;
153                         linux,code = <0x211>;
154                 };
155         };
156
157         wgpio: gpio-wifi {
158                 #address-cells = <1>;
159                 #size-cells = <0>;
160
161                 compatible = "mediatek,gpio-wifi";
162                 gpio-controller;
163                 #gpio-cells = <2>;
164         };
165
166 };