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