ramips: specify "firmware" partition format
[openwrt/openwrt.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 gpio-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 gpio-keys-polled {
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 m25p,chunked-io = <31>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "u-boot";
116 reg = <0x0 0x30000>;
117 read-only;
118 };
119
120 partition@30000 {
121 label = "u-boot-env";
122 reg = <0x30000 0x10000>;
123 };
124
125 factory: partition@40000 {
126 label = "factory";
127 reg = <0x40000 0x10000>;
128 read-only;
129 };
130
131 partition@50000 {
132 compatible = "denx,uimage";
133 label = "firmware";
134 reg = <0x50000 0x1fb0000>;
135 };
136 };
137 };
138
139 spidev@1 {
140 #address-cells = <1>;
141 #size-cells = <1>;
142 compatible = "linux,spidev";
143 reg = <1>;
144 spi-max-frequency = <40000000>;
145 };
146 };
147
148 &i2c {
149 status = "okay";
150 };
151
152 &uart1 {
153 status = "okay";
154 };
155
156 &uart2 {
157 status = "okay";
158 };
159
160 &pwm {
161 status = "okay";
162 };
163
164 &ethernet {
165 mtd-mac-address = <&factory 0x28>;
166 };
167
168 &sdhci {
169 status = "okay";
170 mediatek,cd-high;
171 };
172
173 &wmac {
174 status = "okay";
175 };