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