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