ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix...
[openwrt/staging/wigyori.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 palmbus@10000000 {
63 spi@b00 {
64 status = "okay";
65
66 pinctrl-names = "default";
67 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
68
69 m25p80@0 {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 compatible = "jedec,spi-nor";
73 reg = <0 0>;
74 linux,modalias = "m25p80", "mx25l25635e";
75 spi-max-frequency = <40000000>;
76 m25p,chunked-io = <31>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x0 0x30000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 read-only;
93 };
94
95 partition@50000 {
96 label = "firmware";
97 reg = <0x50000 0x1fb0000>;
98 };
99 };
100
101 spidev@1 {
102 #address-cells = <1>;
103 #size-cells = <1>;
104 compatible = "spidev";
105 reg = <1 0>;
106 spi-max-frequency = <40000000>;
107 };
108 };
109
110 i2c@900 {
111 status = "okay";
112 };
113
114 uart1@d00 {
115 status = "okay";
116 };
117
118 uart2@e00 {
119 status = "okay";
120 };
121
122 pwm@5000 {
123 status = "okay";
124 };
125 };
126
127 ethernet@10100000 {
128 mtd-mac-address = <&factory 0x28>;
129 };
130
131 sdhci@10130000 {
132 status = "okay";
133 mediatek,cd-high;
134 };
135
136 bootstrap {
137 compatible = "mediatek,linkit";
138
139 status = "okay";
140 };
141
142 gpio-leds {
143 compatible = "gpio-leds";
144
145 wifi {
146 label = "mediatek:orange:wifi";
147 gpios = <&wgpio 0 0>;
148 default-state = "on";
149 };
150 };
151
152 gpio-keys-polled {
153 compatible = "gpio-keys-polled";
154 #address-cells = <1>;
155 #size-cells = <0>;
156 poll-interval = <20>;
157
158 wps {
159 label = "reset";
160 gpios = <&gpio1 6 1>;
161 linux,code = <0x211>;
162 };
163 };
164
165 wgpio: gpio-wifi {
166 compatible = "mediatek,gpio-wifi";
167 #address-cells = <1>;
168 #size-cells = <0>;
169 gpio-controller;
170 #gpio-cells = <2>;
171 };
172
173 };