ramips: Fix GB-PC1 cpuclock again
[openwrt/openwrt.git] / target / linux / ramips / dts / WIDORA-NEO.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 = "widora,neo", "mediatek,mt7628an-soc";
10 model = "Widora-NEO";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 gpio-leds {
22 compatible = "gpio-leds";
23
24 wifi {
25 label = "widora:orange:wifi";
26 gpios = <&wgpio 0 GPIO_ACTIVE_HIGH>;
27 default-state = "on";
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36
37 wps {
38 label = "reset";
39 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
41 };
42 };
43
44 wgpio: gpio-wifi {
45 compatible = "mediatek,gpio-wifi";
46 #address-cells = <1>;
47 #size-cells = <0>;
48 gpio-controller;
49 #gpio-cells = <2>;
50 };
51 };
52
53 &pinctrl {
54 state_default: pinctrl0 {
55 gpio {
56 ralink,group = "gpio";
57 ralink,function = "gpio";
58 };
59
60 perst {
61 ralink,group = "perst";
62 ralink,function = "gpio";
63 };
64
65 refclk {
66 ralink,group = "refclk";
67 ralink,function = "gpio";
68 };
69
70 i2s {
71 ralink,group = "i2s";
72 ralink,function = "gpio";
73 };
74
75 spis {
76 ralink,group = "spis";
77 ralink,function = "gpio";
78 };
79
80 wled_kn {
81 ralink,group = "wled_kn";
82 ralink,function = "gpio";
83 };
84
85 wled_an {
86 ralink,group = "wled_an";
87 ralink,function = "wled_an";
88 };
89
90 wdt {
91 ralink,group = "wdt";
92 ralink,function = "gpio";
93 };
94 };
95 };
96
97
98 &spi0 {
99 status = "okay";
100
101 pinctrl-names = "default";
102 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
103
104 m25p80@0 {
105 #address-cells = <1>;
106 #size-cells = <1>;
107 compatible = "jedec,spi-nor";
108 reg = <0>;
109 spi-max-frequency = <40000000>;
110 m25p,chunked-io = <31>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x0 0x30000>;
115 read-only;
116 };
117
118 partition@30000 {
119 label = "u-boot-env";
120 reg = <0x30000 0x10000>;
121 };
122
123 factory: partition@40000 {
124 label = "factory";
125 reg = <0x40000 0x10000>;
126 read-only;
127 };
128
129 partition@50000 {
130 label = "firmware";
131 reg = <0x50000 0x0fb0000>;
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-low;
167 };
168
169 &wmac {
170 status = "okay";
171 };