ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc2.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-pc2", "mediatek,mt7621-soc";
10 model = "GB-PC2";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
25 linux,code = <KEY_RESTART>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 system {
33 label = "gb-pc2:green:system";
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 };
36
37 led_status: status {
38 label = "gb-pc2:green:status";
39 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
40 };
41
42 lan1 {
43 label = "gb-pc2:green:lan1";
44 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
45 };
46
47 lan2 {
48 label = "gb-pc2:green:lan2";
49 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
50 };
51
52 lan3-yellow {
53 label = "gb-pc2:yellow:lan3";
54 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
55 };
56
57 lan3-green {
58 label = "gb-pc2:green:lan3";
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
60 };
61 };
62 };
63
64 &sdhci {
65 status = "okay";
66 };
67
68 &spi0 {
69 status = "okay";
70
71 flash@0 {
72 compatible = "jedec,spi-nor";
73 reg = <0>;
74 spi-max-frequency = <80000000>;
75 broken-flash-reset;
76 m25p,fast-read;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x0 0x30000>;
86 read-only;
87 };
88
89 partition@30000 {
90 label = "u-boot-env";
91 reg = <0x30000 0x10000>;
92 read-only;
93 };
94
95 factory: partition@40000 {
96 label = "factory";
97 reg = <0x40000 0x10000>;
98 read-only;
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x50000 0x1fb0000>;
105 };
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &gmac0 {
115 mtd-mac-address = <&factory 0xe000>;
116 };
117
118 &switch0 {
119 ports {
120 port@0 {
121 status = "okay";
122 label = "lan1";
123 };
124
125 port@4 {
126 status = "okay";
127 label = "lan2";
128 };
129 };
130 };
131
132 &state_default {
133 gpio {
134 groups = "jtag", "rgmii2", "uart3", "wdt";
135 function = "gpio";
136 };
137 };