ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / OMEGA2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "onion,omega2", "mediatek,mt7628an-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 gpio-leds {
14 compatible = "gpio-leds";
15
16 system_led: system {
17 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
18 };
19 };
20
21 gpio-keys-polled {
22 compatible = "gpio-keys-polled";
23 #address-cells = <1>;
24 #size-cells = <0>;
25 poll-interval = <20>;
26
27 reset {
28 label = "reset";
29 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33 };
34
35 &pinctrl {
36 state_default: pinctrl0 {
37 gpio {
38 ralink,group = "gpio";
39 ralink,function = "gpio";
40 };
41
42 perst {
43 ralink,group = "perst";
44 ralink,function = "gpio";
45 };
46
47 refclk {
48 ralink,group = "refclk";
49 ralink,function = "gpio";
50 };
51
52 i2s {
53 ralink,group = "i2s";
54 ralink,function = "gpio";
55 };
56
57 spis {
58 ralink,group = "spis";
59 ralink,function = "gpio";
60 };
61
62 wled_kn {
63 ralink,group = "wled_kn";
64 ralink,function = "gpio";
65 };
66
67 wled_an {
68 ralink,group = "wled_an";
69 ralink,function = "gpio";
70 };
71
72 wdt {
73 ralink,group = "wdt";
74 ralink,function = "gpio";
75 };
76
77 pwm0 {
78 ralink,group = "pwm0";
79 ralink,function = "gpio";
80 };
81
82 pwm1 {
83 ralink,group = "pwm1";
84 ralink,function = "gpio";
85 };
86 };
87 };
88
89 &gpio1 {
90 status = "okay";
91 };
92
93 &gpio2 {
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 #address-cells = <1>;
105 #size-cells = <1>;
106 compatible = "jedec,spi-nor";
107 reg = <0>;
108 spi-max-frequency = <40000000>;
109 m25p,chunked-io = <31>;
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 read-only;
121 };
122
123 factory: partition@40000 {
124 label = "factory";
125 reg = <0x40000 0x10000>;
126 read-only;
127 };
128
129 firmware: partition@50000 {
130 label = "firmware";
131 };
132 };
133
134 spidev@1 {
135 #address-cells = <1>;
136 #size-cells = <1>;
137 compatible = "linux,spidev";
138 reg = <1>;
139 spi-max-frequency = <40000000>;
140 };
141 };
142
143 &i2c {
144 status = "okay";
145 };
146
147 &uart1 {
148 status = "okay";
149 };
150
151 &uart2 {
152 status = "okay";
153 };
154
155 &ethernet {
156 mtd-mac-address = <&factory 0x28>;
157 };
158
159 &sdhci {
160 status = "okay";
161 mediatek,cd-low;
162 };
163
164 &wmac {
165 status = "okay";
166 };