ramips: fix cpuclock for the GB-PC1
[oweals/openwrt.git] / target / linux / ramips / dts / GB-PC1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
10         model = "GB-PC1";
11
12         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,57600";
19         };
20
21         palmbus: palmbus@1E000000 {
22                 i2c@900 {
23                         status = "okay";
24                 };
25         };
26
27         gpio-keys-polled {
28                 compatible = "gpio-keys-polled";
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <20>;
32
33                 reset {
34                         label = "reset";
35                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
36                         linux,code = <KEY_RESTART>;
37                 };
38         };
39
40         gpio-leds {
41                 compatible = "gpio-leds";
42
43                 system {
44                         label = "gb-pc1:green:system";
45                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
46                 };
47
48                 status {
49                         label = "gb-pc1:green:status";
50                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
51                 };
52
53                 lan1 {
54                         label = "gb-pc1:green:lan1";
55                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
56                 };
57
58                 lan2 {
59                         label = "gb-pc1:green:lan2";
60                         gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
61                 };
62         };
63 };
64
65 &sdhci {
66         status = "okay";
67 };
68
69 &spi0 {
70         status = "okay";
71
72         m25p80@0 {
73                 #address-cells = <1>;
74                 #size-cells = <1>;
75                 compatible = "jedec,spi-nor";
76                 reg = <0>;
77                 spi-max-frequency = <10000000>;
78                 m25p,chunked-io = <32>;
79
80                 partition@0 {
81                         label = "u-boot";
82                         reg = <0x0 0x30000>;
83                         read-only;
84                 };
85
86                 partition@30000 {
87                         label = "u-boot-env";
88                         reg = <0x30000 0x10000>;
89                         read-only;
90                 };
91
92                 factory: partition@40000 {
93                         label = "factory";
94                         reg = <0x40000 0x10000>;
95                         read-only;
96                 };
97
98                 partition@50000 {
99                         label = "firmware";
100                         reg = <0x50000 0x1fb0000>;
101                 };
102         };
103 };
104
105 &cpuclock {
106         compatible = "fixed-clock";
107         clock-frequency = <90000000>;
108 };
109
110 &pcie {
111         status = "okay";
112 };
113
114 &ethernet {
115         mtd-mac-address = <&factory 0xe000>;
116 };
117
118 &pinctrl {
119         state_default: pinctrl0 {
120                 gpio {
121                         ralink,group = "wdt", "rgmii2", "uart3";
122                         ralink,function = "gpio";
123                 };
124         };
125 };