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