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