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