Revert "ramips: improve interrupt mapping"
[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         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 = <&gpio0 18 GPIO_ACTIVE_HIGH>;
30                         linux,code = <KEY_RESTART>;
31                 };
32         };
33
34         gpio-leds {
35                 compatible = "gpio-leds";
36
37                 system {
38                         label = "gb-pc1:green:system";
39                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
40                 };
41
42                 status {
43                         label = "gb-pc1:green:status";
44                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
45                 };
46
47                 lan1 {
48                         label = "gb-pc1:green:lan1";
49                         gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
50                 };
51
52                 lan2 {
53                         label = "gb-pc1:green:lan2";
54                         gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
55                 };
56         };
57 };
58
59 &sdhci {
60         status = "okay";
61
62         pinctrl-names = "default";
63         pinctrl-0 = <&sdhci_pins>;
64 };
65
66 &spi0 {
67         status = "okay";
68
69         m25p80@0 {
70                 #address-cells = <1>;
71                 #size-cells = <1>;
72                 compatible = "jedec,spi-nor";
73                 reg = <0>;
74                 spi-max-frequency = <10000000>;
75                 m25p,chunked-io = <32>;
76
77                 partition@0 {
78                         label = "u-boot";
79                         reg = <0x0 0x30000>;
80                         read-only;
81                 };
82
83                 partition@30000 {
84                         label = "u-boot-env";
85                         reg = <0x30000 0x10000>;
86                         read-only;
87                 };
88
89                 factory: partition@40000 {
90                         label = "factory";
91                         reg = <0x40000 0x10000>;
92                         read-only;
93                 };
94
95                 partition@50000 {
96                         label = "firmware";
97                         reg = <0x50000 0x1fb0000>;
98                 };
99         };
100 };
101
102 &cpuclock {
103         compatible = "fixed-clock";
104         clock-frequency = <900000000>;
105 };
106
107 &pcie {
108         status = "okay";
109 };
110
111 &ethernet {
112         mtd-mac-address = <&factory 0xe000>;
113 };
114
115 &pinctrl {
116         state_default: pinctrl0 {
117                 gpio {
118                         ralink,group = "jtag", "rgmii2", "uart3", "wdt";
119                         ralink,function = "gpio";
120                 };
121         };
122 };