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