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